Skip to content
Put your drone on a longer leash executing programmed flight on a powered Pi zero. Perform YOLO object recognition connect over Hologram CLI
Branch: master
Clone or download
Latest commit 85a6d2d Jan 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ardrone.egg-info
ardrone
build
dist added ardrone controls Jan 15, 2018
.gitignore
README.md
ardrone_setup.py
install.sh
main.py

README.md

Cellular Connected Autonomous AR Drone 2.0

pi-in-the-sky

Put your drone on a longer leash executing programmed flight on a powered Pi zero. Second part of a YOLO object recognition project using Hologram Nova, see here. Contest entry with additional information here. More drone hacking here. We modified this repo for ardrone control on our raspberry pi.

Hardware

We used:

Software

Requirements:

Wiring it up

The wiring of the pi is very simple for this project. We used a USB to TTL converter to power the raspberry pi through the GPIO pins using the drone's battery. Connecting the power and ground pins to pins 2 and 6 of the pi. Connect the usb end to the usb port at the top of the AR Drone 2.0 next to the battery, where you would normally plug in a usb to store video. Other than that, connect the pi cam using the ribbon cable for pi zero and use a microusb to usb converter to plug in the Hologram Nova. pi drone wiring

Install

Compatibility between project dependencies requires python3.4 as default python3. You should burn this specific image for your raspberry pi zero. After making this image and wiring the pi, boot up and go through the first-time boot configuration. You should make sure to:

  • Under Advanced Options, Expand filesystem
  • Under Localization Options change timezone
  • Change User password

After a reboot, git clone this repo

cd ~/
git clone https://github.com/smellslikeml/cell_pwn_drone
cd cell_pwn_drone

And run the install script

./install.sh
./ardrone_setup.py

Configuration

  • Position drone upside down to access pi and disable flight mode
  • Set DEVICEKEY in config.py
  • Set /etc/wpa_supplicant/wpa_supplicant.conf to the drone's SSID
  • Reboot, connect peripherals, note the time (Pi off wifi on drone network)
  • As root (sudo su), set crontab for the time based on start time
  • Unplug keyboard, plug in Hologram Nova
  • From Hologram Dashboard, prepare for 'land' command to break flight
  • Unplug HDMI after reboot and position drone
  • Monitor flight with Dashboard for kill switch

TODO

  • Work out monitor issue
  • Set process
  • Create remote Start, Reboot
  • awscli download to flight instructions from S3 bucket
  • text location, slackbot images?
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.