Interfacing the Crazyflie With a Proximity SensorPosted: July 28, 2013
This article will teach you how to interface your Crazyflie with a proximity sensor. It would be wise to test your Crazyflie and the proximity sensor before soldering everything together. A detailed account of my experience can be found here.
Bill of Materials
- Crazyflie nano quadcopter (you can also use the 6-DOF version)
- LV-MaxSonar-EZ0 ultrasonic proximity sensor
- Solid wire capable of supporting a 5 gram sensor
- Soldering equipment
1. Solder the proximity sensor pins -> to the Crazyflie expansion header (check out the reference):
+5 -> pin 20
GND -> pin 19
AN -> pin 14
2. Position the wire so the proximity sensor stands straight up, and the eye points towards the front of the copter as shown in the photo.
3. Download the firmware binary.
Clone my fork of the crazyflie-firmware and make the project if you have your development environment setup:
4. Flash the Crazyflie firmware over the radio. Instructions can be found here.
5. Add the vProx logging parameter to your selecting logging parameters and restart the Crazyfly Client
6. Fly around and watch as the Crazyflie detects objects in the Plotter tab!