Posts

Showing posts with the label HC-04 SPP/BLE Module

Bluetooth serial communication between RP2040 using HC-04 Bluetooth Module, in BLE/SPP mode.

Image
Last post show a simple example of  Serial communication between two RP2040 (Arduino Framework) . With  HC-04 Dual Mode Bluetooth Module (SPP/BLE) , it's easy to implement bluetooth serial communication without change in code. For the Arduino code Serial_9600N81_SH1107.ino and SerialPassthrough_9600N81.ino, refer to last post . Setup Test Host (ttyACM0) Test Host (ttyACM1) | | +-----------+ +-------+ +-------+    +-----------+ |Slave      | |HC-04 | |HC-04 |    |Master | | TX|---|RX | Bluetooth |    RX|---|TX | | RX|---|TX |<~~~SPP/BLE~~~>|      TX|---|RX | | 3V3|---|VCC | |      VCC|---|3V3 | | GND|---|GND | |      GND|---|GND | |      | +-------+ +-------+    | | +-----------+      +-----------+ +-----------+ |SH1107 OLED| |     | ...

HC-04 Bluetooth Module (SPP/BLE) and HC-T Test Adapter (USB-to-TTL converter)

Image
HC-04 Bluetooth serial communication module is a new generation of dual-mode digital transmission module based on classic Bluetooth SPP (V2.1) and BLE. ~ Product page ~ HC-04 Specification (v2.4) HC-T Test Adapter (USB-to-TTL converter) can be used with HC series modules. ~ Product page First Test HC-04 Bluetooth SPP/BLE Module It's my first test on HC-04: - A Raspberry Pi is used as test host, via RP2040 dev. board as USB-to-Serial adapter, connect to HC-04. HC-04 act as slave in default. - Test with AT-command. - And communicate with Android device with HC's Android Bluetooth Serial Assistant App, in BLE mode and Classic Bluetooth SPP mode. For the USB-to-Serial adapter implemented with RP2040, refer to the post  Serial communication between two RP2040 (Arduino Framework) . Both Serial_9600N81_SH1107.ino (with SH1107 OLED) and SerialPassthrough_9600N81.ino (without display) can be used. Connect RP2040 board with H...