Duino Injabulo induku yokudlala elula virtual ukuxhumana Arduino nge-bluetooth module
Buka Isibonelo sendlela yokusebenzisa ngesikhathi https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
Ukuhlola
***********************
// Uxhumano
// Arduino >>> bluetooth
// D10 (njengoba RX) >>> Tx
// D11 (njengoba TX) >>> Rx
#include
bluetooth SoftwareSerial (10, 11); // RX, TX
isethaphu uyize () {
Serial.begin (19200); // Bonisa Arduino IDE Gada yomkhiqizo
bluetooth.begin (9600); // Khuluma Bluetooth module
}
iluphu uyize () {
kuyilapho (bluetooth.available ()) // Linda idatha kusuka bluetooth
{
Char a = bluetooth.read (); // Funda Idatha njengoba Char kusuka Software yomkhiqizo
Serial.print ( "Wamukele:");
Serial.println (a); // idatha Phrinta ukuba Gada yomkhiqizo
}
}
Kubuyekezwe ngo-
Jan 4, 2020