このArduino Bluetooth Car HC-05 orについて
Bluetooth経由でArduinoまたはRaspberry PiプロジェクトベースのRCカーを制御する
アプリケーションを使用すると、Bluetooth経由でArduinoまたはRaspberry PiベースのRCカーを制御できます。これは、Bluetooth対応のAndroid携帯を使用して行われます。
***警告***
ArduinoのBluetoothカーは、Bluetoothでデバイスを検索しません。まずあなたはあなたの携帯電話の設定をペアリングしなければなりません。
あなたに何か問題があるならば、あなたは私に連絡することができます、そして、私はあなたを助けます。
楽しい
あなたはHC-05またはHC-06を使うことができます
コード:
void loop(){
if(bluetooth.available()){//データがシリアルポートから来ているかどうかをチェックします
comando = "";
while(bluetooth.available())
{
char x = bluetooth.read();
comando + = x;
}
if(comando == "f")
前面();
そうでなければ(comando == "e")
左();
そうでなければ(comando == "r")
右();
そうでなければ(comando == "p")
stopCar();
そうでなければ(comando == "b")
バック();
そうでなければ(comando == "m")
もっと();
}
最新バージョン 1.1 の更新情報
Last updated on 2019年08月27日
Minor bug fixes and improvements. Install or update to the newest version to check it out!
Arduino Bluetooth Car HC-05 orの旧バージョン
Arduino Bluetooth Car HC-05 or 1.1
2.5 MB2019年06月01日