Someone wanted to do a layer-by-layer timelapse using a similar command. Someone else suggested the m42 command in the layer comment.
You can probably leverage the same solution for your use. However, it requires you to tap into the board expansion points and I think you will need to solder a header on to do so.
https://groups.google.com/forum/#!msg/ultimaker/vZok0JVD430/jVH5kOwj620J
Daid
4/12/12
Actually, you don't need to touch Arduino code. You can change pins with the M42 code. Combine this with G4 (delay) and you can code your camera trigger in pure GCode.
For example:
M42 P23 S255 ; Set the trigger camera pin high
G4 P100 ; Wait 100ms
M42 P23 S0 ; Set the trigger camera pin low
Gijs
Nice!
do you also know how that corresponds to the 1.5.4 ultimaker pcb? because from the wiki it's not clear to me where I would connect the opto-coupler,
cheers,
Daid
The pin numbers correspond to the numbers shown here:
http://www.reprap.org/wiki/Ultimaker%27s_v1.5.4_PCB#Pinout_of_Extension_connectors
I recommend you use one of the PWM or ANALOGUE pins, because the EXP1 and EXP2 are used by the Ultipanel later on, if you get one.
(The analogue pins can also be used as digital outputs, something you might not guess from the name)
Gijs
OK, suppose I would use PWM 8 and 9, what would then be the corresponding M42 pin assignment? just P8 and P9?
Daid
Yes, P8 and P9 would do the trick then. Small note about the PWM outputs, those can be PWM driven, not sure if the Arduino will do that or not, just be sure to use S0 and S255, no values in between to enable/disable the output.
Recommended Posts
Daid 306
The heater pins are protected from the M42 by default as far as I know.
Link to post
Share on other sites