Jdy40 Arduino Example Best !!hot!!

: Sets the Wireless ID (0000 to FFFF). Both modules must have the same RFID to talk.

Build the on the second Arduino.

digitalWrite(2, LOW); // Enter AT mode digitalWrite(3, LOW); // Wake module (CS low) jdy40 arduino example best

void setup() Serial.begin(9600); // For Serial Monitor input Serial1.begin(9600); // For communication with JDY-40

#define JDY_RX 10 #define JDY_TX 11

A full-duplex communication bridge that allows the user to change the JDY-40 baud rate via Arduino code (removing the need for USB-to-TTL adapters for setup) and provides a "Heartbeat" signal quality indicator .

: First, connect the JDY-40 to your Arduino as described above. To put the module into AT command mode, you must connect the SET pin to GND (LOW) and CS pin to GND. : Sets the Wireless ID (0000 to FFFF)

// Send AT commands with newline termination Serial.println("AT"); // Test connection delay(100); Serial.println("AT+VER"); // Query version delay(100); Serial.println("AT+RFCH005"); // Set channel 5 delay(100); Serial.println("AT+RFID001"); // Set ID to 1 delay(100); Serial.println("AT+BAUD4"); // Ensure baud rate is 9600 delay(100);

Based on these results, I can write a comprehensive article covering: digitalWrite(2, LOW); // Enter AT mode digitalWrite(3, LOW);

Scroll to Top