Introduction to AR Drone Parrot 2.0
AR Drone Parrot is a QuadCopter which comes with a front facing hd camera and a bottom facing camera. The AR Drone is controlled by sending commands over Wifi thus inherently it is programmable
Browser Based Controller and Camera Feed Receiver
Following is the first of the series of Apps I plan to build.
It is a Browser based Command and Control Dashboard for the AR Drone which also show us the AR Drone Camera Feed. There are buttons available in the toolbar to make the AR Drone Take Off, Spin, Stop and Land.
[singlepic id=54 w=800 h=600 float=]
Usage
Setup
- Start AR Drone Parrot 2.0
- Connect the Laptop to the ar drone wifi
- Clone the project from git hub
- run $> npm install
- run $> node server.js
- Open http://locahost:3000 in Chrome browser
Directions
- There are two videos shown here
- One from Laptop Camera
- You will be prompted to allow access to the Laptop Camera
- This is based on WebRTC
- One from AR Drone Parrot 2.0
- If the Video feed shows, than video feed connection to AR Drone is working fine
- One from Laptop Camera
- The AR Drone can be controlled using the buttons on the Toolbar
- Take Off - Click the Take Off button to make the AR Drone Take Off
- Spin - Click on the Spin button to make the AR Drone Start Spinning
- Stop - Click on the Stop button to stop Spinning
- Land - Click on the Land Button to Land the Craft
- The Dashboard also shows how much of battery is left on AR Drone
Source Code
The source code be found at https://github.com/rohitghatol/ardrone-nodejs-browser-control
[singlepic id=55 w=600 h=480 float=]
[singlepic id=56 w=600 h=480 float=]
Video Demo
http://www.youtube.com/watch?v=js-V--Qen-Q
References
This project uses following
- NodeJS Express Server
- NodeJS Module - ar-drone
- NodeJS Module - dronestream
- Socket IO to get the feed from backend server to the Browser