Duino Joy er enkel virtuell styrespak for å kommunisere med arduino via Bluetooth-modul
Vis Eksempel på hvordan du bruker ved https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
testing
***********************
// Forbindelse
// Arduino >>> bluetooth
// D10 (som RX) >>> Tx
// D11 (som TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
void setup () {
Serial.begin (19200); // Display til Arduino IDE Serial Monitor
bluetooth.begin (9600); // Kommunisere med Bluetooth-modul
}
void sløyfe () {
while (bluetooth.available ()) // Vent for data fra bluetooth
{
char en = bluetooth.read (); // Les data som Char fra Software Serial
Serial.print ( "Recieved:");
Serial.println (a); // utskriftsdataene til Serial Monitor
}
}