I need 48 sg90 servos to move to a specific position each minute. Now I am using two arduino mega boards to power everything through 6 bread boards but it seems I need more power because some servos are ticking and are delayed. I cant get the external power supply to work independently of the computer. Once I unplug from my computer the servos jitter. Any help would be greatly appreciated.
1...Schematic...?– Majenko ♦Oct 16, 2020 at 9:33
1make sure you have connected all the grounds together, i mean from both the Arduino boards, i had similar issue when using ESP8266 module and Arduino UNO together! check this first and also make sure the power supply is regulated and sufficient for your needs.– Somasundharam SampathOct 17, 2020 at 6:03
Most servos use an analog signal (width of a pulse) for positioning. Any perturbation in that signal will cause unexpected behavior. Activating 48 servos simultaneously will likely indirectly or directly affect the analog signal.
The unexpected behavior might be mitigated through changes in software or hardware. These mitigation efforts may include:
- Staggering the servo changes so that only 1 servo moves at a time.
- Perhaps less effective but worth trying, staggering the servo changes so only 1 servo starts moving at a time. In this scenario more than 1 servos may be moving at a time.
- Using a power supply which maintains the expected voltage even during events such as all servos starting simultaneously.
These are only 3 options to consider. Many more exist but may not be pertinent to your situation. More information is needed.
1For 3: A short power surge could also be handled with a big capacitor between Vcc and ground. Those could provide the current needed for the spike and prevent the voltage from dropping– chrislOct 17, 2020 at 21:58