Duino Joy ay simple virtual joystick upang makipag-usap sa arduino sa pamamagitan ng bluetooth module
Tumingin ng Halimbawa sa kung paano gamitin sa https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
pagsubok
***********************
// Connection
// Arduino >>> bluetooth
// D10 (tulad ng RX) >>> Tx
// D11 (tulad TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
walang bisa setup () {
Serial.begin (19200); // Display sa Arduino IDE Serial Monitor
bluetooth.begin (9600); // Makipagkomunika sa Bluetooth module
}
void loop () {
habang (bluetooth.available ()) // Hintaying data mula sa bluetooth
{
char a = bluetooth.read (); // Read Data ng Char mula sa Software Serial
Serial.print ( "Iyong natanggap:");
Serial.println (a); // Print data upang Serial Monitor
}
}
Na-update noong
Ene 4, 2020