Duino Joy is eenvoudig virtuele joystick met Arduino te communiceren via bluetooth module
Bekijk voorbeeld over hoe om te gebruiken op https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
testen
***********************
// Connection
// Arduino >>> bluetooth
// D10 (als RX) >>> Tx
// D11 (als TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
void setup () {
Serial.begin (19200); // Display om Arduino IDE Serial Monitor
bluetooth.begin (9600); // Communiceer met Bluetooth-module
}
void lus () {
while (bluetooth.available ()) // Wacht op gegevens van bluetooth
{
char a = bluetooth.read (); // Gegevens lezen als Char van Software Serial
Serial.print ( "Recieved:");
Serial.println (a); // Print data to Serial Monitor
}
}