Jdy40 Arduino Example Best Jun 2026
#include <SoftwareSerial.h>
| Module | Frequency | Complexity | Range | Cost (approx.) | |--------|-----------|------------|-------|----------------| | JDY-40 | 2.4 GHz | Very low | 100m | $2-3 | | nRF24L01 | 2.4 GHz | Medium (SPI) | 100m | $1-2 | | HC-12 | 433 MHz | Low (UART) | 1000m | $4-5 | jdy40 arduino example best
Quick recommendation
This sketch reads a button on pin 7 and sends the string "Button Pressed" to the other module. #include <SoftwareSerial
The JDY-40 is a . While its serial pins (RX/TX) are often tolerant to 5V Arduino logic, you must power it with 3.3V. JDY-40 Pin Arduino Pin Description VCC Power Supply (2.2V - 3.6V) GND RXD Pin 11 (SoftSerial TX) Serial input to module TXD Pin 10 (SoftSerial RX) Serial output from module SET Pin 9 (or GND for AT) Low (GND): AT Command mode; High: Data mode CS Low: Awake; High: Sleep mode 2. Best Code Example: Transparent Serial JDY-40 Pin Arduino Pin Description VCC Power Supply (2