/ESP32-HC06-micropython

ESP32 and Bluetooth module HC-06 in MicroPython

Primary LanguagePython

ESP32 can communicate with other device via Bluetooth using the module HC-06 as slave. This code is written in micropython using the EsPy development environment. (https://github.com/jungervin/EsPy)

Schematics

esp32_HC06_bb

HC-06 configuration

You can configuring the module HC-06 by runnig the file BT_setup.py In this progran you can verify that the hardware is working.In this program you can modify parameters such as name, PIN code and communication speed in baudrate. bt1

Pairing Bluetooth module HC-06

To pair the module HC-06 to the device run the file BT_hc06.py

Connecting 2 ESP32 via serial communication (RS-232)

You can communicate between 2 controllers using the code example: BT_hc06_READ_DATA.py and BT_hc06_SEND_DATA.py esp32_UART_bb