When I run this code from the ardino board it functions perfectly.
When I remove the power and ground from the board and attach to an external power 5v supply nothing happens.
I have checked that the external power supply is correctly attached.
The motor works ok directly from the external power supply so it is feeding the power ok.
The wiring diagram is attached, is it something to do with the way the transistor is set up?
Not clear what "last thing" refers to. I have run the program with the 2 power supplies several times each with the same result!
The Arduino has an onboard 5v power supply, not clear why I should not run a motor from it?
When I remove the power and ground from the board and attach to an external power 5v supply nothing happens.
I have checked that the external power supply is correctly attached.
When you are using an external power supply how and where are you connecting it to the Arduino ?
Sam1Bird2:
When I run this code from the ardino board it functions perfectly.
When I remove the power and ground from the board and attach to an external power 5v supply nothing happens.
The external power ( on the jack ) should be between 7V and 12v
I am using the arduino's +- rails I upped it to 9v nothing; then double checked Arduino still working with direct + - supply from board.
Why would I need more than 5v direct jack, it runs ok at 3.5v from the Arduino board.
Thanks
Sam1Bird2:
I am using the arduino's +- rails I upped it to 9v nothing; then double checked Arduino still working with direct + - supply from board.
Why would I need more than 5v direct jack, it runs ok at 3.5v from the Arduino board.
Thanks
Is it an Arduino Uno , as shown on your schematic ?
from the power jack I get 9v in constant output 2.9v constant mA .07
From the Arduino board I get varying voltage [as one would expect] 0 - 5v and varying mA 0-0.19
????
Sam1Bird2:
from the power jack I get 9v in constant output 2.9v constant mA .07
From the Arduino board I get varying voltage [as one would expect] 0 - 5v and varying mA 0-0.19
????
I understand that the external power is connected to thr Arduino Jack?
Post your ACTUAL schematic.
larryd:
Because you ‘will’ blow up your voltage regulator.
That probably not since it is a 7805 family type one, which has overheat & over-current protection built in, but the induction that occurs when starting and stopping a motor may damage quite a few other parts.
The Arduino has an onboard 5v power supply, not clear why I should not run a motor from it?
well one of the reasons is mentioned already, but the other thing is that these lineair power regulators are not suitable to drive motors in general, they don't work !