void loop() if (bluetooth.available() > 0) char data = bluetooth.read(); Serial.print("Received: "); Serial.println(data);
#include <SoftwareSerial.h>
Как работать с беспроводным модулем jdy-40 и ардуино? jdy40 arduino example best
: Changes operating mode. A0 is standard transparent serial, while C0-C5 are for remote GPIO control. 4. Pro Tips for Better Reliability void loop() if (bluetooth
This sketch reads a button on pin 7 and sends the string "Button Pressed" to the other module. Note that the module is ; applying 5V
#include <SoftwareSerial.h>
To interface the JDY-40 with an Arduino (like a Nano or Uno), use the following wiring scheme. Note that the module is ; applying 5V to the data pins without a level shifter can damage it. JDY-40 Pin Arduino Pin Description VCC Power supply (2.2V - 3.6V) GND Common Ground RXD TX (e.g., D3*) Data receive pin (3.3V logic) TXD RX (e.g., D2*) Data transmit pin SET D4 / GND / 3.3V LOW for AT Mode; HIGH for Communication Mode CS Chip Select; LOW to keep the module active