Light Tutorial for LED Light Strip RGB 5050

In this section we’ll walk through creating a LED Light Strip using ESP32, ESP8266 and then control it via Amazon Alexa, Google Home or SmartThings.

Prerequisites :

  1. ESP32, ESP8266 x 1.
  2. IRF540N MOSFET, STP16nF06L MOSFET, S8050 NPN transistor or BC337 NPN transistor x 3
  3. 1k resistor x 3
  4. Jumper Wires.

In this tutorial we are going to use BC337 NPN transistors.

Sinric Pro light strip 5050 wiring

Quick introduction to 5050 LED strips

5050 LED strips are a type of LED strip that is made up of individual LEDs that are grouped together in sets of three. Each set of three LEDs is known as a pixel. The pixels are arranged in a long, thin strip, and they can be cut to length to fit your needs. 5050 LED strips are available in a variety of colors, including red, green, blue, white, and yellow. They can also be purchased in different brightness levels. 5050 LED strips are affordable LED strips that look similar to more expensive Neopixel strips. However, the LEDs in 5050 LED strips cannot be controlled individually. This means that you can only use one color for the entire strip at a time.

Here is a table that summarizes the key differences between 5050 LED strips and Neopixel strips:

Feature 5050 LED strips Neopixel strips
Price Affordable More expensive
Individually addressable LEDs No Yes
Animations Limited to common animations such as color changing and dimming Complex animations with individual LEDs are possible

Wiring

Sinric Pro light strip 5050 wiring Sinric Pro light strip 5050 wiring

Strip ESP32 PIN
5V 5V
R 14
G 12
B 27

Let’s verify LED Strip is wired correctly and working.

LED Strip will change the colors like this:

Step 1 : Create a new device in Sinric Pro

Sinric Pro create device alexa

Sinric Pro copy device id

Step 2 : Connect to Sinric Pro

Step 2.1 Install Sinric Pro Library

Sinric Pro install SinricPro library

2.2 Complete Code

Now you should be able to control via Alexa, GoogleHome and SmartThings as well.

Troubleshooting

  1. Use a power supply that can provide enough current for the LED strip. LED strips can consume a lot of current, so it is important to use a power supply that can provide enough current to meet the needs of the strip.

  2. Please refer to our Troubleshooting page for more details.

This document is open source. See a typo? Please create an issue