Arduino Nano Atmega328p freezes and starts lagging and reset-ing after a few seconds running on battery--- it doesn't freeze or resets when ran onUSB

Fair enough. You could make one yourself by disassembling something and repurposing the parts. Something with a USB B connector like on the original Arduino would be easy to solder wires to. In a pinch, you could even cut a USB cable and carefully use the bare wires.

Thanks for your help

Your welcome. Good luck with your project and have fun!

1 Like

Hey Emily quick question about the breakout board, that will this work??

Yes, I believe it will. I think that will plug into your power bank and you can attach wires to it. You could get the same result from just cutting a USB cable though.

You want to end up with something like this.

so like if i cut the usb cable like shown in the image, will it work as an alternative to the breakout board???

So, if you start with a cable like this:


and cut the micro USB (or whatever it actually is) connector off the end you will be left with a USB A connector that will plug into your power bank. The bare wires from the cut end will be the VUSB, GND, D+, and D- from a normal USB connection. You want to isolate the VUSB(5V) and GND wires and use those to power your project, The color coding of the wires may be different from the image in post #31 so you need to check with a voltmeter to make sure you have the correct ones and the correct polarity.

If you are more comfortable buying the breakout board from your post #29, then use that. I'm just suggesting that you probably already have a cable that you can sacrifice for the project.

hey emily so my project got broken for a few days so i had to order a new arduino, so I wanted to ask you one thing regarding this breakout cable that is, do usb cables have voltage regulators or something inside them which will enable me to provide my project with a constant 5v??????????????????

USB is 5V and comes from a regulated source (usually your PC or an adapter). So there is no need for a voltage regulator in the cable to get a decent 5V.

oh actually i was asking like it will work as an alternative to the breakout board right??

A breadboard does not have power so I don't understand the question; you provide power to a breadboard.

The board was just a convenient way to use a USB charging cable to power your project. Cutting the cable and using the bare wires was a way to avoid having to buy a breakout board.

The voltage available from the cable would be either 5V from USB from your computer or from the power bank you were wanting to use.

oh ok thanks and one more thing i noticed with this new arduino that it started freezing and lagging with my computer power too. like when i power my project using arduino's usb port it has now started to lag when getting power from my computer also

You will have to show us a diagram of exactly how you are powering everything in your project. It sounds like you are overloading something somewhere but I can't guess what it might be until you post a schematic.

ok give me a bit of time i will post a circuit diagram

hey emily this is the circuit diagram made by me, everything in the diagram is the exact same as my project:

Hi, @epic_gaming7

Sorry, we need a proper schematic, not a copy and paste image.
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Can you please post some pictures of your project?
So we can see your component layout.

What are the batteries you have been trying?

Thanks... Tom... :grinning: :+1: :coffee: :australia:

I will try to post these.

Follow @TomGeorge advice for starters. I can see though, from what you posted, a few obvious problems.

  1. You can't power anything from Vin. It is an input not an output.
  2. The Nano has a 500 mA resettable fuse on the USB power input so if you try to draw more than that the fuse will open and power down the nano and anything attached to pin 4(5V.)
  3. 3V3 comes from the FT232 UART chip and can only supply 50 mA so that's probably a problem.