Getting Started with Balanbot-Setup the development environment
In this chapter we will set up the development environment of the Balanbot v2.0.
Note: Balanbot2 fully compatible with Balanduino 1.3. So you might want to use Balanduino’s firmware, yes it is possible now!
- Sourcecode: Balanbot Sourcecode or the latest on Github(choose balanbot2)
- Arduino 1.6.x IDE
- Driver: BalanbotPC_Driver (include widows, linux and mac)
- USB Cable
Setup Arduino dev environment.
Please use arduino 1.56 or above 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->Balanbot.
Before next step make sure your ide Tools->Board has Balanbot menu. If this not appear check your Sketchbook folder contains hardware folder.
Then select Tools->Revision Revision 1.3
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.
Open the serial monitor, also you will hear a “Beep”, indicate the initial was succeed.
Note: When you replace the main IC ATMega1284P with new one. You need do this step.
Type CR; and press Enter to restore default EEPROM values.
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.
- Everytime balanbot need calibrate it’s sensor. And the initial position is put the balanbot on the it’s side.
- Balanbot initial success will make a “Beep”.
- You should connect balanbot’s bluetooth before it’s lift.