Shop OBEX P1 Docs P2 Docs Learn Events
bs2 controlling a 12vdc motor on robot — Parallax Forums

bs2 controlling a 12vdc motor on robot

brupbrup Posts: 14
edited 2009-05-13 15:30 in BASIC Stamp
jumpin.gif Hay I need to control a 12vdc motor on a robot I have put together. I have a 12 battery and motor. How do I get the stamp(bs2) to control the motor without a relay I need the motor to rotate in both directions. Can I use a transistor? What Transistor?Help!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-05-11 15:10
    You need what's called an "H-bridge". Read the Wikipedia article on the subject of "H-bridge". You can make your own H-bridge using discrete transistors or you can use an H-bridge IC like the L293D. There's one of these on the Professional Development Board, so you'll find some schematics and sample code in the StampWorks Manual which you can download from Parallax (do a search for "StampWorks" on Parallax's website).
  • brupbrup Posts: 14
    edited 2009-05-13 15:30
    lol.giflol.gif worked out great thanks. brup
Sign In or Register to comment.