Connect the short leg of the LED (the negative leg, called the cathode) to the GND. Understanding the bluetooth modules HC-05 and HC-06Ĭonnect the long leg of the LED (the positive leg, called the anode) to the other end of the resistor. You can open the serial monitor and watch the received data while connecting. The LED turns OFF when the received data is 0. If the received data is 1, the LED turns ON. The code uploaded to the Arduino checks the received data and compares it. The Arduino Bluetooth module at other end receives the data and sends it to the Arduino through the TX pin of the Bluetooth module(connected to RX pin of Arduino). The Android app is designed to send serial data to the Arduino Bluetooth module when a button is pressed on the app. An Android smartphone, a Bluetooth transceiver, and an Arduino. There are three main parts to this project.
We will learn how to control LEDs with bluetooth modules HC-05 and HC-06. We have used Samsung Galaxy GT-I9000 smartphone. LED (different colors, for example red, green, blue, white,yellow) 5 pcĥ. Resistor 4 pcs (1pc 1 KOhm, 1 pc 2KOhm, 5 pcs 220-470 Ohm)Ĥ.
In this project, you needed these parts :ġ.Aruduino Uno R3 (you can also use the other version of Arduino)Ģ.Arduino IDE ( you can download it from here )Ħ. Tags: Bluetooth module, HC-05, HC-06, LED, ZS-40, FC-114, AT commands, LED control with smartphone, Android app, SoftwareSerial library, Software SerialĪttachments: sketchwithoutlibraryHC0506 and sketchsowtwareseriallibraryHC0506 Project name: Bluetooth controlled LEDs with SoftwareSerial library and without library - Bluetooth modules HC-05 and HC-06 ZS-40/FC-114