Control Parrot mini drone Airborne from Scratch
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
find.js
scratch2airborne.js

README.md

Scratch2Airborne(a.k.a. Scratch2Drone)

With Scratch2Airborne, you can control Parrot Mini Drone series like Airborne Cargo from Scratch 1.4.

Scratch2Airborne Demo

CAUTION!!! Drones could be super dangerous. Make sure to have children wear long sleeve shirts, gloves, and goggles if you use them in workshops, etc. My drone could cut houseplant leaf with its propeller when it accidentally grazed.

danger

Requirements

  • Tested only on MacOS 10.10.5(Yosemite). Might work on other platforms but not sure.
  • Scratch 1.4
  • Node.js

How to setup

Install source and libraries.

$ git clone git@github.com:champierre/scratch2airborne.git
$ npm i noble
$ npm i rolling-spider

Power on the drone and get uuid, the id to specify the device.

$ cd scratch2airborne
$ node find.js

Replace "CHANGE HERE" in scratch2airborne.js with the uuid.

change_here

How to run

Enable "Remote Sensor Connections" on Scratch.

RSC

Run the script.

$ node scratch2airborne.js

If a message saying "SESSION START" appears, your drone is successfully connected.

You can control the drone by "broadcast" blocks.

Scratch Project

The following commands are available.

  • takeoff
  • forward
  • right
  • left
  • backward
  • up
  • down
  • flip
  • backflip
  • hover
  • land