Hy everyone I'm your Manitesla.In this post, you will learn how to work with RGB leds. This Post and my video show you how to connect a Common Cathode RGB LED to an Arduino Uno. Below I have given code for your reference, you try not to just copy and paste it. In order to really learn, you need to type it in for yourself, and then find and debug your mistakes.
Using an RGB led we can generate any color by controlling the brightness of the individual Red, Green, and Blue LEDs. The following image shows a few possible colors of light that can be generated using an RGB LED. An important point is that you should make sure that you connect the Red, Green and Blue Anodes of the RGB LED to three PWM supported pins of Arduino since we are using a common cathode RGB led
Circuit diagram:
Code:
Comments
Please log in or sign up to comment.