Development of RGB LED Library to create multiple colors using high frequency PWM pulses from Arduino
Mr. Vihang H Trivedi
, Ms. Purvi Katmore
Assistant Professor, Department of Electronics & Communication K.J. Institute of Engineering & Technology, Savli, India
Assistant Professor, Department of Electronics & Communication K.J. Institute of Engineering & Technology, Savli, India
Vol. 5, Issue 9 pp. 1-5 🌐 Open Access
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()
Keywords:
RGB LED, Analog pulses to LED, Multiple colors, Library,header file , .cpp files





