I have a fire extinguisher project and i need to power a 6V water pump motor with
Arduino Nano, when i click the button.
Digital pins can not give enough power to the motor because of the mAh limitation.
But the 5V pins power it just well.
My question is, how can i treat a 5V pin as a digital pin so i could power the motor on demand?
kerem_:
My question is, how can i treat a 5V pin as a digital pin so i could power the motor on demand?
Some misunderstanding here!
The "5V" pin is the pin you use to supply power to the Arduino. If you have the Arduino plugged into a USB power source, you can use the "5V" pin to supply 5 Volts to some other devices such as sensors, up to perhaps 450 mA on the basis that the USB can supply up to 500 mA. The polyfuse (UNO) or diode (Nano) restricts you from passing more current through to the "5V" pin.
The on-board regulator is generally useless if you have anything else connected other than the basic Arduino itself, so do not even consider attempting to use the "Barrel jack" or "Vin".