Double Colour LED Working Principle

The two terminals or pins on a double-color LED are linked back to back: Anode to Cathode. When a positive voltage is applied directly to a terminal, such as the green anode, it emits light, and the same is true for the Red anode.

Because of the two terminal design, only one LED may get positive voltage at a time, resulting in a limited range of colors.

Let's get started setting up this type of LED on the Arduino Uno now that we've learned how it works.

What you need

  • Arduino Board 
  • Breadboard 
  • 2 Color LED module
  • Jumper wires 

Connect it as shown above. 

Find the Arduino code here:

https://microdaz.com/two-color-led-module-ky-011/