I need to run a 12volt motor controlled by the bard of education.
brup
Posts: 14
I need to run a 12volt motor controlled by the bard of education. I have the relay and motor. The board will not activate the relay even though its a 5v relay. Any fixes will help.
[noparse][[/noparse]Subject Added By Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 4/3/2008 2:14:55 PM GMT
[noparse][[/noparse]Subject Added By Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 4/3/2008 2:14:55 PM GMT
Comments
You're probably trying to drive a relay that requires too much current from the Stamp to turn on. The tutorial will help you.
The Basic Stamp cannot run a motor directly from the pins. You need to use a transistor or other switching device. I believe that the "What's a microcontroller" text has details. The Stamp pin has the 5V, but not enough current to activate the relay. You will also need a disode to protect the Stamp from transient voltages created when the relay de-activates. You can and will ruin the Stamp pin, or possible even the Stamp itself if you try to drive a relay directly from the Stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support