GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering
 
Notifications
Clear all

GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering  

  RSS
Alias
(@alias)
Active Member
GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

Printer: Original Pusa MK4S MMU3 

  • Bootloader: 2.3.5
  • Additions: GPIO Hackerboard and Panasonic LUMIX G95D

Prusa Slicer: 2.9.0

I'm currently trying to connect my Panasonic LUMIX G95D to the GPIO board, so I can make timelapses of my printers.

However, I was having a difficult time in triggering the focus and shutter. Thankfully, I found a video by Zemistr 3D titled "Time-lapse videos with Prusa GPIO Hacker board and camera using cable shutter trigger".

So, I decided to conduct the following tests:

  1. Used tweezers to probe Pin 0 and Pin 1 along with Pin 0 and Pin 2 on the GPIO board to ensure all my connections were solid (i.e., verifying it can trigger my camera's focus and shutter)
  2. Used tweezers on the 2.5mm adapter to ensure it can trigger the camera's focus and shutter

Then I went on and created a Template Custom G-Code in PrusaSlicer in Printers > Custom G-Code and called {template_custom_gcode} at the end of Before layer change G-code and at the top of End G-Code.

I noticed the nozzle does move to the right parking position, however, the camera isn't triggered? I looked in the .gcode and the template G-Code is present there.

 

I did notice on GPIO Module | Prusa Knowledge Base it said: "To utilize the full potential of the GPIO board you need firmware 6.2.0-alpha1 or newer."

Evidently, my Prusa's bootloader is a few versions behind. However, I wanted to ask if there's any missteps/further guidance/troubleshooting techniques on this topic?

Template Custom G-Code by Zemistr 3D

;Time-lapse - startM262 P0 B0 ;Pin 0 as output

M262 P1 B0 ;Pin 1 as output

G1 X241 Y170 F10000 ;Park on position

G4 P500 ;Wait 500ms

M264 P1 B1 ;Trigger focus

M264 P0 B1 ;Trigger shutter

G4 P300 ;Wait 300ms

M264 P0 B0 ;Release shutter

M264 P1 B0 ;Release focus

G4 P500 ;Wait 500ms;

Time-lapse - end

Posted : 24/05/2025 7:34 pm
LarGriff
(@largriff)
Reputable Member
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

I think you’re on the right track with updating the printer firmware.  I believe 6.2.4 is current and it works with my GPIO.  The rest of your script looks okay.

MK4S/MMU3

Posted : 25/05/2025 2:50 am
Alias
(@alias)
Active Member
Topic starter answered:
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

@LarGriff
Thank you for confirming the script! 
Apologies, I'm on 6.1.4+7908.

When I attempt to update my printer's firmware using the guide below with all the options (i.e., flash drive, over the air, etc.). My printer just restarts, but doesn't flash the new firmware. 
https://help.prusa3d.com/article/how-to-update-firmware-core-one-mk4-s-mk3-9-s-mk3-5-s-xl_453086

 

Perhaps, it could be camera setting but that seems debunked with being able to trigger it using tweezers and this button:

Kiwifotos DMW-RSL1 Remote Control Shutter Release Cord for Panasonic G9

Posted : 25/05/2025 3:59 am
_KaszpiR_
(@_kaszpir_)
Noble Member
RE:

You need to flash firmware to 6.2.x or newer, bootloader is another story.

AFAIR you can reboot the printer and double click the spin wheel when its booting to force searching for a firmware update files on the pendrive ( similar to firmware downgrade). Just make sure to place single update firmware on the pendrive ( remove old updates).

Or do a factory reset which also loads firmware file from the pendrive.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 25/05/2025 8:55 am
Alias
(@alias)
Active Member
Topic starter answered:
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

@_kazpir_ 

Nice, thank you for confirming. I've just flashed printer's firmware to 6.2.4, however, the issue still persists. 

This leads me to believe it's either of the following:

I've rechecked my .gcode and the G-Code template in my original posts are present.

Posted : 25/05/2025 7:49 pm
LarGriff
(@largriff)
Reputable Member
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

On second glance, look at your code again.  Maybe the first two lines are run together?

Posted by: @alias

Printer: Original Pusa MK4S MMU3 

  • Bootloader: 2.3.5
  • Additions: GPIO Hackerboard and Panasonic LUMIX G95D

Prusa Slicer: 2.9.0

I'm currently trying to connect my Panasonic LUMIX G95D to the GPIO board, so I can make timelapses of my printers.

However, I was having a difficult time in triggering the focus and shutter. Thankfully, I found a video by Zemistr 3D titled "Time-lapse videos with Prusa GPIO Hacker board and camera using cable shutter trigger".

So, I decided to conduct the following tests:

  1. Used tweezers to probe Pin 0 and Pin 1 along with Pin 0 and Pin 2 on the GPIO board to ensure all my connections were solid (i.e., verifying it can trigger my camera's focus and shutter)
  2. Used tweezers on the 2.5mm adapter to ensure it can trigger the camera's focus and shutter

Then I went on and created a Template Custom G-Code in PrusaSlicer in Printers > Custom G-Code and called {template_custom_gcode} at the end of Before layer change G-code and at the top of End G-Code.

I noticed the nozzle does move to the right parking position, however, the camera isn't triggered? I looked in the .gcode and the template G-Code is present there.

 

I did notice on GPIO Module | Prusa Knowledge Base it said: "To utilize the full potential of the GPIO board you need firmware 6.2.0-alpha1 or newer."

Evidently, my Prusa's bootloader is a few versions behind. However, I wanted to ask if there's any missteps/further guidance/troubleshooting techniques on this topic?

Template Custom G-Code by Zemistr 3D

;Time-lapse - startM262 P0 B0 ;Pin 0 as output     <<< This line needs to be split

M262 P1 B0 ;Pin 1 as output

G1 X241 Y170 F10000 ;Park on position

G4 P500 ;Wait 500ms

M264 P1 B1 ;Trigger focus

M264 P0 B1 ;Trigger shutter

G4 P300 ;Wait 300ms

M264 P0 B0 ;Release shutter

M264 P1 B0 ;Release focus

G4 P500 ;Wait 500ms;

Time-lapse - end

 

MK4S/MMU3

Posted : 26/05/2025 12:36 pm
1 people liked
Alias
(@alias)
Active Member
Topic starter answered:
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

My apologies about that, I should have provided the screenshots as well.

All the lines run with no error, I noticed the printer moves the nozzle to the correct park location.

However, when it runs lines related to M262 or M264. I don't notice anything occurring on my camera.

 

 

Posted : 26/05/2025 12:57 pm
LarGriff
(@largriff)
Reputable Member
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

You likely have already seen this, but the following thread has a little more info on the topic.

https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gipo-canon-eos-r8-2-5mm/

Cheers!

MK4S/MMU3

Posted : 26/05/2025 11:35 pm
Zemistr
(@zemistr)
Eminent Member
RE:

Hi,
First I'd like to thank you for watching my video. 😊

Second, I read what you wrote here and I would like to verify a few things.

You wrote that you used metal tweezers to verify that the camera would focus and that the camera would take a picture. Can you please confirm this and possibly attach photos of how you positioned the tweezers for focusing and how to take the photo?

If I understand correctly, you have already updated the firmware to the latest version, right?

I can see in the screenshots that you changed the G4 P300 command to G4 P30 only. It may not seem like it, but the camera takes a while to register queries, so I recommend not shortening this delay too much.

Also, the Prusa GPIO Hackerboard needs to be connected when the printer is started. When the printer starts, the last pin configuration is sent to the board and the board then works as it should.

And maybe one more little thing.That parking and taking pictures doesn't work well when using MMU, because MMU changes the order of G-Code commands and so parking and trying to take pictures happen in a strange order. 🙁

This post was modified 3 weeks ago 2 times by Zemistr
Posted : 27/05/2025 11:36 pm
1 people liked
Alias
(@alias)
Active Member
Topic starter answered:
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

Good evening everyone,

Firstly, I would like to thank you all for your incredible support and more than generous assistance on this post! Such an awesome community!

I've taken both @largriff and @zemistr incredible advice on relooking at the other forum post, increasing the wait times (i.e., I increased them all to 500ms), and making sure the board is plugged in before turning on the printer. It now works flawlessly; the solution was the combination of increasing the wait times and plugging the board in before turning on the printer along with thoroughly looking through the other forum posts for any other mistakes.

@zemistr, thank you tremendously for putting together an excellent set of videos on this topic! It made it so much more approachable and understandable!

I've attached the timelapse below!

Posted : 30/05/2025 2:30 am
2 people liked
Zemistr
(@zemistr)
Eminent Member
RE: GPIO - Panasonic LUMIX G95D's Focus and Shutter Not Triggering

I don't see any video but I'm happy that it works now for you. ☺️

Posted : 30/05/2025 7:22 pm
Share: