Shop OBEX P1 Docs P2 Docs Learn Events
L293 test code — Parallax Forums

L293 test code

mynet43mynet43 Posts: 644
edited 2009-11-17 23:22 in Propeller 1
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

Comments

  • mikedivmikediv Posts: 825
    edited 2009-11-17 23:22
    Jim I sent PM before I saw this thank you very much ,, if anyone else is using or trying to use the L293 Jim's circuit under my L293 post works very well I just completed building it its awesome for DC motors and easily allows you to switch forward and reverse.
    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
Sign In or Register to comment.