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);

Request Custom Quote
This item requires your attention
Currently not available or the item number is not correct
Requires configuration
Item ID
Explanation
Product needs requesting quote first
Some mandatory fields left empty
Contact Us
Availability Request
Warranty Reimbursement
No matching records found
Registration
Products
Show all results
Devices
To find your device, enter the full serial number and run the search
Sorry, there are no results found for your search.
Documents
To find documents, enter the complete serial number, lot number, material / product number or at least 3 characters of the material / product name.
Enter Material/Product Number
Enter Material/Product Name
Enter Serial Number
Enter Lot Number
Enter
Search...
Postal code must be in the format "A#Z ZZZZ"
Please note that the installation service can only be purchased together with the certificate and calibration services listed below. Kindly add these services to your cart as well.

Are you sure you want to cancel the Quote?

Do you want to delete this item?

  No

It may take up to 24 hours to have your change reflected in all sections of the Installed Devices. Be aware that the changed fields will be blocked from further editing, until the update is performed in the source system. Would you like to proceed?

 
Find documents by
Search Tips
General Product Documentation

Search by material/product number or name for: Manuals, Data Sheets, Application Notes and others.

Device-Specific Documentation

Search by device serial or lot number for: Declarations of Conformity, Production and Materials Certificates and others.