by RetireeJay » 2017-May-Wed-09-May
The Printrboard outputs its control signal for the Extruder stepper through a stepper-motor driver chip. Unfortunately, there's no simple and clean way to modify the firmware to make that chip control a simple on/off output because the chip itself has an internal state control that is not fed back to the CPU.
So just off the top of my head, you have several choices:
(1) You could modify the firmware to turn the stepper "enable" on and off only when "stepping" - which might be fairly easy to do, since that function is already present in the firmware, just not timed the way you want it. Then you would have to tap into the "enable" signal and use it to drive your valve.
(2) You could modify the firmware to send a signal to an unused output pin on one of the expansion ports
(3) You could design a circuit that looks for pulses on the motor-control wires and turns on the valve when it sees pulses. This has the advantage of no firmware mods at all.
(4) If you are not using a heated bed, you could revise the firmware to use the heated bed output to drive your valve. This has the advantage of needing no external circuitry because the heated bed driver transistor is capable of significant current (assuming your valve runs off 12V DC).
In the first three scenarios, you'll have to have some external circuitry to boost the logic signal up to sufficient strength to run the valve.
However, you need to be aware that the existing extruder control modulates how fast to extrude material based on how fast the head is moving, combined with knowledge of the nozzle size and layer thickness. A simple on/off control will not give you as good a control. And particularly there could be difficulties due to the compressibility of air: there will be a lag between when you call for extrusion and when it starts, and another lag between when you tell it to stop and when it actually stops.
Printrbot Plus operational January 2013
Brass threaded rods (5/16" X 18) & nuts for Z axis
GT2 belts & pulleys
Cable chain to reduce probability of fatigue failure in wires
E3D V5 Hot End, 0.4mm nozzle, also 0.8 and 0.25 in use occasionally
PB fan mount + 40mm fan -- using printed mount adapter, not the E3D supplied fan
Injection molded extruder gears
Optical Z "endstop" (custom designed and built)
Have used many pounds of T-Glase filament. Now also doing some work with Ninjaflex SemiFlex
Print on glass with Scotch Craft Stick or other glue stick
"My next printer is..." Prusa i3 MK3, upgraded to MK3S