Shop OBEX P1 Docs P2 Docs Learn Events
Power Commands — Parallax Forums

Power Commands

A.C. fishingA.C. fishing Posts: 262
edited 2006-03-12 22:22 in Robotics
What command can you use to give power to a DC motor?
Freqout isn't working for me. Perhaps I'm using the wrong Frequency but....confused.gifconfused.gifconfused.gif

Comments

  • Steve JoblinSteve Joblin Posts: 784
    edited 2006-03-12 21:18
    I just saw your post in the Sandbox... "Cheap 20 Second Recording Module"... this is a duplicate post. I posted my response to this question there..
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-03-12 22:22
    A. C. Fishing -

    Generally motors of any sort (except for R/C servo motors) are not connected to the PBASIC Stamp pin ports directly. This is because there is a limited amount of current available at each pin port. This only amounts to about 20-30 milliamps.

    Generally one uses an H-Bridge to provide both speed and directional control to a permanent magnet DC motor (toy motor). If you only need to start and stop it, without speed or directional control, you can use an appropriate transistor between the pin port and the motor. Then one just turns the transistor ON and OFF by using HIGH and LOW commands directed at the appropriate pin port.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
Sign In or Register to comment.