/* * 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. */
| Command | Function | | :--- | :--- | | AT | Test communication | | AT+VERSION | Get firmware version | | AT+DEFAULT | Reset to factory | | AT+BAUD4 | Set baud to 9600 (4=9600, 5=19200, etc.) | | AT+RFCH0 | Set channel (0-19) – use same on both | | AT+ADDR0001 | Set address (0001-FFFF) – use same on both |
Out of the box, the JDY-40 works. But to eliminate interference and maximize range, you must configure it via AT commands. jdy40 arduino example best
Sometimes you need to change the channel, address, or baud rate. Use a connected to the module.
To get the best performance out of your JDY-40, follow this standard serial setup: /* * JDY-40 AT Command Configurator * This
: Double-check that your Arduino software serial baud rate matches the JDY-40 internal baud rate (default is 9600). Ensure your voltage divider on the RX line uses correct resistor values.
In the crowded world of 2.4GHz wireless modules, the nRF24L01 often steals the spotlight. However, it comes with a notorious catch: complex configuration, pin sensitivity, and frequent “fried” modules due to 5V logic. Enter the — a hidden gem for Arduino enthusiasts who need simple, reliable, ultra-low-power point-to-point or broadcast communication. But to eliminate interference and maximize range, you
: Receive Pin (Connects to Arduino TX via a voltage divider)
This pattern is ideal for sensor networks, remote control systems, or any project where a central controller needs to poll multiple devices.
#include SoftwareSerial jdySerial(2, 3); // RX, TX void setup() Serial.begin(9600); jdySerial.begin(9600); Serial.println("JDY-40 AT Command Mode Ready."); void loop() if (jdySerial.available()) Serial.write(jdySerial.read()); if (Serial.available()) jdySerial.write(Serial.read()); Use code with caution. Essential AT Commands for Pairing
Bạn có chắc chắn muốn Reset Key/ Đổi Máy trên Key này không?
Máy tính đã kích hoạt Key này sẽ bị gỡ và bạn dùng Key này để kích hoạt trên máy tính bất kỳ.