Jdy40 Arduino Example Best New! Direct
Because the JDY-40 is a 3.3V logic device, connecting it directly to a 5V Arduino Uno or Nano can damage the module or cause unstable behavior. Always use a logic level converter or a resistor voltage divider on the Arduino TX to JDY-40 RX line.
The JDY-40 is a half-duplex, 2.4GHz wireless transceiver module. Unlike the nRF24L01, which requires managing 20+ registers via SPI, the JDY-40 communicates over . To your Arduino, it looks exactly like a wire replacement.
| Feature | JDY-40 | nRF24L01 | | :--- | :--- | :--- | | | VCC, GND, TX, RX | 8 pins, complex SPI | | Library | None (Serial) | RF24 (complex) | | Configuration | AT commands over Serial | Registers via SPI | | Reliability | Very stable | Prone to noise/power issues |
: Serial Data Output (Connects to Arduino RX / Software RX). jdy40 arduino example best
If you have multiple sets of JDY-40s nearby, change the channel and address:
: Send AT+DVID1122 -> Must match on both modules for transparent 1-to-1 communication.
To interface with an Arduino, connect the pins as follows, ensuring you use a or level shifter for the RX pin if using a 5V Arduino. Configuration with AT command - Arduino Forum Because the JDY-40 is a 3
One of the JDY‑40’s most interesting features is its ability to control I/O pins on a remote module on the remote side. You can configure a module to act as a simple remote control receiver: when the paired transmitter sends certain byte sequences, the receiver directly sets its I/O pins HIGH or LOW. This is perfect for controlling relays, LEDs, or motors with minimal circuitry.
Type these commands into your serial monitor to verify and configure the module: AT Response: +OK Set Baud Rate: AT+BAUD4 (Sets baud rate to 9600)
Below is a robust, production-ready master-slave code workflow. The Master reads an analog sensor value (like a potentiometer) and sends it wirelessly. The Slave receives it and adjusts the brightness of an LED. The Master Code (Transmitter) Unlike the nRF24L01, which requires managing 20+ registers
SoftwareSerial bluetooth(2, 3); // RX, TX
For 95% of hobbyist Arduino projects—remote thermometers, garage door openers, robot controllers, or wearable badges—the JDY-40 is arguably the module you’ve never used.
Because the JDY-40 is a 3.3V logic device, connecting it directly to a 5V Arduino Uno/Nano requires care. While the RX/TX pins are often 5V tolerant, using a logic level converter or a simple resistor voltage divider on the JDY-40 RXD pin ensures long-term reliability. JDY-40 Pin Arduino Uno/Nano Pin Ensure adequate current supply GND Common ground is mandatory TXD Pin 2 (Software RX) Direct connection RXD Pin 3 (Software TX) Use a 1kΩ / 2kΩ voltage divider SET Pin 4 (or GND for config) Controls AT Command mode CS Keeps module active AT Command Configuration