View on GitHub

pxt-Dronebit

The Intelligent programming UAV (DroneBit) designed by ELECFREAKS Co.ltd

Drone:bit Package

Drone:bit is a new UAV based on micro:bit.

The micro:bit Drone:bit Kit has successfully combined micro:bit with drones, which has provided another possibility for students to create and explore in the sky.

Through your operation, you can give it commands of hovering at a fixed altitude , flying from a waypoint, curvilinear flight, and rolling in the sky etc. even in the classrooms, get your first professional micro:bit Drone:bit Kit now!

Drone:bit, take you to a new height!

This extension is designed to programme and drive the Drone:bit UAV, You can get Drone:bit from the Elecfreaks store

Document

You can get more information about Drone:bit on ELECFREAKS WIKI

Basic usage

Code Example

Drones.initModule(Drones.Runmodes.Master)
Drones.UAV_speed(80)
Drones.Basic_action(Drones.Basicoptions.Takeoff)
Drones.Move_action(Drones.Directionoptions.Forward, 100)
basic.forever(function () {
    if (Drones.Get_Sensor(Drones.Sensoroptions.Voltage) > 3.5) {
        Drones.Hovering(10)
    } else {
        Drones.Basic_action(Drones.Basicoptions.Takeoff)
    }
})

Supported targets

for PXT/microbit

License

MIT