Interfacing 2-color led module with evive

About This Tutorial
In this tutorial we will interface 2-color led module with evive and we will produces different color combination’s using this led
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
USB A-B Cable1
Male to Female Jumper Cable 10cm1
  • None


The KY-011  2-color led is a handy littel component that allows two colors ( Red and Green) in a single LED while only having 3 pins 

  • Comman cathode pin 
  • Anode for green led 
  • Anode for  red  led

The KY-011 2-color led  emits red and green colors but by applying different voltages on anodes of led we can produce different colors ,we will use PWM pin’s of our evive board to generate different voltages ,click here for more information on PWM


Circuit diagram


  • Connect comman cathode pin of KY-011 module to ‘GND’  pin of evive
  • Connect anode of green LED to pin number 10 of evive
  • Connect anode of red LED to pin number 11 of evive

Arduino code

We have used two different ‘for’ loops in this code  , first for loop will increase the intensity of  “Red” led and second ‘for’ loop will increase the intensity of “Green” led 

Expected result

Share this Tutorial
Share on facebook
Share on twitter
Share on google
Share on pinterest
Share on reddit
Share on print
Related Projects & Tutorials
ldr circuit
How to interface LDR sensor with evive ?
The tutorial will shows how to interface ldr sensor with evive and controlling the led state using the sensor.How does ldr sensor works? How to control lights using ldr sensor? All the answers are given in this tutorial.Let's begin...
All articles loaded
No more articles to load
Featured Projects
DIY Color-Sorter
DIY Color Sorter

This project will show you how to make a DIY color sorter using IR sensors and a servo motor.

All articles loaded
No more articles to load

Leave a Reply

Close Menu