Asked — Edited
Resolved Resolved by Rich!

Do Pins Question

I read Rich's tutorial regarding the l298 h bridge which is prompting this question. There was a spin off link that Rich directed me too that actually showed a bit of code to control a stepper motor. I need to set up something like that, and so what I would like to do is set D1 on and off rapidly creating an actual pulse. PWM will not work in this situation. Anyways my controller is looking for 5vdc to fire a optoisolator (led). I am powering my ezb4 via 12vdc. The output of the D0 ports is 12vdc Correct? What voltage would come out of the white wire, if any? My stepper controller is a bit different than the l2d8 requiring only a pulse on one input and a on/off voltage for direction. The controller can work on 12vdc but requires the addition of 820ohm resistors on these inputs. Thanks for the help.


ARC Pro

Upgrade to ARC Pro

Synthiam ARC Pro is a new tool that will help unleash your creativity with programming robots in just seconds!

#9  

Maybe someone can recommend me a stepper motor that will work in my application? Thanks Chris

#10  

Just a quick google produced all of the same results. It seems all these controllers require a 5 vdc pulse to step. Suggestions? Chris

#11  

The l298n(2.5A motor controller) in the shop has a stepper motor port. Could this work? It takes 12v I believe.

#12  

It would work but requires the code example Rich provided I believe. This code will be bad for comms and other functions of the ezb4. Thanks Chris

United Kingdom
#14  

Have a look at 555 timer circuits which pulse an output, if you wired one of these along with the TIP122 based transistor switching circuit to enable the circuit you could have the hard work done by the 555 timer and as far as comms are concerned it would be a sinle On or Off command to the port to enable/disable it.

Something like this may do it;

User-inserted image

#16  

Very interesting. Looks like it will work, only thing I don't particularly like is the 2 different voltage sources. 5 volts for the logic and xxx voltage for the motors. I may look into this further though. Thank you very much. Chris