公式ストア:
このレッスンでは、スマホAPPを使って、WiFiとBluetoothでロボットカーを制御する方法を学習します。
ハードウェアの装着:
Step 1) ESP8266 拡張ボードとUNO R3ボードを接続して下さい:
Step 2) UNO R3ボードの数字ポート(D2〜D13、A1〜A3)に接続されている配線をすべてESP8266拡張ボードの対応の数字ピンに移動してください。
ご注意: ESP8266拡張ボードにbluetoothモジュールを接続して下さい。
Step 3) esp8266ボードでのスイッチを“1 2” の側に切り替えして下さい。 下記の画像をご参照:
Step 4) 第1課のサンプルコードをダウンロード、解凍して、アルドゥイーノUnoボードにロードして下さい。
注意:Bluetoothモジュールとアルドゥイーノボードは、UARTシリアルポートを通じで相互に通信します。 アルドゥイーノボードにスケッチをアップロードする前にBluetoothモジュールを取り外してください。そうしないとスケッチがアップロードされません。
Step 5)ステップ5)次の写真のように、esp8266のスイッチを「on」にします。
Step 6) バッテリーボックスのスイッチを入れると、 車がレッスン1で説明したように動くことができる場合(5秒前に進み、5秒後に左に5秒、次に右に5秒回転して停止)、ESP8266拡張ボードと R3 UNOボードの接続はすべて正しいと判明できます。 それ以外の場合は、ESP8266拡張ボードとUNO R3の各デジタルピン接続を確認してください。
Step 1: esp8266にコードをアップロードする前に、esp8266ボードのスイッチを「1 2」の場所に置いてください、写真をご参照:
Step 2:次のリンクで第5課のサンプルコードをダウンロードして下さい。https://osoyoo.com/driver/smartcar-lesson5.zipダウンロードしたのzipファイルを解凍したら、 smartcar-lesson5というフォルダがあります。
Step 3: USBケーブルを使って、アルドゥイーノUNO R3ボードとパソコンを繋ぎ、 アルドゥイーノIDEの file -> Open に入って、先ほど解凍したのsmartcar-lesson5 フォルダに「smartcar-lesson5.ino」 を選択して、コードをアルドゥイーノIDEにロードします。
Step 4: アルドゥイーノIDEのToolsにボードタイプ「Arduino/Genuino UNO」とポート番号を選択して、コードをR3ボードにアップロードしてください。
注意:Bluetoothモジュールとアルドゥイーノボードは、UARTシリアルポートを通じで通信します。アルドゥイーノボードにスケッチをアップロードする前に、Bluetoothモジュールを取り外してください。そうしないと、スケッチが正常にアップロードされません。
Step 5: 次の写真に示すように、esp8266のスイッチを「ON」にして下さい:
Step 6:次のリンクでスマホ(Android)APPをダウンロードして、スマホにインストールして下さい。https://osoyoo.com/driver/car.apk.
またはスマホで下記の QRコードをスキャンして、APPをダウンロード、インストールして下さい :
注意: AndroidAPP ソースコード:https://osoyoo.com/driver/BTcar-master.zip (このAPP はAndroid OSのスマホだけ対応できます。)
Step 7: Android スマホにAPPをインストール完了:
Step 1:バッテリーボックスのスイッチを入れてください。
Step 2:WIFIでロボットカーをコントロールしたい場合は、スマホのwifi設定画面にWiFi hotspotをスキャンし、「DoitWIFI_Config」という名前のWi-Fiを検索し、クリックして、接続して下さい。(パスワード不要です。)
Step 3:APPに入って、WiFi モードを選択して、wifiを通じでロボットカーが制御できます。
Step 4:Bluetoothでロボットカーをコントロールしたい場合は、スマホの bluetooth 機能を有効にして、設備をスキャンして、検索したの設備(Bluetoothモジュールより名前も異なります。)をクッリクして、パスワード(0000または1234)を入力して、Bluetoothモジュールと接続します。
Step 5)APPに入って、bluetoothモードを選択して、bluetoothでロボットカーを制御します:
手動制御、障害物回避、追跡の3つの工作モードがあります。 お客様は3つの作業モードの間で自由に切り替えることができます。
1)手動制御モードでは、ボタン(^)(V)(<)(>)をクリックすると、ロボットカーが前後に移動し、左右に回転します。 また、APPのコマンド欄に車のリアルタイムの動きを観察することができます。
2) トラッキングモードに切り替えると ロボット車は、白い背景の黒線に沿って前進します。また、APPのコマンド欄に車のリアルタイムの動きを観察することができます。「||」ボダンをクッリクして、ロボットカーを停車します。他のボダンをクッリクして、ロボットカーの工作モードを切り替えます。詳しくは第4課をご参照:
3) 「Obstacle」ボダンをクッリクして、ロボットカーの工作モードは障害回避モードで工作します。ロボットカーは続いて走行します、途中で障害物が検知したら、一旦停止し、他の 方向に回ります。「||」ボダンをクッリクして、ロボットカーを停車します。他のボダンをクッリクして、ロボットカーの工作モードを切り替えます。詳しくは第3課をご参照:
DownLoad Url osoyoo.com
I have completed all 5 lessons. I am able to use bluetooth communication with the DIP switches set to off (1.2). However, when I turn off the power, remove the bluetooth module, move the DIP switches to ON, turn power back on, restart the CAR application, select “WiFi”, connect phone to the shield’s SSID via WiFi, I am unable to get the application to connect to the car. The application only indicates that it is “disconnected”. What could I be doing wrong?
Do you go to phone setting to connect wifi and restart the APP?
Yes. I have done that:
1. turn car power off
2. remove bluetooth card
3. flip DIP switches to “ON”
4. Turn car power on
5. Disable WiFi on phone
6. Force close CAR app
7. Enable WiFi on phone
8. Connect to “DoitWiFi_Config”
9. Launch CAR app
10. Select “WiFi” mode
Then, the app says it’s “connected” already (indicated at the top) I try a command: step forward. It works. The app immediately displays “Connection disconnect” near the bottom and the status at the top says “disconnect”. After that, the CAR app is not able to connect until I close and reopen the CAR app. Then I get to run one more command.
Also, if I disconnect and reconnect from “DoitWiFi_Config” I am able to run another *single* command without restarting the CAR app. Same result of disconnect immediately following the command.
Are you willing to tell me the version of your Android?
i have the same problem, and i don’t know how to solve it
I need an answer as soon as possible
I think the wifi expansion board may be defective.
Are you willing to provide your order No. and I’ll send the board to you and please have a try.
OK?
Hi, I completed all the 5 lessons. The car worked well in the previous lessons, but now I installed wifi module and bluetooth, I connect with the phone app, and car doesn’t do anything. What can I do?
I noticed that the voltage display shows 6.8. Can be the voltage too low?
1. Do you mean the wifi and bluetooth module can’t work as the tutorial?
2. The voltage need more than 7V and then the car will work smoothly.
Yes, the car doesn’t move. I can’t control the car with the app. How can I solve?
Which version Android of your phone is?
Do you put the swtich to on when it work on wifi?
My phone has Android 4.3
Yes, I put the switch to on wifi.
Which can be the problem?
I think the wifi expansion board may be defective.
Are you willing to provide your order No. and I’ll send the board to you and please have a try.
OK?
OK, my order number is 171-5077738-6650706. From Amazon.
ok, we will reship the board to you today and give you the tracking number via amazon email massage.
Ok
Hi, I completed the car. But I think it goes too fast, and before avoid obstacles it bangs on them. How can I do?
Hi, I tried all 5 lessons for the smart car kit I ordered and received about a month ago. Unfortunately, I experienced failures in two lessons. They are as follows.
(1) Lession 2 – Car does not move at all with the IR remote control although I can see LED lights brinking on IR receiver board.
(2) Lesson 5 – Wifi control does not work properly. Pushing any button (forward, back, left, or right turn) and releasing changes connected to disconnected status immediately and this forces start over with new wifi connection. This means sequential control is not possible without reconnecting wifi. Bluetooth does not work properly either. Car motion is not continuous even when you keep pushing any control buttons. Car makes short move and stop.
My phone is with android version# 8.0.0 and battery meter showed initially 8.4 and lately 7.8 volts after some trials. The product order number I got from Amazon is 112-3383311-2641052. Please let me know what needs to be done.
Sincerely
Kwang Cho
please to check the wire connections, modules’ installations and software installations carefully firstly,and make sure they are all right.Could you please try it? any update?
I am confident that hardware and software installation and wiring were all done correctly. I tested several times on different days after verifing correct installation and wiring and the same problems were observed.
Could you please change a phone which android version below 4.4 to try it, any update?
I think the user report by Derrickoson on April 3, 2018 mentioned a problem similar to my problem in lession 5: Wifi is disconnected immediately following a *single* command.
Could you please change a phone which android version below 4.4 to try it, any update?
I discarded all my old phones and cannot test android version below 4.4 as you suggested. How can I switch back to old android version with my current phone? My Samsung phone shows installed version number 8.0.0 and does not say how you can go back to old version. I am also concerned that switching back to old version might cause other functionality issues. Was the Osoyoo Smart Car designed to work only with old android version?
our engineers are updating the software of the phone app which can support android version above 4.4 these days , but it need a few days, could you please wait for some days?
Ok, fine. I can wait for the lession 5 problem. How about my lession 2 problem of no operation with remote IR control although LED lights on IR receiver board blink. Any idea what could be wrong?
please visit: https://osoyoo.com/2017/07/20/arduino-lesson-ir-remotecontrol/?preview_id=9211&preview_nonce=aeac5d434c&_thumbnail_id=14649&preview=true
and check whether the infrared receiver and infrared remote control are in good condition or not?
we have updated the phone app which can support android version above 4.4, please uninstall the previous APP, then download the new app. in Android phone from the link: https://raw.githubusercontent.com/osoyoo/driver/master/BTcar.apk.
Hi Elaine, thank you for the updated wifi remote control App. It works great with my latest android version. However, I still see two different problems. Bluetooth control fails to perform continuous car motion when I keep pushing control buttons: car repeats short motion. I am wondering whether Bluetooth mode in the App needs to be updated as wifi mode for new android versions. Per IR control problem for lesion 2, I checked the IR receiver board by connecting to Arduino hardware as you suggested. Demodulated hex code observed through serial monitor for control buttons such as left, up, etc. do not match with those in test program. The code is also not consistent. Doesn’t this indicate my IR receiver board is bad?
Hi, we have updated the phone app again, please uninstall the previous APP, then download the newest app. then to try Bluetooth fuction again, any update?
As for Per IR control problem, please offer the hex code of top, down, right, left.
Kwangcho, to help you solve the problem sooner, could you reply us by email to [email protected] . If this is our hardware problem, we will send you replacement to you, and if this is software set up problem, we will give you guide to reinstall the program.
please visit: https://osoyoo.com/2017/07/20/arduino-lesson-ir-remotecontrol/?preview_id=9211&preview_nonce=aeac5d434c&_thumbnail_id=14649&preview=true
and check whether the infrared receiver and infrared remote control are in good condition or not?
Hi, I completed the car. But I think it goes too fast, and before avoid obstacles it bangs on them. How can I do?
hi , again , tracking mode dont work good it always go out line , and i havent 90 degree lines . i tryed to lower the spedd of the car but dont work too
how can i do ??
I have a problem in Bluetooth mode. When I start the app and connect to bluetooth it says ” connected you have modified the parameters.I have no idea what happen or how to clear it, what it does it will not let the car continually go forward, you have to hit the button each time to move it forward.Any help would be appreciated.
yes. the car is designed to move a short distance after each hit. We do this because we do not want the car moving too fast otherwise it might hit obstacle and damage. If you want to longer movement after one hit, you might need customize the code in void do_Drive_Tick() function. Try different value for JogTimeCnt and see the result.
In wifi if I hold the forward button it will continue moving until I let it go. I did notice on the screen in Bluetooth it will display forward on the phone screen, but in Wifi it shows a . I don’t know what that means. If I haven’t hooked up to the computer why is it saying”connected you have modified the parameters” What parameters is it talking about?