Hello,
I am a new member of this forum, I haven't seen any introduction section, so I will skip this for now.
I finished with the Mood Cue starter kit project and it works fine.
Lately, I have modify the original sketch by introducing the RGB LED previously implemented in the project Color mix lamp.
I coded that the color is fading from red (at 0 angle) to blue (at 90) to green (at 179).
My code works fine but it seems that the current used by the servo motor is interfering with the LED even though they are connected to different pins.
I mean, the colors are not fading smoothly, and at some point, maybe turning towards the blue, it seems the electrical noise increases and the servo motor becomes unstable. Also the LED TX of Arduino was blinking/striving and I am not sure if I can damage it.
I attached a pic with my configuration.
Without attaching the servo motor (i.e. by commenting Servo.attach), the fading was perfect.
I understand the original project requires 2 capacitors maybe for this reason.
Do I need another capacitor in parallel with the LED as well?
Since the anodes are connecting to ARDUINO and not to the breadboard, why the voltage (or the current?) is influenced by the servo motor?
Thank you for any help
Servos pull quite a bit of current, especially when starting to move or trying to maintain position against a load. If you are supplying the servo from the 5V regulator on the Arduino or USB, the high current demand will pull the supply voltage down. It is almost always necessary to provide an external power supply for servos. Check the servo data sheet for the servo stall current and rated voltage specifications to size the external supply. A 4 AA battery pack (6V) will suffice for most small hobby type (model aircraft) servos.
Thank you for your reply.
I am using the servo motor provided with the starter kit, but with respect to what I have seen online, my servo does not have any label attached and I cannot retrieve any data.
Hence, for my project, the use of multiple capacitors would not help?
I would like to calculate the required current but I did not get in the first place why I need a capacitor also with the potentiometer.
thanks