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

480x320 TFT/ILI9488 SPI wih EP32C3 (arduino-esp32) using Arduino_GFX Library

my dev.tools - FNIRSI 2C23T 3-in-1 Dual Channel Oscilloscope/Multimeter/Signal Generator