I just finished Projects 05 and 10 from the Arduino Starter Kit and I was wondering, why there is no decoupling capacitor necessary in Project 10 for the DC Motor?
Also, is there a way to calculate the capacity of the decoupling capacitors in Project 05?
In project 05, the servo motor is powered from the 5V pin of the Uno. This means that the Uno's microcontroller is subjected to the voltage fluctuations caused by the motor. That could interfere with the working of the microcontroller, so it's important to reduce them.
In project 10, the DC motor is powered by a dedicated 9V battery, while the Uno is powered by its own power line (e.g., the power from the USB cable). So the voltage fluctuations caused by the motor only affect the motor.
I was not aware that the capacitors are protecting the Arduino rather than the servo motor.
Isn't one decoupling capacitor around the motor enough then?
Hello Bernhard,
General rule with decoupling capacitors is if in doubt add them. They might not do any good but they won't do any harm. They should be wired as close as physically possible to the device being powered.
I'd strongly recommend always using separate power for any servo or motor. Sharing the Arduino's 5V
rail with a high current noisy component such as a motor/servo is asking for issues like drop-outs, spikes and
spurious resets of the microcontroller.
And to drive a motor from a small 9V battery is overloading the battery, so it will rapidly drop in voltage
and won't be able to get much torque from the motor. Small 9V batteries typically struggle above 100mA.
pert:
In project 05, the servo motor is powered from the 5V pin of the Uno.
Which, I'd like to add, is OK for testing out and playing a bit with a very small servo, like the little blue ones commonly seen in Arduino kits, and then only when the Arduino is connected to the USB for power, not a higher voltage supply through the barrel jack connection.
For any permanent project, or any more serious servos, or more than one of those little servos, a dedicated power supply is in order (that power supply may in turn power the Arduino as well, of course).
Thank you very much for your replies and sorry for my late reaction: I couldn't log in for some time..
My plan is also to use a dedicated power supply for motors as I also fear that a battery will lose degrade very quickl. I was thinking of using something like this: %product-title% kaufen
Dig into your drawer with disused mobile phone chargers and likely you have something that can produce 5V with sufficient current, and power both in one go. Use the 5V pin, not the Vin pin (which needs at least 6.5V to guarantee a 5V supply on the Arduino board, 6V is a horrible voltage for an Arduino).