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

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

#25  

So I'm going to mark this post as resolved. After getting this to work last night using the code that Rich presented, than modified by myself it has been deemed too slow. It seemed to take 30 minutes to move an inch. I removed both of the sleep commands basically turning D11 on and off as fast as it could and it was still just to slow. So this morning I ordered a simple 12vdc linear actuator from servo city with 10 inches of travel and a no load spped of 1/2 inch per second. Seeing I like the serial control commands I will purchase a third robo claw controller 2x 15 to control it, and use the built in potentiometer to the ezb 4 controller for position feedback. Unfortunately this will force some redesign, but in the end a much simpler alternative. Thanks to everyone that has helped with this project. Chris