controlling my motor
vla7
Posts: 79
I built a basic circuit with 1 kohm resistor to a transistor.· Connected the emmiter to ground and to the negative battery terminal.· Connected the positive battery to a small dc motor and from the motor to the collector of the transistor.
Then I typed this basic program for the homework board to turn the motor on for 1 second.
High 2:
Pause 1000:
Low 2:
end
My problem is that the motor continues to spin after 1 second.· You can see and hear it slow down after 1 second but it continues to spin.· I can manually stop it from spinning by placing my finger on the shaft and applying a little pressure.· Also if I manually spin the shaft without running the program it will aslo start spinning and not stop until I manually stop it again.
Can someone please explain what is happening.· Why does the motor continue to spin at the end of the program.
Then I typed this basic program for the homework board to turn the motor on for 1 second.
High 2:
Pause 1000:
Low 2:
end
My problem is that the motor continues to spin after 1 second.· You can see and hear it slow down after 1 second but it continues to spin.· I can manually stop it from spinning by placing my finger on the shaft and applying a little pressure.· Also if I manually spin the shaft without running the program it will aslo start spinning and not stop until I manually stop it again.
Can someone please explain what is happening.· Why does the motor continue to spin at the end of the program.
Comments
An object at rest remains at rest unless something external makes it move. Similarly, an object that is moving will continue to move
in the same direction and with the same speed unless something external changes its motion. Rotating objects are a little more complex,
but the same idea applies. They'll continue to rotate at the same speed until something external changes their rotation. Usually, in the
"real world", this includes friction and usually, with most mechanical objects, someone has tried to minimize friction in their design.
Do a web search on "wiki inertia". Also try "wiki regenerative braking".
Do you mean it continues to spin constantly after you think you have powered it down via the Stamp and your circuitry? Is so, that is not inertia. That means your motor is still getting power.
Maybe the transistor is allowing enough current to leak through to power the motor? I am not smart enough to tell you how . . . but, Mike is.
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
Mike, you do have a sense of humor!
Post Edited (LilDi) : 11/12/2007 5:16:25 PM GMT
What vla7 is describing is the normal behavior of a nicely balanced, low friction (probably ball bearing) motor with a narrow shaft and relatively high rotor mass. Once spinning, it will continue to do so for some seconds unless slowed or stopped by friction with a finger. It will also come up to speed relatively slowly with the power turned on (because of its mass) or with a spin of the fingers.
LilDi,
Sense of humor?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
Thanks for the explanation.
I had the impression that the motor continued to run after his program shut if off. The wording threw me off.
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
You can also use an H-bridge to apply dynamic braking to the motor where the H-bridge effectively shorts out the motor windings and dissipates the energy of the rotor in the motor windings (as heat). Essentially, the motor is used as a generator. It doesn't need any additional energy and the motor will slow down pretty quickly. Try it on a DC motor you have. Spin it, then time how long it takes to stop. Spin it again with the motor windings shorted and time it.
The LOW statement should hold the transistor off, but the END statement puts the Stamp into a low power mode and periodically puts the I/O pins into input mode (see the manual for a description). That shouldn't turn the transistor on anyway. Do put a PAUSE after the LOW statement and see what happens.
Another thing to check is whether your BASIC Stamp and motor grounds are, indeed, tied together properly. If not, the transistor's base may still be getting a trickle of current. This would be easy enough to check. With the input "low", measure the voltage between the transistor's base and emitter. It should be zero. If it's more like 0.6V, you've got some stray base current happening.
-Phil
Addendum: I think Mike is onto something with the END statement. If the motor is quite small, you may be getting enough leakage current to drive it. To keep this from happening, put a 4.7K resistor between the transistor's base and emitter (ground).
Post Edited (Phil Pilgrim (PhiPi)) : 11/12/2007 8:15:55 PM GMT