Stability of arduino boards

I am making a servo move between several degrees or angles , back and forth. I started by programing a uno r3 board. I later went to a pro mini to save on space. It seams that the pro mini is not as stable in running that simple program then I think the uno r3 had. It seams that over several hours of running the pro mini program stops running. If I wait several hours, the program will run again. Is it my programming or is the uno r3 a more reliable board?

Please post your sketch, details of how the project is powered and the environment in which it is running. Is there a load on the servo, for instance ?

Did you change the code when you moved it to the Pro Mini? If not, both boards use the same chip, so that rules out the programming.

No, they are equally reliable if used correctly. Perhaps you have not been using them correctly. If so, the Uno might be a little more tolerant of that than the Pro Mini. It depends on the circuit. Please post details, including a schematic.

How are you powering the servo? Servos draw a lot of power and I find that NO Arduino board is stable powering them directly.

1 Like

A 5V 1A phone charger will work well to power one small servo (3A for a large one, like MG996R). Don't forget to connect the grounds.

Yes I am powering the servo with a separate 6 volt supply with the grounds all connected. Any other ideas please?

Also I am using the MG 996r 180 degree servo. 3 Amp 6 volt separate supply with the grounds all attached.

On the surface, it sounds like you’re on the right track.
Maybe loose or shorted connections.

Do I understand correctly that the servo stops doing it's thing then restarts without intervention some time later?

If so, that sounds like some sort of arithmetic overflow problem, e.g., micros() overflows after about 71 minutes. If that's what you're seeing, post the code and someone will probably be able to spot the issue.

The servo runs for an hour to two hours then stops running. If the device is turned off and restarted sometime later, it runs again.

For goodness sake, please post your sketch

I am traveling right now do I can not give the code I wrote. I will come Friday. I do have a question tho. The program is a loop. I tell it to go through the loop 90 times. Does that mean after the 90 times to serve will stop?

I will on Friday for heaven sake

Question…. For the pro mini I am powering that with a 6 volt 1 amp supply. Is that adequate?

..................... picture this if you will and see if the penny drops.......... my car is broke...what specifically is wrong with it?

1 Like

Where are you applying the power to? What pin?
6V is too much to power it on the 5V pin, and too small to power it from the internal regulator through the Vin pin, and way to small to power it from the power jack connector.

I am powering the pro mini at the raw pin

If I use the uno I would use the vin pin at 6 volts

I have also soldered on the pins that connect the jack to the board but again 6volt

6V on the raw pin means less than 5V on the MCU Vcc, at least 7V is required for stable 5V at the regulator output.