VIN
Can I use VIN with High and Low commands?
I have this 6V motor which doesnt run on regulated ps on boe bread board, but when connected directly to VIN and VSS to X1 it runs. I just want to run a motor using a High and Low command using 2 I/O for reverse and forward. Help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Soul Still Bruns!!
I have this 6V motor which doesnt run on regulated ps on boe bread board, but when connected directly to VIN and VSS to X1 it runs. I just want to run a motor using a High and Low command using 2 I/O for reverse and forward. Help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Soul Still Bruns!!
Comments
·· You cannot drive the motor directly from a·Stamp I/O pin.· You can use a transistor though.· Be sure to use a resistor between the base of the transistor and the Stamp I/O pin.· This subject has been covered several times in the last few days, so for details please see the other posts.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
A word of caution, connecting a DC motor directly to a BASIC Stamp's I/O pins typically damages the BASIC Stamp. BASIC Stamp I/O pins are designed mainly for sending and receive signals, and cannot supply lots of power. Enough power to light up an LED with a 220 ohm resistor in series, yes.· Enough to drive a 10 ohm motor, no -·low resistance, high current, blue smoke rising...· Driver chips such as transistors, darlington arrays, or the LM293, are used to take the signal from the BASIC Stamp and deliver the larger amounts of current small DC motors typically require.
Post Edited (Andy Lindsay (Parallax)) : 4/14/2005 2:07:53 AM GMT
There are a couple of H-bridge MOSFET drivers chips availabe that take 2 signals to control them forward or reverse. To control the speed in either direction you can output a PWM to each input and the motor will spin faster or slower depending on the PWM duty cycle. I have used this method to control 2 HP DC motors. The LM293 mentioned above works well for smaller DC motors.