Jdy40 Arduino Example Best May 2026
The JDY-40 is a 2.4GHz wireless serial module often used as a "wireless serial cable" for Arduinos. It operates at 3.3V and supports a range of up to 120–150 meters. 1. Circuit Connections
3.2 Module Configuration (AT Commands)
To enter AT mode, pull the SET pin low (to GND) before powering the module. Send commands via Serial (9600 baud, newline ending). jdy40 arduino example best
Verdict: Choose JDY-40 for simplicity and low cost when range under 100m suffices. The JDY-40 is a 2
// Initialize SoftwareSerial for JDY-40 // Default baud rate for JDY-40 is usually 9600 jdySerial.begin(9600);bool sendCommand(String cmd)
jdy40.println(cmd);
unsigned long timeout = millis() + 500;
while (millis() < timeout)
if (jdy40.find("ACK")) return true;
4.2 Receiver Code
#include <SoftwareSerial.h>
// 2. Read data from Serial Monitor (USB) and send to JDY-40 (Wireless)
if (Serial.available())
char c = Serial.read();
jdySerial.write(c);
void setup()
Serial.begin(9600);
dht.begin();
void loop()
if (jdy
void loop()
if (jdy.available())
String msg = jdy.readString();
Serial.print("Received: ");
Serial.println(msg);