I'm making a simple line follower robot using Arduino Nano and it works all fine when plugged into the laptop but once I unplug it, It doesn't work.
That's sad.
If you unplug it from the laptop, how is it powered?
It's powered via a pack of 4 non rechargeable cells each cell is AA 1.5v
We seem to be missing an awful lot of detail.
Connected where?
What other power consuming devices are connected?
The best answer You can give is posting schematics.
That's the schematic(I'm using nano instead of uno), the top one is the battery I'm using
I can't read this:

Can you? It's what you posted.
That's the schematic(I'm using nano instead of uno)
Then, it's a schematic of something else. Not useful.
... of a different diagram. Come on! Not only that, but in that piece of *** work, the coloured wires cover up each and every label on the board!!!!
Use a pen and paper, make a proper diagram, and post that.
What's connected to the 7-12V socket?
See post #3.
Yes, I know, I was just highlighting the "7-12V" bit.
It is suspect... but often labels like that are just attached to some part in the Fritzing library and have no basis in reality.
Another reason to reject Fritzings outright.
It's true, if indeed the exact same motor control board is used, that connection is an input to a voltage regulator, so yeah... 6V would be too low.
Unless, that is just a "best fit" from the limited Fritzing parts library...
The only actual photo that we see, doesn't show any boards at all! ![]()
Wired in series?
Might be even lower if batteries are not fresh.
Yeah in series the battery pack is shown an image above.
Maybe try a higher voltage battery pack?
Or a cell phone battery pack.
9v batteries might work but not ideal.
The screenshot surely is from another website but is of the same circuit.
It has to satisfy the input voltage requirement of the on board regulator. Whatever that is...
Should I connect 2 9v batteries in parallel?


