Upload the following setup helper sketch to your Arduino to test AT commands.
The JDY-40 is a highly efficient, low-cost 2.4GHz wireless transceiver module. It operates on the same frequency band as Wi-Fi and Bluetooth but utilizes a proprietary protocol optimized for low-power, short-range data transmission. This makes it an exceptional alternative to bulkier or more expensive wireless solutions like the NRF24L01 or HC-05 Bluetooth modules, especially for budget-friendly DIY robotics, remote controls, and smart home sensor networks.
. 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
: Support for transparent transmission, IO switching, and remote control. Best Getting Started Example: Two-Way Serial Chat
This guide provides the best, most reliable examples for setting up and using the JDY-40 with Arduino, covering both basic transparent transmission and configuration via AT commands. 1. Understanding the JDY-40 Module Upload the following setup helper sketch to your
Checks device mode. For standard serial passthrough, ensure it returns +OK A0 . Send AT+BPS9600 →right arrow Sets communication speed to 9600 baud. Send AT+RFID12345678 →right arrow
Before diving into the code, it helps to understand why the JDY-40 is becoming a favorite among micro-electronics hobbyists: This makes it an exceptional alternative to bulkier
SoftwareSerial jdySerial(JDY_RX_PIN, JDY_TX_PIN); // RX, TX
To pair two modules flawlessly, program them with the same RFID (Wireless Network ID) and DVID (Device ID): : Send AT -> Should return +OK .