Jdy40 Arduino Example Best Jun 2026
The JDY-40 is a cheap, versatile 2.4GHz wireless serial port module. It works over distances up to 120 meters. It is ideal for Arduino projects like remote controls and sensor networks.
This sketch listens for incoming serial data from the JDY-40, parses the packet using start and end markers, and outputs the isolated integer to the serial monitor. jdy40 arduino example best
The JDY-40 works best with 3.3V logic. If you are using a 5V Arduino (like the Uno or Nano), it is highly recommended to use a voltage divider (e.g., 1kΩ and 2kΩ resistors) on the RX pin of the JDY-40 to avoid damage. Pinout Connections JDY-40 Pin Arduino Pin 3.3V CRITICAL: DO NOT USE 5V GND GND Common Ground TXD Digital 2 SoftSerial RX RXD Digital 3 SoftSerial TX (Use Divider) CS GND Pull LOW for Communication SET GND Pull LOW for AT Mode, HIGH for Data The JDY-40 is a cheap, versatile 2