Interfacing 7 Color LED Flash module KY-034 in Raspberry Pi

Learn Interfacing 7 color LED Flash module KY-034 in Raspberry Pi. RGB LED 7 color flash module generates 7 different colors automatically in sequence. 7 color flash module has pink, yellow, and green high brightness lights. Flash module generates light of high brightness. For this, we will be using Raspberry Pi # and KY 034 7 color flash module. So, let’s start.

Step 1: Required Components

7 color flash module KY-034 x 1
Breadboard x 1
Raspberry Pi x 1
Jumper Wires

Step 2: Circuit Time

Make circuit as per below-given instructions. 7 color flash module has 3 pins, VCC, Ground and 3rd pin is not connected. There are two ways to power on 7 color flash module. You can connect VCC directly to +5v of Raspberry Pi or Connect VCC to any of the available GPIO pins. Connecting to GPIO pins gives freedom to use the module when required in the program. For this, connect VCC to GPIO pin 17.

Step 3: Code Time

This is code for interfacing 7 color LED Flash module KY-034 in Raspberry Pi. First import GPIO and Time Library. Set the GPIO 17 as an output pin. In while loop, GPIO is set to high, delay for a second, set the pin to low and delay for a second.

Step 4: Run code to Raspberry Pi

Run the Python program in your Raspberry Pi after setting components as per circuit diagram. Now you can see that 7 light of different colors is automatically flashing.

For running python code in Raspberry PI, visit: raspberrypi.org/documentation/usage/python/

For basic hardware information about Raspberry PI 3, Click here.

Leave a Reply