We recommend to use the firmware 2.0, which has a more stable code, more supported communication interface and allows working with Linux and MacOS. Additionally, most of the tools provided in this website require the firmware 2.0 to work properly.
Upgrade to Kilobot Firmware 2.0
Most of the information reported here below come from (and can be found also on) the kilobotics website (https://www.kilobotics.com/documentation).
We recommend doing the firmware upgrade from a Linux machine.
Here below, the steps to upgrade the kilobot firmware:
- 1. Setup of your Linux machine installing avrdude. For Ubuntu, use the following command:
sudo apt-get install avrdude
- 2. If it's not done yet, update the firmware of the Overhead Controller (OHC) (see OHC Firmware for details)
- 3. Download the file bootloader.hex
- 6. Connect the OHC to the PC through Usb, and plug the cable connecting the OHC to the kilobot as in this figure:
- 7. Run (from the directory containing the bootloader file) the update command:
sudo avrdude -p m328p -P usb -c avrispmkII -U "flash:w:bootloader.hex:i"
- 8. If you succeed, the robot should be happy and start vibrating in your hands the terminal message should say:
Fuses OK. avrdude done. Thank you.Similarly to this screenshot.
- 1. Problem: The kilobot (that you're trying to upgrade) is not detected by the avrdude as connected through USB.
- Solution 1: Bad connection. Check that the OHC jumper is in the correct position
- Solution 2: Software failure. Try to reset the kilobot by removing and placing back its jumper
- Solution 3: Low battery. Place the kilobot on a charging dock for a few minutes and retry
- Solution 4: Damaged battery. Replace the kilobot battery
In case needed, here you can get the firmware 1.0 (from K-team): KilobotFirstFirmware.hex
For further information, check the kilobotics website: https://www.kilobotics.com/documentation
The source code of the firmware (both of OHC and kilobots) can be found here: https://github.com/acornejo/kilolib