Flying Hubsan X4 using Arduino
April 6, 2015
Posted by on
This blog post is about a recent class project I have been doing with my team mates for the DIY Intel Galileo class. The main aim of the project was to replicate the already existing projects on flying a Hubsan X4 using Arduino on an intel galileo gen 2 board.
The RX/TX circuit design was built using A7105 Trans receiver.
Our circuit connections using A7105 with Arduino pins. Pin numbers are for Arduino.
In the process of doing so we ended up first trying out using the available resources on an Arduino Uno board. The details of our project and how we proceeded using some existing libraries and circuit design are mentioned on our wiki page at: https://github.com/napsternxg/coptermanager-arduino/wiki
Getting the circuit to work with the code using Arduino Uno. I had to modify a bit of the excellent library written andihit at by https://github.com/andihit/coptermanager-arduino
Here is the demo:
This phase included getting the full fledged code working and we demoed it in our class. Here is the footage.
Using the https://github.com/andihit/coptermanager-simple library we have implemented the keyboard control solution for controlling the quad.
Issues with Intel Galileo Gen 2:
We wanted to port this same code and circuit on the Intel Galileo Gen 2 using its Arduino Pins.
However we faced a major issue in the SPI pin configuration. Pin 11 on the Galileo was not acting the same way as Pin 11 on the Arduino. We checked the voltage across major pins on both arduino and galileo and found the difference only on Pin 11 which is connected to the SDIO pin on A7105. The voltage on Pin 11 is 0 when using on a galileo but on arduino it gives a good 3.79 volts. We have detailed all that info on our Wiki page mentioned above.
Thanks a lot to my team mates Ishita and Abhinav for their effort in making this project a reality. Hopefully we will be able to get this running on galileo with some tweaks.