Jdy40 Arduino Example Best ❲2026❳

void setup() Serial.begin(9600); // Must match JDY-40 default baud delay(100); // Give module time to boot

Wireless data transmission is fundamental in IoT and embedded systems. While modules like HC-12 (433 MHz) and nRF24L01 (2.4 GHz) are popular, they require significant configuration. The JDY-40 offers a simpler alternative: it appears as a wireless serial cable. Any data sent to its TX/RX pins is transmitted to a paired receiver. This paper documents the minimum working example and characterizes its performance.

SoftwareSerial jdy(2, 3); // RX on pin 2, TX on pin 3 jdy40 arduino example best

Unlike classic Bluetooth modules such as HC‑05, the JDY‑40 does not require pairing or Bluetooth stacks. It works in two main modes: (UART) and remote I/O control (you can directly toggle pins on a remote module via serial commands).

Even a simple module like the JDY‑40 can sometimes misbehave. Here are the most common issues and their solutions: void setup() Serial

This is the easiest way to use the JDY-40. It replaces a physical serial cable, allowing two Arduinos to communicate wirelessly. Use this when you need to send simple data like sensor readings or control signals between two devices.

If you are controlling a garage door, sending temperature readings across a farm, or building a wearable remote, the JDY-40 is often the best solution. Any data sent to its TX/RX pins is

The remote module must be set to (usually via the AT+IO command). After that, the transmitter can send +IO1=1 to turn on pin 1, +IO1=0 to turn it off, etc. The receiver decodes these commands automatically and drives its pins accordingly. This feature eliminates the need for a second Arduino, reducing cost and complexity in simple control applications.

void loop()

JDY-040/JDY-041 module. JDY-040 module Serial Wireless transceiver info. PLEASE NOTE: this module is 3v3 limited - don't apply 5v. Simple Wireless Serial Communication - - Notes To Self