To use the JDY-40 with an Arduino, you must ensure you are using or a level shifter, as the module is not 5V tolerant.
The is a compact 2.4GHz wireless transceiver that functions like a wireless serial cable . It is widely used for Arduino projects due to its simplicity, low power consumption (5uA in sleep), and a range of up to 120 meters in open areas. 1. Essential Wiring
void setup() Serial.begin(9600); // For Serial Monitor output Serial1.begin(9600); // For communication with JDY-40
AT+DVID (Default is 2453 ). Both modules must match. jdy40 arduino example best
Keep the onboard PCB trace antenna clear of wires, metal chassis, and high-power components to ensure maximum range.
// Use SoftwareSerial if hardware serial is occupied, or use Serial directly. SoftwareSerial jdy(10, 11); // RX, TX
The JDY-40 operates on the 2.4GHz band with a range of up to 120 metres in open space. It communicates via standard asynchronous serial (UART), making it fully compatible with any Arduino board. Pin Configuration To use the JDY-40 with an Arduino, you
#include <SoftwareSerial.h>
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
If you tell me the of your project (e.g., controlling a robot, sending sensor data, wireless remote) and what Arduino model you are using, I can provide a more tailored code example. Keep the onboard PCB trace antenna clear of
| Command | Description | Example Response | |---------|-------------|------------------| | AT | Test communication | OK | | AT+VER | Get firmware version | +JDY-40-V2.2 | | AT+BAUD | Get current baud rate | +BAUD=9600 | | AT+BAUDx | Set baud rate (x = 1–8) | AT+BAUD4 → 9600 baud | | AT+RFID | Get current RF channel and ID | +RFID=CH001,ID001 | | AT+RFCHxxx | Set channel (xxx = 001–128) | AT+RFCH005 → channel 5 | | AT+RFIDxxx | Set node ID (xxx = 001–999) | AT+RFID123 → ID 123 | | AT+POWE | Get current TX power | +POWE=3 (max) |
Quick recommendation