Bluetooth LED With Blynk

by Aced Inventor in Circuits > Arduino

3416 Views, 3 Favorites, 0 Comments

Bluetooth LED With Blynk

Bluetooth LED with Blynk

In this project, I will show you how to turn On and Off an LED connected to an Arduino board using Bluetooth. In a previous project, I accomplished this by making an app on MIT app inventor which was a complicated process. I have come up with a simpler solution. I use an HC-05 Bluetooth module to connect the Arduino to the app. The app is made on Blynk. Once the HC-05 has connected to the app, you can then turn on and off the LED via Bluetooth. You can also control the brightest of the LED using the app.

This project can still be improved.

Supplies

Components.png

The components needed to make the project are:

LED Wiring

LED Wiring.png

Connect the LEDs as the following:

Arduino > RED LED

GND > GND

D4 > VCC


Arduino > BLUE LED

GND > GND

D5 > VCC

Bluetooth Wiring

Bluetooth Wiring.png

Connect the HC-05 as the following:

Arduino > HC-05

5V > VCC

GND > GND

RX > TX

TX > RX

Downloading Blynk

Blynk-Logo.jpg

I have made the app for this project on Blynk. Blynk is a platform that lets you easily create interfaces for managing and monitoring your hardware projects from your iOS or Android device.

Building the App

App Inside.jpg

For the complete directions on how to make the app, you can watch my video.

Name >> Connection >> Value >> Reading Rate

Bluetooth

Button >> D4 >> 0 - 1 >> Switch

Vertical Slider >> D5 >> 0 - 255 >> Slide on Release; Off

Programming

image_2021-12-20_142658.png

Open the program on Arduino IDE. Once it is open, compile the sketch to see if it is clear of error and upload it. Make sure you have all the libraries download before you upload the program. After uploading the program, open the Blynk application. On the Blynk application. You can now control the red and blue led through the app.

For more information about this, please visit my Patreon:
https://www.patreon.com/acedinventor

Testing the Project

Testing the Project (2).png

To test if the project is working properly, plug the Arduino into a power source. The onboard LED should turn on. After that, open the Blynk application and run your project. Click on the Bluetooth icon and then connect it to your Bluetooth Module. Once the Bluetooth has connected, the built-in LED on the HC-05 should blink slowly. Now on the app, if you press the button, the red LED should turn on. And as you slide the slider up, the blue LED should get brighter.

If there is still something you don't understand, you can comment down below.