Jdy40 Arduino Example Best
Here are some concrete projects you can build to put your new knowledge to the test:
: Program your Arduino nodes to ignore any message that does not match their specific ID. Hardware Setup :
void setup() Serial.begin(9600); // Default baud rate
This comprehensive guide covers everything required to master the JDY-40 module with an Arduino, moving from hardware wiring to AT command configuration, and concludes with a robust, real-world communication example. Share public link jdy40 arduino example best
SoftwareSerial jdySerial(JDY_RX, JDY_TX);
Choose JDY-40 for simplicity and low cost when range under 100m suffices.
Now for the most important part: how to use the JDY-40 in your own projects. Here are three practical examples, from simple to more advanced. Here are some concrete projects you can build
To make two JDY-40 modules talk to each other, they must share the same wireless channel and device ID. Below is the configuration sketch to send AT commands via the Arduino Serial Monitor.
Open two separate Serial Monitor instances in the Arduino IDE, each corresponding to its own Arduino board. Set both Serial Monitors to 9600 baud. Type in one monitor and it will appear on the other. 4. Configuring JDY-40 via AT Commands
The is a low-cost, ultra-low power wireless serial pass-through module based on the CC2541 chip. It is often preferred over the older HC-05/HC-06 Bluetooth modules because it supports both Bluetooth 4.0 (BLE) and standard serial transparency, and it requires no complex AT command pairing process for basic data transmission. Now for the most important part: how to
While the JDY-40 works straight out of the box, you'll need to know the AT commands to change its behavior, such as setting a unique network ID, baud rate, or transmission channel. To enter AT command mode, you must pull the SET pin to GND (LOW).
Connect two separate Arduino boards (Transmitter and Receiver) using the following pinout: JDY-40 Pin Arduino Pin (Uno/Nano/Pro Mini) Do NOT connect to 5V GND Common ground TXD Pin 2 (Software RX) Receives data from JDY-40 RXD Pin 3 (Software TX) Use a 1kΩ resistor inline for 5V Arduinos SET Pin 4 (Digital Out) Controls AT Mode / Data Mode CS Kept permanently low for active state Configuring the JDY-40 via AT Commands