/* * JDY-40 AT Command Configurator * This sketch sets the module to channel 5, ID 1, and queries the version. * Connect SET to pin 2, CS to pin 3, and the serial lines to RX/TX. */
For initial testing and configuration, a USB-to-Serial adapter (like FTDI or CH340) is very convenient.
The JDY-40 is a powerful, cost-effective 2.4GHz wireless transceiver module popular for Arduino projects needing a simple, transparent serial link. Unlike Bluetooth or WiFi modules, the JDY-40 operates in a specialized FSK modulation mode, allowing it to behave exactly like a wireless USB cable, making it ideal for low-power, short-range communication. jdy40 arduino example best
Send temperature every 60 seconds, then sleep the Arduino + JDY-40.
void loop() // Read from Serial Monitor (PC) if (Serial.available()) String data = Serial.readString(); jdy40.print(data); // Send wirelessly to receiver /* * JDY-40 AT Command Configurator * This
delay(500); // Allow module to settle
: Receive Pin (Connects to Arduino TX via a voltage divider) The JDY-40 is a powerful, cost-effective 2
Pull LOW to enable module; pull HIGH to enter deep sleep mode Wiring the JDY-40 to Arduino
Many JDY‑40 modules do not retain settings after a power cycle. Always resend your configuration (or store it in your Arduino’s setup() ) if you need a specific channel or ID.