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. The flash module generates light of high brightness. For this, we will be using the Raspberry Pi 3 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 x 1

Step 2: Circuit Time

Make the circuit as per the 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 the 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 the 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 a 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 the circuit diagram. Now you can see that 7 light of different colors is automatically flashing.

For running python code in Raspberry Pi, visit:
Learn basic hardware information of Raspberry Pi 3.

Leave a Reply