L293 test code
mynet43
Posts: 644
This message is for 'mikdiv', because the PM section doesn't allow attachments [noparse]:)[/noparse]
It's sample test code for the motor driver chip L293D (or L293DD SMT).
There are three routines needed to make this test work:
MotorDemo.spin
SN754410.spin
Random.spin
The first one is the control program, the second two were written by Javier Movellan.
Notes:
1. Demo is set up for the Prop Serial Terminal at 9600 baud. Feel free to change it, I usually use 115,200 baud.
2. The pin numbers for the L293DD chip are set in the SN754410 routine. You'll have to change them if you're using the L293D.
3. Let me know if you have any questions.
4. Anyone else with a different or better test setup, feel free to show it.
Jim
It's sample test code for the motor driver chip L293D (or L293DD SMT).
There are three routines needed to make this test work:
MotorDemo.spin
SN754410.spin
Random.spin
The first one is the control program, the second two were written by Javier Movellan.
Notes:
1. Demo is set up for the Prop Serial Terminal at 9600 baud. Feel free to change it, I usually use 115,200 baud.
2. The pin numbers for the L293DD chip are set in the SN754410 routine. You'll have to change them if you're using the L293D.
3. Let me know if you have any questions.
4. Anyone else with a different or better test setup, feel free to show it.
Jim
Comments
Even with my very limited programing skills I have gotten it to work quite well for my DC toy motors from Radio Shack ,, I should also mention that totally unexpected by me you can also run 4 wire Bi Polar steppers from Jim's design I connected 2 ,4 wire PM35s steppers and they worked throw in a 74LS04 "that's all I had" inverter and you only need to wires to control 2 motors ..
Thanks Jim