In this chapter we will set up the development environment of the Balanbot using Duinopeak's Balanbot v1.0 firmware.
For what version of your Balanbot, please refer to the Mainboard version as beblow. As we can see, our Balanbot mainboard version is v1.2.
Please use arduino 1.56. Otherwise will get a compile error.
Unpack the Source code file to your local disk. The file structure should same as follow.
Set arduino work path to your source folder.
Open File->Preferences, Sketchbook location, click OK and reopen your arduino ide.
Then connect USB cable to your balanbot, for windows, will popup new hardware installation.
Upack the driver to your local disk and locate the driver path to driver path of the new hardware installation. After install a new Serial port will appear, see your device management.
Next open the demo, Open File-> Sketchbook->balanbotDemo1.
Before next step make sure your ide Tools->Board has Balanbot menu. If this not appear check your Sketchbook folder contains hardware folder.
And choose the newly installed Serial port, my is COM36.
OK, we can upload the demo code now. Click the upload icon to upload. When uploading the rx and tx led of balanbot near the USB socket.
We could see arduino ide says:"Done uploading." when it's done.
Next we need do a step which was very important.
Open the serial monitor, also you will hear a "Beep", indicate the initial was succeed.
Type CR; and press Enter to restore default EEPROM values.
Note: When you got your a new balanbot or replace the main IC with new one. You need do this step.
Next we need calibrate motors, before calibrate motors you need place balanbot's wheel upward. Then type MC; and press Enter in Serial monitor.
Now will print the both motor encoder readings.
According the tips complete calibrate motors.
Now you got you balanbot ready to go.
Now pull out usb cable and plug in bluetooth dongle to balanbot USB host socket.
If you want to use Balanduino's firmware, please refer to this page: Use Balanduino's firmware for Balanbot v1.0