Control a Parrot AR Drone with Linino

Performing the control of the AR.Drone with the iOS or Android apps is really difficult. The controls are very unstable because the app virtual joystick hasn’t a good sensitivity response. The idea was to use a real joystick instead of the Parrot application itself:

Control a Parrot AR Drone with Linino

So, to create an application to control the quadcopter, you need Linino with Node.js and the Ideino development environment on-board, that include a library for managing the pins of the board in Node.js. For installing Node.js and Ideino on the Yun, please refer to this guide:

After setting up Node.js and Ideino, we looked around for a node module implementing all the necessary commands to pilot the AR.Drone. We found that the most used is ar-drone. The source code of the ar-drone module is available on GitHub ( ar-drone module comes with a detailed documentation from which I deduced that the main commands for controlling the AR.Drone:

  • take-off
  • land
  • stop
  • left / right
  • front / back
  • up /down
  • clockwise / counter clockwise

The following picture show how we associate the ar-drone commands with the joystick shield controls

Note that the Take Off / Landing commands are performed by a single button switch, located under the two potentiometers of the joystick.joystick command

To start write the Node.js code in Ideino, we need to setup our environment. The First step is to setup the mcu with a sketch, generally to work with ideino and the ideino-linino-lib you need to load the firmata sketch that allows Linino to comunicate with the board. With ideino-linino-lib are distributed  two .hex files:

  • firmata_spi.hex
  • firmata_spi_pullup_enabled.hex

The most used is the first one, but in this case, for the Joystick Shield, we need to use the second one which enables the pullup resistor in the Arduino board. See the product page for more details To load the .hex file you need to open an ssh connection to your Arduino Yun and execute the commands below in the linux shell :

Read More:  Control a Parrot AR Drone with Linino

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation, and engineering. I have a clear and simple writing style and am skilled in using infographics and diagrams. I am a great researcher and is able to present information in a well-organized and logical manner.

Scroll to Top