ive been trying to control 19 servos using my Arduino mega 2560. And in order to lessen the jittering or the noise i am planning to use De-coupling capacitor i found here:
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html
can somebody tell me how to expand the this De-coupling circuit (Ive uploaded the image of the circuit). I also made some circuit which i named circuit A and circuit B. Can somebody tell me which one is the correct way of expanding this circuit or if they are both wrong can someone help me and teach me how to do it?
i deeply appreciate any help for this.
For servos, you need an adequate power supply, not decoupling capacitors.
Your power supply should supply 5-6V at 1 ampere (or more) per moving servo. If all 19 are moving, use a 5-6V, 20 A (or more) power supply.
yes i was already doing that but sometimes they jitter for some reason. so i thought that putting some de-coupling capacitor should lessen it.
I wonder if some of the electronics inside a servo isn't already a decoupling capacitor?
not sure but i found some examples that still uses decoupling capacitor with servo though i only found an example that uses a single servo not for multiple servo.
yes i was already doing that
Doing what? State the voltage and current characteristics of your power supply (or post a link) and describe the wiring.
I am using a LHR 2000mAh Li-Po Battery for Syma X8C and X8HG Drones for battery and a YEP 20A HV (2~12S) SBEC w/Selectable Voltage Output to get 6v, 20a. as for the circuit i am currently using its just an Arduino Mega 2560 connected to a arduino mega sensor shield v2.0.
Run_piggy:
yes i was already doing that but sometimes they jitter for some reason. so i thought that putting some de-coupling capacitor should lessen it.
Jitter is usually due to the control signal having variable timing, not the supply fluctuating.
Usually supply problems cause complete loss of control, not jitter.
For instance the Servo library timing will have some jitter if there are other interrupt routines
being called in the system, such as the one that maintains millis() and micros().
Anyway the size of decoupling capacitor needed for high current low voltage load is huge, impractical.
MarkT:
Jitter is usually due to the control signal having variable timing, not the supply fluctuating.
Usually supply problems cause complete loss of control, not jitter.For instance the Servo library timing will have some jitter if there are other interrupt routines
being called in the system, such as the one that maintains millis() and micros().Anyway the size of decoupling capacitor needed for high current low voltage load is huge, impractical.
i see can you at least show me how to compute for decoupling capacitor for reference in future? thanks
There is a post in the above forum by someone who works in the industry. They say use a 0.1uF in parallel with a 10uF capacitor. If there is still jitter, place more. There's really no calculation to do, unless you want to also calculate according to the exact distance (in millimeters) your capacitor is away.
As to the comment of diodes in this discussion... you are correct that you usually want flyback diodes! But most hobbyist servos are actually a DC motor with a speed control mechanism. That probably already has a flyback diode, and the use of a decoupler is to protect the bounce going towards the speed control mechanism. Please see below youtube for a dissection of a hobbyist servo.