Connect the wires:

In this step, we connect the LEDs with the Arduino with three different pins on the anode (+) and we connect the cathode (-) with the ground throw resistors to control the current.

The connection

Write the code:

In this step, we open the Arduino app on the computer and we connect the Arduino, then we start writing the code.


We need to define pins with its modes in the setup function.


For every pin, we give the pin a HIGH signal, then we put a delay for some seconds, then we give it LOW signal to turn it back off.

The code

Upload the code:

In this step we press the upload button on the Arduino app, then we watch the circuit work.

The circuit working