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

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|
	|	    |
	+-----------+
	
	WeAct RP2040 running				    Raspberry Pi Pico running
	Serial_9600N81_SH1107.ino			    SerialPassthrough_9600N81.ino
	


Comments

Popular posts from this blog

MicroPython/ESP32-C3 + 1.8" 128x160 TFT ST7735 SPI, using boochow/MicroPython-ST7735 library.

CameraWebServe: ESP32-S3 (arduino-esp32) + OV5640 camera module