Powering Nano with external device

I have a nano being powered by an external 1A 5v supply.

I have the positive and negative going to a breadboard which supplies power to 3 small 9g servos.

I then take the positive and negative from the board to power the nano on +5v and gnd

It works perfectly but after 4 loop cycles it appears the nano resets and the program starts again.

Should I have a larger external power supply? maybe 3A?

Should I put a capacitor across the 5v and gnd on the nano?

or have I just wired the thing up wrong in the first place?

Thanks in advance for any help.

Jon

Separate power for the Arduino is the only properly safe way. 3 small servos means maybe upto 3A is
required from the supply, 1A is inadequate (its barely adequate for one small servo).

If you do share power you need to ensure the Arduino get a stable 5V without spikes and drop-outs,
which might mean adding LC filtering, or a DC-DC converter to isolate from the motor-induced noise
on the servo supply.

Capacitor would need to be large, 47,000uF and up to have much effect on drop-outs I fear, but it does reduce
spikes substatially so is worth doing, even as low as 1,000uF.

You should have separate leads from the supply to servos and to Arduino, put capacitor at the Arduino.
That reduces IR voltages on the motor supply and ground wires from hitting the Arduino, but can't eliminate
overloading of the supply.

Thanks for the quick response and was what I was thinking, honest :smiley:

I've been checking capacitors, and looked at the 47 000uF would you have this as well as a larger power supply?

a 3A supply and a 47 000uF capacitor?

the capacitors come in different watts, what would you recommend?

Thanks,

Jon

Capacitors come in different watts? News to me!

Obviously you would select a capacitor with a large enough working voltage.

A large capacitor is making up for an inadequate supply, ie covering short drop-outs. With a
supply capable of providing enough current the capacitor only has to quell the spikes and noise
and can be smaller.

There's a clever extra trick, add a diode (preferrably schottky) between the supply and the Arduino
5V pin and its capacitor. Then any dropouts aftect only the servos and the capacitor only has to
power the Arduino, stopping it reseting.

However a servo can easily misbehave during a voltage drop-out, since its internal controller
will also reset or get confused.

Confusing capacitors and resistors?

Paul

Paul_KD7HB:
Confusing capacitors and resistors?

Paul

What would you recommend Paul?
I'm going to use a 3A supply now but what else would you suggest?

thanks,

Jon

If I were to use a USB 5v charger would this be better?
If so, how would I then power the servos, on another separate supply?

What would be best?

Thanks all,

Jon

You want a 5v line from the charger to go to the servos. Basically cut off some of the insulation, find the usually red wire, strip that insulation, and make a lead off it for your servos without cutting it.