Jdy40 Arduino Example Best [updated] «Certified»
Send these commands to both modules (Master and Slave):
. Because it uses 2.4GHz RF technology (similar to an NRF24L01 but with a simplified serial interface), it broadcasts to all other JDY-40 modules on its channel automatically. The "best" example of its power is a Hub-and-Spoke sensor network jdy40 arduino example best
Most basic examples only show how to send "Hello World," but in real-world applications, users struggle with the default baud rate (often 9600) not matching their project (e.g., 115200), and they have no way of knowing if the connection is stable. Send these commands to both modules (Master and Slave):
. They should "just work" out of the box. If they don't, you must use AT commands to match their (Device ID) and (Network ID). Logic Levels : If you are using an Arduino Uno or Mega (5V), use a 1kΩ/2kΩ resistor voltage divider Logic Levels : If you are using an
: Program your Arduino nodes to ignore any message that does not match their specific ID. Hardware Setup :
Because the JDY-40 is a , you must use a level shifter or a simple voltage divider when connecting it to a 5V Arduino (like the Uno). JDY-40 Pin Arduino Pin (5V Uno) VCC DO NOT connect to 5V. GND Common ground. RXD 7 (SoftSerial TX) Use voltage divider for safety. TXD 6 (SoftSerial RX) Direct connection is fine. SET GND / 3.3V GND for AT mode; 3.3V/Floating for Transmit mode. CS Ground this to "Wake" the module. Arduino Example Code (Transmitter & Receiver)
AT+RFCH5 AT+ADDR1234 AT+DEFAULT (if something breaks)

















