RGB Breath

Control the RGB light on the Robduino expansion board to display the breathing effect of 7 common colors.

Device connection

Hardware connection

Use Type-B data cable to connect Arduino Uno and computer.

Software connection

Open the "Arduino IDE" software and select the model and serial port number corresponding to the development board.

RGB breathing effect

Control principle

RGB lights are composed of red, green and blue LED lights:

Through the combination and brightness control of different color LEDs, the effect of RGB lights displaying various colors can be achieved;

On this basis, we control the brightness of different color LEDs to achieve the effect of breathing lights.

Control pins

Peripheral moduleArduino Uno
RGB6

Code analysis

Here is only a brief introduction to the code content. For detailed code, it is recommended to refer to the corresponding code file, which is provided in the download area!

Experimental results

After compiling the program successfully, upload the code to the Arduino Uno development board.

After the program is started, the RGB light will display 7 common colors of breathing effects in turn!