Jdy40 Arduino Example Best Exclusive Jun 2026
Arduino (Allows the sketch to programmatically switch between AT mode and data mode). JDY-40 CS →right arrow
Arduino (Keeps the module permanently awake for this example). Step 1: Configuring Modules via AT Commands
It supports standard serial pass-through, panel switch control (GPIO replication), and remote control modes. jdy40 arduino example best
// FEATURE: Software Configuration Helper if (command ==
This example allows you to type a message in the Serial Monitor of one Arduino and see it appear on the other. It is the most reliable way to test if your modules are paired correctly. 1. Wiring Diagram JDY-40 Pin Arduino Pin Do not use 5V. Common ground. Connects to SoftwareSerial RX. // FEATURE: Software Configuration Helper if (command ==
Serial.println( "JDY-40 Serial Chat Ready..." ); Serial.println( "Type a message to send to the other module:" // Read from JDY-40 and send to Serial Monitor
#include <SoftwareSerial.h>
The most reliable way to use the JDY-40 is as a transparent serial bridge. This allows you to send data from one Arduino and receive it on another as if they were connected by a wire.
: Always end AT commands with \r\n (carriage return and newline). In Arduino code, Serial.println() will handle this for you. Wiring Diagram JDY-40 Pin Arduino Pin Do not use 5V