Is this circuit safe?

For practice, I want to:

  • read the value of a 10K potentiometer, and

  • control an RGB LED (Kingbright LF-5WAEMBGMBW, 25 to 30 mA forward current per sub LED)

  • via a decade counter (M74HC4017B1).

Later I want to use these components in a more complex circuit. It is the first time that I use an Arduino, and I don't want to fry it or any of the other components. The Arduino is connected to USB at all times, i.e. there is no need for an additional power supply.

Does that look OK?

What's the decade counter for?

What's the decade counter for?

For practice, I want to use it to control the color of the LED. Of course, I could connect the LED directly to the Arduino.

Be careful with the potentiometer.

Up to my experience you need to find the following pin:
1, 2, 3

Between 1 and 2 there will be a constant resistance , no matter how you move the potentiometer.

These 2 pin have to be connected respectively to 5V and to GND.

The other one will be connected to an analog IN.

between 2 and 3 or between 1 and 3 there is a variable resistance between 0 and 10Kohm (the maximum value of your potentiometer).

To measure these resistance you could use a Multimeter.

I hope that this is useful,