Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
See my motor controller tutorial http://www.societyofrobots.com/member_tutorials/node/164It only requires two pins per motor: one for PWM (ie speed) and one for direction (Fwd/Reverse).
If you don't want to waste pins check out shift registers and multiplexers, very handy
ST micro do other L29x devices that work in conjunction with each other. for example: I used the L298 full bridge driver to control stepper motors with. this required 6 outputs per driver. I'm just in the middle of making a new motor controller and incorporating the L297 which connects to the L298. The new controller will require just 2 outputs from my microcontroller rather than the 6 it used to need(per motor).Maybe theres an L29x device that can be used in conjunction with your L293
Quote from: paulstreats on August 05, 2010, 03:43:05 PMST micro do other L29x devices that work in conjunction with each other. for example: I used the L298 full bridge driver to control stepper motors with. this required 6 outputs per driver. I'm just in the middle of making a new motor controller and incorporating the L297 which connects to the L298. The new controller will require just 2 outputs from my microcontroller rather than the 6 it used to need(per motor).Maybe theres an L29x device that can be used in conjunction with your L293My motor controller posting referred to earlier also covers stepper motors including the L297/298. In the same way as the L297 can 'front' the L298 to turn pulses into stepper drive outputs then I'm not aware of a similar device for h bridges like the 293. Steppers have to create sequences (done by the 297) but a 293 is just an h-bridge with no sequencing.But when it comes to IO pins then I can't see how you can get better than 2 pins per motor - providing speed, clockwise/counterclockwise, and a brake.
To implement sign-magnitude PWM, the Enable pin is pulsed and IN1 determines direction. For locked anti-phase, IN1 is pulsed and Enable is used to enable/disable the motor. We have used PWM frequencies up to 20kHz.Microbot is a small line follower that uses the FAN8200 to control a pair of Solarbotics gear pager motors powered by a single Li-Poly battery. Microbot weighs a mere 1 ounce!
You have 20+ pins to use... stop being OCD