Jdy40 Arduino Example Best ((install)) [HOT ◎]
The JDY-40 is a highly efficient, low-cost 2.4GHz wireless transceiver module. It operates on the same frequency band as Wi-Fi and Bluetooth but utilizes a proprietary protocol optimized for low-power, short-range data transmission. This makes it an exceptional alternative to bulkier or more expensive wireless solutions like the NRF24L01 or HC-05 Bluetooth modules, especially for budget-friendly DIY robotics, remote controls, and smart home sensor networks.
If you have multiple sets of JDY-40s nearby, change the channel and address:
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.
Arduino Uno/Nano 5V Voltage Divider JDY-40 Module ------------------- --------------- ------------- 3.3V ---------------------------------------------------> VCC GND ---------------------------------------------------> GND Pin 2 (Software RX) <------------------------------------ TXD Pin 3 (Software TX) ---> [ 1kΩ Resistor ] ---> Pin RXD | [ 2kΩ Resistor ] | GND Pin 4 (GPIO Setup) ------------------------------------> SET Pin 5 (GPIO Sleep) ------------------------------------> CS Master Configuration: AT Commands via Arduino jdy40 arduino example best
This example is perfect for building a remote weather station, a wireless battery monitor, or any project where you need to collect data from a distant sensor.
Pull LOW to enter AT command mode; leave HIGH/Floating for communication. 2. Arduino Code Flash this same code to Arduino boards.
SoftwareSerial jdy40(4, 3);
Set Module B (Slave) Device ID: AT+DVID1111 (Must match the Master) Set Channel: AT+RFID2222 (Must match on both modules) Set Baud Rate to 9600: AT+BAUD4
If you are working on a short-range wireless project and find the nRF24L01 too bulky or complex to configure, the might be your new best friend.
#include <SoftwareSerial.h>
void loop() // 1. Read data from JDY-40 (Wireless) and send to Serial Monitor (USB) if (jdySerial.available()) char c = jdySerial.read(); Serial.write(c);
. It is particularly favored for its low cost and simple UART-based communication, allowing devices to exchange data up to 120 meters Longan Labs 1. Hardware Connection Best Practices The JDY-40 operates on 2.2V to 3.6V
: The following code sends an AT command to set the module to "Transparent Transmission Mode" (CLSS A0). You can modify the Serial.println() line to send other AT commands. The JDY-40 is a highly efficient, low-cost 2
Video #257: Serial Wireless Comms for Arduino (et al) - GitHub