Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
๐ Ready to explore and create with us? Click [here] and join today!
RGB LED Module๏
The RGB Full Color LED module emits a range of colors by mixing red, green, and blue light. Each color is adjusted by using PWM.It can be used to create colorful lighting effects or to learn how to use PWM (pulse-width modulation) with Arduino.
Pinout๏
GND: Common ground for power.
B: Controls the brightness of the red LED. By adjusting the current flowing through this pin, the intensity of the red light can be varied.
R: Controls the brightness of the green LED. Similarly to the red pin, adjusting the current flow through this pin changes the intensity of the green light.
G: Controls the brightness of the blue LED. By adjusting the current flowing through this pin, the intensity of the blue light can be altered.
Principle๏
The RGB MODULE works by using a full-color LED that uses R, G, and B pins with adjustable PWM voltage input. Colors from the LED can be combined. For example, mix blue light and green light give cyan light, red light and green light give yellow light. This is called โThe additive method of color mixingโ.
Based on this method, we can use the three primary colors to mix the visible light of any color according to different proportions. For example, orange can be produced by more red and less green. The strength of the primary colors (red, blue, green) is adjusted in order to achieve full color mixing effect.PWM is a technique where the duty cycle of a digital signal is modified, adjusting the percentage of time that the signal remains active within a given period. By changing the duty cycle, we can make the LED appear brighter or dimmer.
Schematic diagram๏
Example๏
Lesson 28: RGB LED Module (Arduino UNO)
Lesson 28: RGB LED Module (ESP32)
Lesson 28: RGB LED Module (Raspberry Pi Pico)
Lesson 28: RGB Module (Raspberry Pi)
Lesson 30: Relay Module (ESP32)
Lesson 30: Relay Module (Raspberry Pi Pico)
Lesson 30: Relay Module (Raspberry Pi)
Lesson 38: Gas leak alarm (Arduino UNO)
Lesson 40: Motion triggered relay (Arduino UNO)
Lesson 36: Gas leak alarm (ESP32)
Lesson 48: Temperature and Humidity Monitoring with Adafruit IO (ESP32)
Lesson 50: Android Application - RGB LED Operation via Arduino and Bluetooth (ESP32)