Shop OBEX P1 Docs P2 Docs Learn Events
Run a DC motor using I/O pins — Parallax Forums

Run a DC motor using I/O pins

okemoabeokemoabe Posts: 12
edited 2010-04-15 23:40 in BASIC Stamp
I am trying to design a vibratory system and i have connected an irregular·mass to the rotor of an
8000rpm miniature DC motor, when i apply power the motor gives an awesome vibration.

The problem I have is that I found out there is no way i'm gonna simply run the motor by setting·one·of
the BS2 pins·HIGH as there is only PLUS and MINUS in the motor, no way to feed in the signal!

I have a feeling that a transistor can·be of·great assistance but i dont know how to make exact connections
for the vibratory system. Can some1 give me a schematic of how to attain this. Relay switch can help but all
I·have in possession is an NPN transistor and a PNP transistor.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-04-14 13:53
    Read Nuts and Volts Column #6 (in Volume #1) for a discussion of options. The last page of the article has a schematic.

    www.parallax.com/tabid/272/Default.aspx
  • ercoerco Posts: 20,256
    edited 2010-04-15 15:28
    Simplest on/off control is to use the Stamp to activate a 5V, 20 mA reed relay that switches your external circuit. Radio Shack has such a relay.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • ercoerco Posts: 20,256
    edited 2010-04-15 23:40
    Or see the Stamp·FAQ page showing a·general purpose (non reed)·relay schematic prominently at the top:

    http://forums.parallax.com/showthread.php?p=783327

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.