Notifications
Clear all

GIPO - Canon EOS R8 - 2.5mm  

  RSS
512MB
(@512mb)
Eminent Member
GIPO - Canon EOS R8 - 2.5mm

How can I configure my Prusa MK4S with the GPIO board to trigger a camera and take a picture right after each layer change? The camera uses a 2.5 mm AUX input, and I currently use a microswitch on another printer to trigger it. I’d like to switch to using the GPIO functionality on the MK4S instead. How can I achieve this, and what G-code or methods are recommended?

Posted : 25/01/2025 2:03 pm
LarGriff
(@largriff)
Eminent Member
RE: GIPO - Canon EOS R8 - 2.5mm

Try the following post.  He demonstrates triggering a cellphone to take stop-motion pictures.  It should be somewhat similar to what yay need.

https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/youtube-videos-using-prusa-gpio-hackerboard/#post-733740

Posted : 25/01/2025 3:00 pm
512MB liked
512MB
(@512mb)
Eminent Member
Topic starter answered:
RE: GIPO - Canon EOS R8 - 2.5mm

When I first read it and watched the video, it became clear that this wasn’t a simple solution. Disappointing.

Posted : 25/01/2025 4:05 pm
LarGriff
(@largriff)
Eminent Member
RE: GIPO - Canon EOS R8 - 2.5mm

Your situation should be quite a bit simpler using your Canon camera.  You’ll just need the GPIO board.  You probably wont even have to do any soldering if you already have a shutter release cable.  Just plug it in to the GPIO board and setup the gcode to use pin 0 as an output per the video.

Posted : 25/01/2025 4:26 pm
Zemistr liked
512MB
(@512mb)
Eminent Member
Topic starter answered:
RE: GIPO - Canon EOS R8 - 2.5mm

The cable used to take a picture is a standard 2.5mm AUX cable. From what you’re saying, I simply need to plug one end into the AUX port on the GPIO board and the other end into the camera’s 2.5mm AUX input.

 

After that, I should call M262 P0 B0 to set pin 0 as an output pin.

 

This shouldn’t send any electrical current through the cable to the camera that could damage it, correct?

 

Or do I need to connect it in a different way? I don’t want to risk damaging my $1600 camera. 🙂

Posted : 25/01/2025 4:35 pm
LarGriff liked
Zemistr
(@zemistr)
Member
RE:

I am just checking the Canon R8.
Cable Jack 2.5 mm to Jack 2.5 mm is just plug and play.

The pins in the open drain section are not able to send any current to nowhere.
They are basically just connecting pin from the open drain section to the GND.

Use M262 P0 B0 to set the pin 0 as output.
Use M264 P0 B1 to connect the pin 0 to GND.
Use G4 P200 to wait 200ms.
Use M264 P0 B0 to disconnect the pin 0 from GND.

So the whole G-Code is:

M262 P0 B0
M264 P0 B1
G4 P200
M264 P0 B0

 

Btw... I am using Canon R5C... 😅

Posted : 25/01/2025 4:46 pm
LarGriff
(@largriff)
Eminent Member
RE: GIPO - Canon EOS R8 - 2.5mm

You’re correct on the cable hookup.  The connection will appear to your camera exactly the same as a micro switch.  All it does is closes a circuit, just like the micro switch does.  You’ll need to add gcode for the layer changes, per the video.  I look forward to seeing some time-lapse video from you soon!

Posted by: @512mb

The cable used to take a picture is a standard 2.5mm AUX cable. From what you’re saying, I simply need to plug one end into the AUX port on the GPIO board and the other end into the camera’s 2.5mm AUX input.

 

After that, I should call M262 P0 B0 to set pin 0 as an output pin.

 

This shouldn’t send any electrical current through the cable to the camera that could damage it, correct?

 

Or do I need to connect it in a different way? I don’t want to risk damaging my $1600 camera. 🙂

 

Posted : 25/01/2025 4:53 pm
Zemistr liked
Sembazuru
(@sembazuru)
Prominent Member
RE: GIPO - Canon EOS R8 - 2.5mm

 

Posted by: @largriff

You’re correct on the cable hookup.  The connection will appear to your camera exactly the same as a micro switch.  All it does is closes a circuit, just like the micro switch does.  You’ll need to add gcode for the layer changes, per the video.  I look forward to seeing some time-lapse video from you soon!

Posted by: @512mb

The cable used to take a picture is a standard 2.5mm AUX cable. From what you’re saying, I simply need to plug one end into the AUX port on the GPIO board and the other end into the camera’s 2.5mm AUX input.

 

After that, I should call M262 P0 B0 to set pin 0 as an output pin.

 

This shouldn’t send any electrical current through the cable to the camera that could damage it, correct?

 

Or do I need to connect it in a different way? I don’t want to risk damaging my $1600 camera. 🙂

 

It depends on the signaling of his microswitch. If the microswitch connects to ground when closed then yes, the GPIO board (which mostly acts like a microswitch to ground) should work, and won't need a debounce circuit. If his microswitch connects to some logical high signal there might be some additional circuitry required.

Without knowing the details of the camera trigger circuit (schematic, signaling levels, etc) that already works with his camera, I'm unable to give more than the hand-waving paragraph, above.

See my (limited) designs on:
Printables - https://www.printables.com/@Sembazuru
Thingiverse - https://www.thingiverse.com/Sembazuru/designs

Posted : 25/01/2025 7:25 pm
Zemistr
(@zemistr)
Member
RE: GIPO - Canon EOS R8 - 2.5mm

I already wrote answer here but I see it is "Awaiting moderation" 😡

So I gave the answer again on Youtube, where @512mb also asked.

Posted : 25/01/2025 7:28 pm
Share: