Jdy40 Arduino Example Best ((full)) Access
. They should "just work" out of the box. If they don't, you must use AT commands to match their (Device ID) and (Network ID). Logic Levels : If you are using an Arduino Uno or Mega (5V), use a 1kΩ/2kΩ resistor voltage divider
Because the JDY-40 operates on 3.3V logic, connecting the Arduino’s 5V TX pin directly to the JDY-40 RXD pin can damage the module over time. Always use a logic level shifter or a simple resistor voltage divider (1kΩ and 2kΩ resistors) on the RXD line. Wiring Schema (Identical for Master and Slave) JDY-40 Pin Arduino Uno/Nano Pin Power source GND Common ground TXD Pin 2 (Software RX) Direct connection RXD Pin 3 (Software TX) Through 5V to 3.3V voltage divider SET Digital pin to toggle AT mode CS Permanently enabled Step 1: Configuring the Modules via AT Commands jdy40 arduino example best
#include <SoftwareSerial.h>
No library. No complex config. It just works. Logic Levels : If you are using an
void loop() if (Serial.available()) String data = Serial.readStringUntil('\n'); Serial.println(data); // Send to Serial Plotter No complex config
*Using SoftwareSerial is recommended to keep the hardware Serial port free for debugging. 2. Configuration (AT Mode)