Some extra work needs to be completed before its fully usable (eg drivers for the accelerometer/gyro) and some nice wrappers around things such as the motoro control needs to be put in place however if you want to experiment it is in a usable state
Steps to build firmware:
* check out crazyflie2 branch at https://github.com/exec-all/micropython/ with the command
Code: Select all
git clone -b crazyflie2 https://github.com/exec-all/micropython/
* build the firmware with
Code: Select all
BOARD=CRAZYFLIE2 make
* the crazyflie2 will blink a blue led slowly then rapidly, once it is flashing rapidly release the button
* ensure 'dfu-util' is avalible on your machine to flash the firmware
* flash the firmware by running the following command:
Code: Select all
dfu-util -a 0 -D build-CRAZYFLIE2/firmware.dfu
Code: Select all
import pyb
for i in range(400000):
pyb.LED((i%4)+1).on()
pyb.delay(400)
pyb.LED((i%4)+1).off()
- Red/Green LEDs
- Turning motors on and off
Expansion boads
Communication with the radio
- Accelerometer
onewire for Expansion Boards
Over the air firmware updates
The firmware flashing procedure is slightly different to crazyflie2 and is the equivalent of CLOAD=0. This will replace the bootloader and you will lose the ability to load new firmware over the air (needs to be flashed via usb).
micropython is similar but not identical to python 3.4, notably there are substantially less libraries available by default and modules like 'sys' have only basic functionality. for a good introduction see http://docs.micropython.org/en/latest/t ... index.html
There is no flight control software at the moment(on the todo list) so its up to you to spin the motors at the correct speed and stay level (without the use of the accelerometer until that driver gets written)
As the usual firmware is not there, software that communicates with the firmware over the radio will not work. this includes anything using the official crazyflie python libraries
Feedback/feature requests are welcome