I am making an ironman helmet and I have two servos connected to pins 9/10, GRD, and to the 9v battery trough a switch. Then the battery is in GRD and VIN. An led to pin 4 and GRD. And a button on pin 2 and GRD. Everything works fine as long as the arduino is connected to a computer and the battery is on it works but as soon as I unplug it nothing works. Can anyone help?
This is the wiring guide with out the potentiometer and a 9v battery.
Do i have to declare it in the code somewhere
Kindly check the following to get the issue resolved
Battery Voltage as per the board Requirement
mAH of the battery
Is the inbuilt led glows brightly or not when connected to battery
Try Changing the battery
Check 5V GND Correctly
If you are using a plain alkaline type 9V battery then it cannot supply enough current to run the servos, nano and LEDs at the same time especially if it is not brand new. You should use a lithium 9V or 6 AA batteries