Duino Joy on lihtne virtuaalse juhtkangi suhelda Arduino Bluetoothiga moodul
Vaata Näide, kuidas kasutada temperatuuril https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
Testimine
***********************
// Connection
// Arduino >>> bluetooth
// D10 (nagu RX) >>> Tx
// D11 (nagu TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
void setup () {
Serial.begin (19200); // Display et Arduino IDE Serial Monitor
bluetooth.begin (9600); // Suhelge Bluetooth moodul
}
tühine loop () {
while (bluetooth.available ()) // Oota andmeid bluetooth
{
söestada a = bluetooth.read (); // lugeda andmeid nagu Char Software Serial
Serial.print ( "Vastuvõetav:");
Serial.println (a); // Prindi andmeid Serial Monitor
}
}
Värskendatud:
4. jaan 2020