Controlling RGB LED using Arduino and Wi-Fi




In last tutorial, we explained controlling a Robot using Wi-Fi and Arduino, and in this article we are with our next IOT Based Project- RGB LED Flasher using Wi-Fi. Here we have used Arduino and ESP8266 Wi-Fi Module to control the colors of RGB LED, through a Android Phone, over the Wi-Fi.

Arduino-RGB-LED-Controller




In this RGB Flasher LED, we have used an Android Mobile App named “Blynk”. Blynk is a very compatible app with Arduino, to make IoT based project. This App can be downloaded from the Google Play Store, and can be easily configured.

Step for configuring Blynk App:

1. First download it from Google Play Store and install it in Android mobile phone.




2. After this, it is required to create an account. You may use your current Gmail account.

3. Now select Arduino Board and give a name for your project.

wifi-RGB-led-flasher-blynk-app

4. Note down the Auth Token Code or simply mail it to your Email Account and then copy and paste in Arduino sketch (Program Code).

5. Enter this Auth Token Code in Arduino sketch.

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "a20b235cfa794f07981d050950fb4429";

6. Then click on create button in Blynk app.

7. Now Select the Large Slider and two buttons, configure them (see the Video at the end) and hit the back button.

8. After it press Play button at the right top of screen.

All this process, of using the Blynk App, has been clearly explained in Video, given in the end.

Required Components:

  • Arduino UNO
  • ESP8266 Wi-Fi  Module
  • USB Cable
  • Connecting wires
  • RGB LED
  • Android Mobile phone
  • Blynk App

Circuit and Working Explanation:

Circuit Diagram of RGB LED Flasher is given below. We mainly need a Arduino, ESP8266 Wi-Fi module and RGB LED. ESP8266’s Vcc and GND pins are directly connected to 3.3V and GND of Arduino and CH_PD is also connected with 3.3V. Tx and Rx pins of ESP8266 are directly connected to pin 2 and 3 of Arduino. Software Serial Library is used to allow serial communication on pin 2 and 3 of Arduino. We have already covered the Interfacing of ESP8266 Wi-Fi module to Arduino in detail.

 Here we have used a Common Anode RGB LED. This RGB LED pins namely R, G, B and anode are connected at 11, 10, 9 and +5 volt Vcc. Common Anode pin has a 1K resistor with +5 volt for protecting the LED to be damaged.

8. After it press Play button at the right top of screen.

All this process, of using the Blynk App, has been clearly explained in Video, given in the end.

Required Components:

  • Arduino UNO
  • ESP8266 Wi-Fi  Module
  • USB Cable
  • Connecting wires
  • RGB LED
  • Android Mobile phone
  • Blynk App

Circuit and Working Explanation:

Circuit Diagram of RGB LED Flasher is given below. We mainly need a Arduino, ESP8266 Wi-Fi module and RGB LED. ESP8266’s Vcc and GND pins are directly connected to 3.3V and GND of Arduino and CH_PD is also connected with 3.3V. Tx and Rx pins of ESP8266 are directly connected to pin 2 and 3 of Arduino. Software Serial Library is used to allow serial communication on pin 2 and 3 of Arduino. We have already covered the Interfacing of ESP8266 Wi-Fi module to Arduino in detail.

 Here we have used a Common Anode RGB LED. This RGB LED pins namely R, G, B and anode are connected at 11, 10, 9 and +5 volt Vcc. Common Anode pin has a 1K resistor with +5 volt for protecting the LED to be damaged.

Read More:   Controlling RGB LED using Arduino and Wi-Fi




Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
Synchronous Monolithic Step-Down Regulator
LT8616 – Dual 42V Synchronous Monolithic Step-Down Regulator with 6.5μA Quiescent Current

Features Wide Input Voltage Range: 3.4V to 42V 2.5A and 1.5A Buck Regulators with Separate Inputs Fast Minimum Switch On-Time:...

Close
Scroll to top