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: http://wiki.linino.org/doku.php?id=wiki:nodejscript

https://github.com/felixge/node-ar-drone

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 (https://github.com/felixge/node-ar-drone). 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 https://www.sparkfun.com/products/9760. 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 holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top