Arduino with Bluetooth to Control an LED!

Tutorial to control an LED with an app using an HC 05 bluetooth module.

May 2, 2020

92614 views

11 respects

Components and supplies

1

HC-05 Bluetooth Module

8

Male/Male Jumper Wires

1

5 mm LED: Red

1

Arduino UNO

1

Resistor 1k ohm

Apps and platforms

1

Arduino IDE

1

MIT App Inventor

Project description

Code

The code for HC-05 and Arduino Interfacing

c_cpp

This is the code you have to type into the Arduino IDE. The comments are not necessary, but I have commented heavily for better understanding, especially for people just starting out Arduino.

Downloadable files

This is the voltage divider circuit between Arduino and HC-05.

This is the voltage divider circuit between Arduino and HC-05.

HC-05 to Arduino Connections

This is the way a circuit is meant to be formed between an HC-05 and an arduino.

HC-05 to Arduino Connections

This is the voltage divider circuit between Arduino and HC-05.

This is the voltage divider circuit between Arduino and HC-05.

HC-05 to Arduino Connections

This is the way a circuit is meant to be formed between an HC-05 and an arduino.

HC-05 to Arduino Connections

Comments

Only logged in users can leave comments

akinade

10 months ago

After running this on breadboard, can it be done in real-time for a house that uses solar inverter?

Anonymous user

2 years ago

This is a brilliant project. However, I try to use HM-10 bluetooth device to do this project. However, I cannot pair HM-10 with my phone. The MIT app also fails to find the HM-10 unit inside the app. Any idea how to solve the problem? Thanks in advance.

am4340889

2 years ago

https://www.elnogom.com/%d9%86%d8%b8%d8%a7%d9%81%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/spray-pesticides-in-jeddah/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%85%d9%83%d8%a7%d9%81%d8%ad%d8%a9-%d8%a7%d9%84%d8%ad%d8%b4%d8%b1%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/%d9%86%d8%b8%d8%a7%d9%81%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%a8%d8%a7%d9%84%d8%a8%d8%ae%d8%a7%d8%b1-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/%d8%aa%d9%86%d8%b3%d9%8a%d9%82-%d8%aa%d8%b2%d9%8a%d9%86-%d8%a7%d9%84%d8%a7%d8%b4%d8%ac%d8%a7%d8%b1-%d8%a7%d9%84%d8%ad%d8%af%d8%a7%d8%a6%d9%82-%d8%a8%d8%ac%d8%af%d8%a9/ https://www.elnogom.com/%d9%86%d8%b8%d8%a7%d9%81%d8%a9-%d8%a7%d9%84%d9%83%d9%86%d8%a8-%d8%a8%d8%ac%d8%af%d8%a9/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%86%d9%82%d9%84-%d8%b9%d9%81%d8%b4-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%86%d9%82%d9%84-%d8%b9%d9%81%d8%b4-%d9%85%d9%86-%d8%ac%d8%af%d8%a9-%d8%a7%d9%84%d9%89-%d8%a7%d9%84%d8%a7%d8%b1%d8%af%d9%86/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%86%d9%82%d9%84-%d8%b9%d9%81%d8%b4-%d9%85%d9%86-%d8%ac%d8%af%d8%a9-%d8%a7%d9%84%d9%89-%d8%a7%d9%84%d8%a7%d9%85%d8%a7%d8%b1%d8%a7%d8%aa/

Anonymous user

2 years ago

Brilliant project!

Anonymous user

2 years ago

Amazing project!

Anonymous user

2 years ago

Congratulations. Cute project with detailed instruction. The instruction is so nicely presented, and it also points out the common trap (char and int hints). Hope to see your Bluetooth controlled robot project soon and wish you very all the best.

Anonymous user

4 years ago

This is a brilliant project. However, I try to use HM-10 bluetooth device to do this project. However, I cannot pair HM-10 with my phone. The MIT app also fails to find the HM-10 unit inside the app. Any idea how to solve the problem? Thanks in advance.

am4340889

4 years ago

https://www.elnogom.com/%d9%86%d8%b8%d8%a7%d9%81%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/spray-pesticides-in-jeddah/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%85%d9%83%d8%a7%d9%81%d8%ad%d8%a9-%d8%a7%d9%84%d8%ad%d8%b4%d8%b1%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/%d9%86%d8%b8%d8%a7%d9%81%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%a8%d8%a7%d9%84%d8%a8%d8%ae%d8%a7%d8%b1-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/%d8%aa%d9%86%d8%b3%d9%8a%d9%82-%d8%aa%d8%b2%d9%8a%d9%86-%d8%a7%d9%84%d8%a7%d8%b4%d8%ac%d8%a7%d8%b1-%d8%a7%d9%84%d8%ad%d8%af%d8%a7%d8%a6%d9%82-%d8%a8%d8%ac%d8%af%d8%a9/ https://www.elnogom.com/%d9%86%d8%b8%d8%a7%d9%81%d8%a9-%d8%a7%d9%84%d9%83%d9%86%d8%a8-%d8%a8%d8%ac%d8%af%d8%a9/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%86%d9%82%d9%84-%d8%b9%d9%81%d8%b4-%d8%a8%d8%a7%d9%84%d8%b7%d8%a7%d8%a6%d9%81/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%86%d9%82%d9%84-%d8%b9%d9%81%d8%b4-%d9%85%d9%86-%d8%ac%d8%af%d8%a9-%d8%a7%d9%84%d9%89-%d8%a7%d9%84%d8%a7%d8%b1%d8%af%d9%86/ https://www.elnogom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d9%86%d9%82%d9%84-%d8%b9%d9%81%d8%b4-%d9%85%d9%86-%d8%ac%d8%af%d8%a9-%d8%a7%d9%84%d9%89-%d8%a7%d9%84%d8%a7%d9%85%d8%a7%d8%b1%d8%a7%d8%aa/

Anonymous user

4 years ago

Brilliant project!

Anonymous user

4 years ago

Congratulations. Cute project with detailed instruction. The instruction is so nicely presented, and it also points out the common trap (char and int hints). Hope to see your Bluetooth controlled robot project soon and wish you very all the best.

Anonymous user

4 years ago

Amazing project!

Anonymous user

4 years ago

Amazing tutorial on how to use bluetooth with arduino. I can now make a wider range of projects! Thank you!