Description
What it is
The HC-08 module is a Bluetooth BLE 4.0 device that allows serial master-slave connectivity between electronic devices such as Arduino and mobile devices like Android or iOS smartphones and tablets.
Features
- Bluetooth BLE 4.0 Module
- 4-pin DIP connector
- Compatible with Arduino and other microcontrollers
- Serial master-slave connection
What it is for
Ideal for projects requiring communication between an Arduino device and a phone or tablet. Can be used by beginners and intermediates to remotely control devices, for example turning LEDs on and off.
Tutorial: How to use HC-08
The HC-08 module allows you to connect your Arduino project to Bluetooth devices, facilitating remote control and communication. Useful for beginners and intermediates.
What you need
- Arduino or compatible
- Power supply cable
- FTDI cable
- Bluetooth device (smartphone, tablet)
Steps
- 1. Connect the HC-08 module to your Arduino using the RX/TX and GND/VCC pins.
- 2. Check the datasheet for power supply specifications.
- 3. Set the baud rate to 9600 in your Arduino code.
- 4. Load the example code to send Bluetooth messages.
- 5. Configure your smartphone to connect to the HC-08 module.
- 6. Check the connection through the serial monitor.
- 7. Try sending messages from your smartphone to the Arduino.
- 8. Verify the stability of the connection.
Example code
```
#include <SoftwareSerial.h>
SoftwareSerial bluetooth(2, 3); // RX, TX
void setup() {
bluetooth.begin(9600);
}
void loop() {
if (bluetooth.available()) {
Serial.write(bluetooth.read());
}
}
```
Mini project
Create a small remote control device to control an Arduino LED using your smartphone to turn the LED on/off.
Common mistakes
- Incorrect power supply: check the datasheet.
- Incorrect baud rate setting: set it to 9600.
- Incorrect connections: check the RX/TX pins.
- Failed Bluetooth connection: verify your device configuration.
Recommended accessories
- Arduino Uno
- FTDI cable
- LED
- 220Ω resistor
Frequently asked questions
How to set up Bluetooth connection?
Configure your Bluetooth device to connect to the MAC code of the HC-08.
Can I use a different power supply than the one indicated in the datasheet?
Check the power specifications in the datasheet and use a compatible power source.
Does the module work with Arduino Nano?
Yes, the module is compatible with Arduino Nano and other compatible microcontrollers.







Reviews
There are no reviews yet.