Jdy40 Arduino Example Best Online

Because the JDY-40 is a , you must use a level shifter or a simple voltage divider when connecting it to a 5V Arduino (like the Uno). JDY-40 Pin Arduino Pin (5V Uno) VCC DO NOT connect to 5V. GND Common ground. RXD 7 (SoftSerial TX) Use voltage divider for safety. TXD 6 (SoftSerial RX) Direct connection is fine. SET GND / 3.3V GND for AT mode; 3.3V/Floating for Transmit mode. CS Ground this to "Wake" the module. Arduino Example Code (Transmitter & Receiver)

The JDY-40 module provides a beginner-friendly way to add wireless serial communication to Arduino projects. With auto-pairing and transparent UART interface, a functional link can be implemented in less than 10 lines of code. Its limitations (half-duplex, moderate range) are acceptable for many educational and hobbyist applications.

Because the JDY-40 operates on , connecting its RXD pin directly to a 5V Arduino (like the Uno or Nano) can damage the module or cause unstable behavior. Always use a logic level shifter or a simple resistor voltage divider on the Arduino's TX line. Hardware Connections: JDY-40 VCC →right arrow Arduino 3.3V JDY-40 GND →right arrow Arduino GND JDY-40 TXD →right arrow Arduino Pin 2 (Software RX) JDY-40 RXD →right arrow Through a voltage divider to Arduino Pin 3 (Software TX) Voltage divider tip: Connect Arduino Pin 3 to a 1k Ωcap omega

// Function to change the JDY-40's ID to the desired remote ID. void setRemoteID(int id) digitalWrite(2, LOW); // Enter AT mode delay(100); Serial.print("AT+RFID"); if (id < 10) Serial.print("00"); else if (id < 100) Serial.print("0"); Serial.println(id); // e.g., "AT+RFID001" delay(100); digitalWrite(2, HIGH); // Exit AT mode delay(50);

The JDY-40 is a versatile, low-cost 2.4GHz wireless transceiver module widely used in Arduino projects. It operates on the Bluetooth LE physical layer but uses a proprietary protocol, making it ideal for point-to-point or point-to-multipoint communication. This article provides a comprehensive, step-by-step guide to configuring and programming the JDY-40 with an Arduino, complete with the best code examples for reliable wireless data transmission. Understanding the JDY-40 Module jdy40 arduino example best

SoftwareSerial jdy(2, 3); // RX on pin 2, TX on pin 3

This sketch listens for incoming wireless packets, parses the bracketed data, and displays it on the Serial Monitor.

2.2V to 3.6V (Requires a 3.3V regulator; not 5V tolerant ) Transmit Power: 10dBm (max) Communication Distance: Up to 120 meters (line of sight) Interface: Serial UART (TTL level) Modes: Transparent transmission, IO control, and PWM output Pin Configuration Description VCC Power Supply Connect to 3.3V only. GND System ground connection. TXD Serial data transmit pin. Connects to Arduino RX. RXD Serial data receive pin. Connects to Arduino TX. SET Mode Configuration

(Serial.available()) jdy40.write(Serial.read()); Because the JDY-40 is a , you must

// Feature Flag: Set to true once we configure the module bool isConfigured = false;

It features ultra-low power sleep modes, making it ideal for battery-powered remote sensors.

: Place a 10µF electrolytic capacitor coupled with a 0.1µF ceramic capacitor directly across the VCC and GND pins of the JDY-40 to filter out high-frequency power supply noise.

Note: After configuring both modules with identical settings, remove the SET-to-GND connection, then power cycle the modules to return to communication mode. 5. Troubleshooting & Pro-Tips RXD 7 (SoftSerial TX) Use voltage divider for safety

It is incredibly inexpensive, often costing less than two dollars per module. Pinout and Technical Specifications

Two modules must have same channel and baud rate to communicate.

: