Shop OBEX P1 Docs P2 Docs Learn Events
L-293 and Prop Chip — Parallax Forums

L-293 and Prop Chip

mikedivmikediv Posts: 825
edited 2009-11-17 00:42 in Propeller 1
Hi guys I have been working with the L-293 motor control chip I have it working fine with the Basic Stamp 2 but when I try to use it with a prop it does not work let me explain its very easy what I am doing here is the schematic I am only controlling one motor so I do not need to connect pins 9,10,11,12,13,14,15 of the L-293 .. With the prop chip I can not pull any of the lines,"enable" or the control lines" 2 and 7" low or high.. with the stamp I can pull them low or high but with the prop the enable line is high no matter what and even though I know for a fact I am setting the prop pins low "dira[noparse][[/noparse]0]:= outa[noparse][[/noparse]0]:= 0 the enable pin stays high. and the other control pins are not affected by what I set the prop pins to be either ???Like I said with the Stamp chip I can pull the L-293 pins high or low and the motor will change direction
Am I suppose to use pull up pull down resistors with the prop chip? I have tried the Prop Proto board as well as the USB Prop Stick , if I disconnect the L-293 I can see the prop pins toggle high low on my scope can anyone tell me what gives?
Thanks guys
746 x 690 - 46K

Comments

  • mynet43mynet43 Posts: 644
    edited 2009-11-15 04:05
    Hi Mike,

    Here's a schematic that works fine. Let me know if you need software to go with it.

    Jim
    1024 x 786 - 104K
  • KyeKye Posts: 2,200
    edited 2009-11-15 05:44
    Maybe the voltage swing isn't enough.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • mparkmpark Posts: 1,305
    edited 2009-11-15 08:19
    mikediv said...
    ...I know for a fact I am setting the prop pins low "dira[noparse][[/noparse]0]:= outa[noparse][[/noparse]0]:= 0 the enable pin stays high. ...

    Shouldn't dira[noparse][[/noparse]0] be set to 1, not 0, to make it an output?
  • MacGeek117MacGeek117 Posts: 747
    edited 2009-11-16 22:15
    Yes, that is correct.

    MacGeek117

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    BS2: $49


    SX48 Protoboard: $10

    Propeller Protoboard: Priceless

    www.apple.com

    www.parallax.com

    www.goldmine-elec.com

    www.expresspcb.com

    www.jameco.com
  • mikedivmikediv Posts: 825
    edited 2009-11-17 00:42
    mpark dir[noparse][[/noparse]0] is prop pin P0 the:= 1 or 0 sets the register bit either as an output or input and the outa[noparse][[/noparse]0] again 0 is the Prop in P0 and the := either 0 or one sets the output to a low or high

    Kye that's a thought but I am using exact same voltage as Basic Stamp2 9 V for the Prop +5 for the L-293 and 9V for the DC motor
    Mynet43 thank you for the schematic I would be very thankful for any software you could include.
    Thanks guys as it stands I still can not get the prop to work properly with the L293 just can not figure it out I will try Mynet design and see where it goes thanks everyone

    Oh Duh Mpark you are correct I made a typo it is correct in my circuit and sample program I set P0 to an output 1 and set the output to 1 , I have also tried setting it low to see if I could disable the L-293 for some reason even though my prop pins will toggle high or low on my scope
    when disconnected from the L-293 when connected enable is pulled high no matter what prop says and the its the darnedest thing

    Post Edited (mikediv) : 11/17/2009 12:47:56 AM GMT
Sign In or Register to comment.