Shop OBEX P1 Docs P2 Docs Learn Events
Turning DC motors from CPU.pin[0-14] in Javelin — Parallax Forums

Turning DC motors from CPU.pin[0-14] in Javelin

RuRu Posts: 2
edited 2004-10-11 19:54 in General Discussion
I cannot use the command CPU.writePin(CPU.pin0, true);
to turn a DC motor. Any other command I should try in Javelin?

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-10-11 15:02
    You should be able to turn the motor

    on/off that way if you use a NPN transistor

    or open collector ic like ULN2808.

    The javelin pins can only source/sink 25 mA !!

    regards peter
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-10-11 19:54
    As Peter said, you MUST put some 'driver' circuit between the Javelin pin and the motor. Most small DC motors take WAY more than 25 mA to do anything (more like 100 mA to 500 mA) and will burn out a Javelin pin.

    Look at the BS2 or Nuts&Volts resources on the Parallax website to get some idea of how to interface a DC motor to a BS2 -- identical circuitry will work for the Javelin.
Sign In or Register to comment.