Development of RGB LED Library to create multiple colors using high frequency PWM pulses from Arduino

Authors

  • Mr. Vihang H Trivedi Assistant Professor, Department of Electronics & Communication K.J. Institute of Engineering & Technology, Savli
  • Ms. Purvi Katmore Assistant Professor, Department of Electronics & Communication K.J. Institute of Engineering & Technology, Savli

Keywords:

RGB LED, Analog pulses to LED, Multiple colors, Library,header file , .cpp files

Abstract

This paper is about how to develop library for RGBLED with possible 224 combination of Red, Green and
blue. RGB LED has two options either common anode or common cathode. When interfacing RGB LED with ARDUINO
one can directly write a code without using library but if library is developed then more than one RGB LEDs can be
interfaced with ARDUINO. All we need is to declare the RGB LEDs as objects. Here we are using PWM pulses at
frequency 5000Hz. So Using PWM we can control intensity of Red, Blue and Green that is how we are able to create 224
combinations 8-bit for each color. The library contains 3 main functions Setcolor(), on() and off()

Published

2018-09-25

How to Cite

Mr. Vihang H Trivedi, & Ms. Purvi Katmore. (2018). Development of RGB LED Library to create multiple colors using high frequency PWM pulses from Arduino. International Journal of Advance Research in Engineering, Science & Technology, 5(9), 1–5. Retrieved from https://ijarest.org/index.php/ijarest/article/view/1852