Shop OBEX P1 Docs P2 Docs Learn Events
adjusting multiple outputs failing? — Parallax Forums

adjusting multiple outputs failing?

geoffreygeoffrey Posts: 1
edited 2006-12-04 19:52 in Learn with BlocklyProp
hey, I'm making a rc car as part of a comp. eng. project.

We have four ouput lines coming from the stamp (IC-2), to a 74LS244, to drive relayes to drive the motors of the car. My problem is that assigning several outputs as at the same time will fail the device and restart it. With this code(the constants are pin #'s):

back:
· HIGH pLeft···············
· HIGH pRight
· LOW dLeft
· LOW dRight
· PAUSE 1000

I seem to be able to get it to work with just 2 high/low commands at a time.·The input currents match with the·output currents of the stamp as well. Also, I have stated previously that these pins were outputs(even though these commands auotmatyically change the io direction). I'm using pBasic 2.0. Any idea whats going on?

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-12-04 19:52
    Sounds like too little current available, which 'browns out' the voltage, which resets the stamp. Pretty typical. Do you have any capacitors across the motors of the car?
Sign In or Register to comment.