Duino Ilo on helppo virtuaalinen joystick kommunikoida Arduino Bluetooth-moduuli
Näytä esimerkki siitä, miten käyttää osoitteessa https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
Testaus
***********************
// Yhteys
// Arduino >>> bluetooth
// D10 (RX) >>> Tx
// D11 (kuten TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
void setup () {
Serial.begin (19200); // Display Arduino IDE Serial Monitor
bluetooth.begin (9600); // Kommunikoi Bluetooth-moduuli
}
void loop () {
while (bluetooth.available ()) // Odota dataa Bluetooth-
{
char a = bluetooth.read (); // Lue Tiedot kuten Char Software Serial
Serial.print ( "Vastaanotettu:");
Serial.println (a); // tulostustiedot Serial Monitor
}
}