+21622886281
Arduino RGB LED

Vary the light intensity of an RGB LED module with Arduino

Purpose of this tutorial:

In this tutorial we will automatically vary the light intensity of an RGB LED module with the Arduino.

Necessary Components 

  • Arduino UNO
  • RGB LED module
  • connecting wires

Mounting

Connect:

  • the digital PIN 0 of Arduino to the pin (R) for the red color of the RGB LED module
  • the digital PIN 1 of Arduino to the pin (G) for the green color of the RGB LED module
  • the digital PIN 2 of the Arduino to the pin (B) for the blue color of the RGB LED module
  • the GND pin of the Arduino to the pin (GND) of the RGB LED module

Program

Here is the program that automatically varies the light intensity of an RGB LED with the Arduino.




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top