Drone 1-2-3

From Technologia Incognita
Revision as of 12:24, 19 August 2015 by Cyberdutch (talk | contribs)
Jump to: navigation, search
Projects
Participants Cyberdutch
Skills RC planes, Arduino
Status Active
Niche Electronics
Purpose Fun
Logo91dronefinal.png


Drone 1-2-3: An autonomously flying wing glider

Drone 1-2-3 is a glider drone based on the Alula urban flying wing (parts already there), a Walkera WK-2801 PRO R/C (in my attic) and an Arduino based auto-pilot for stabilization and navigation.

The idea is to create a drone that can fly without any direct human intervention. Like the Indian surveillance drone that wanders the skies for years in Christopher Nolan's 2014 Sci-Fi film Interstellar.

vimeo.com: Drone Chase This is the scene where Cooper and his children, Tom and Murph, set out on a chase after this Indian drone.

So far the only parts that needed to be ordered were: A Mini APM v3.1 (ArduPilot 2.6) and an external compass/GPS (Ublox NEO 6M GPS HMC5883L). Total costs: Less than 47 euro, including (free) shipping and (delivery free of) taxes.


MAlulaevo.jpg


MWk2801.jpg


Mini apmv31.jpg Ublox gps.jpg


Steps in this project:

1. Build the plane (trim and fly)

2. Make it remotely controlled (R/C)

3. Teach it to fly autonomously


The secondary goal of this project is: Extended flight time (longer than a day?). The coexisting primary goals are planet domination, colonizing of space and sheer fun.


Feb 16, 2015 - R/C equipment tested - Check!

After not using it for 5 years, the Li-Po battery pack of the transmitter was showing no signs of life anymore. Luckily, I found an AA battery holder for 8 cells to replace it. For the time being that will do.

The (less critical) Ni-MH receiver battery was still in good condition. I charged/discharged it a few times and it holds approximately 286mAh x 4.8V (which is okay for an advertised nominal capacity of 300mAh).

Everything was connected, switched on, binded, and worked fine :-)


Batteryholder.jpg


Rcequip1.jpg


Specs Walkera WK-2801 PRO transmitter:

8-channel, 2.4G, output pulse 1100-1900Ms (1500 neutral)

100mW (10mW default) output power

230mA current drain

12V (8x 1.5V AA)


Specs Walkera RX-2801 PRO receiver (9.23g):

8-channel, 95dbm sensitivity, frequency interval >=4M


receiver battery (29.65g)

4.8V 300mAh (4x1.2V) Ni-MH


Specs micro Blue Bird BMS-306BB servos (2x 6.91gr):

torque 1.1kg/cm, speed 0.10sec/60deg


Feb 24, 2015 - Planned test flights (R/C) & Flying sites

Drone 1-2-3 is now ready for some flying tests.

I plan to start teaching the drone to fly autonomously only after thoroughly being tested and tuned. It should have proven stable flying characteristics in R/C controlled mode.


Dronerc.jpg


Drone 1-2-3 is controlled by ailerons (roll) and elevator (pitch) combined in a 2-servo delta wing setup. Roll and pitch are mixed electronically: One servo drives the left wing control surface and one servo drives the right wing control surface.


Suitable flying sites are scarce in Holland. But there are some promising places.

For park flying: Near the Sloterplas, Amsterdam

For slope soaring not far from Amsterdam: Zaandam (De Belt) or Haarlemmerliede (Mooie Nel)

For excellent slope soaring in the Netherlands: Zeeland (Zoutelande) (with south-west facing dunes of 30-50m high). This flying site is over 2hrs from Amsterdam, but with a season-discount-ticket from the NS the distance is (money wise) only 16 euros for a return ticket

vimeo.com: Highest dunes in the Netherlands The Dutch dunes in Zoutelande and Schoorl stand taller than 50m. Still very modest, compared to Big Daddy in Namibia, which measures a whopping 325m.


March 17, 2015 - Some real world flying (R/C) - Check!

After adding 15.74g lead to the nose, it was time for some real world flying!

Adding the lead was necessary in order to move the center of gravity forward to its proper spot near the leading edge of the wing. Later the lead can be replaced with batteries or other functional stuff. The total flying weight of the plane comes now to 158g. At a wing area of 16.7dm2, that implies a wing loading of 9.46g/dm2. The wing span of Drone 1-2-3 is 90cm.


Today in light spring air, Drone 1-2-3 made its maiden flight from the small slope near the Sloterplas.


Sloterplas.jpg


First few radio-controlled flights were somewhat challenging. But after the Drone's pitch was properly (electronically) trimmed, flying became a breeze. I didn't need to drive the plane all by myself anymore. Drone 1-2-3 showed stable flight characteristics, and steering inputs were accepted and processed well without revolting.


April 5, 2015 - More R/C flying, Starting with the ArduPilot hard/software & Ordering more parts

More R/C flying

Flythrow.png Flymills.png


Flyhi.png


Today Drone 1-2-3 was flown at 2-3 Beaufort (5.5-19.7 km/h) northerly winds from the Mooie Nel hill (25m high) in Haarlemmerliede.


Starting with the ArduPilot hard/software

With R/C flying working well it was time to start working on teaching Drone 1-2-3 to fly autonomously.

The Mini APM v3.1 (ArduPilot 2.6) and the external compass/GPS board (Ublox NEO 6M GPS HMC5883L) needed the following hardware modifications:


> Mini APM v3.1 - Disconnecting jumper 1

Mini apm1.jpg Ardupilotbox2.png

To disable the (buggy) internal compass on the main board (Mini APM v3.1) it is needed to disconnect jumper 1 (JP1). The jumper connection was broken with a small hobby knife. After that, the main board was put back in the protective case that came with it.


> External compass/GPS board - adding a 3.3V connection

Gpsoriginal3.jpg Gpsmodded4.png

To make it possible to power the external compass, the fourth (most right) pin of the connector for the compass on the external compass/GPS board was wired to an embedded wire on the circuit board itself to connect it to +3.3V. The insulation can be scraped off the circuit board with a knife. After that, it requires some precise soldering (PCB size is 36mm x 36mm!).

The correct location on the circuit board (to connect to +3.3V) is best seen by enlarging the left picture, which shows the embedded circuit wiring best.


> Mini APM v3.1 - installing firmware

After the hardware modifications were done, ArduPlane firmware was installed at the Mini APM v3.1:

First, Mission Planner software was downloaded and installed on a desktop computer and from there off ArduPlane v3.2 firmware was uploaded and installed onto the Mini APM. After finishing this, its on-board LEDs confirmed a correct install :-)

Detailed instructions for installing the firmware and working with Mission Planner can be found at the ArduPilot website.


Ordering more parts

The standard main board (Mini APM v3.1), which will be mounted near the center of gravity of the drone, carries the following sensors:

- 3-axis gyro (an Accelerometer that measures the acceleration forces electronically along its axis)

- Magnetometer (to support the gyro - combined data are filtered to get a more precise result)

- Pressure altimeter (Barometric pressure sensor)


The external board, which will be mounted in the wing of the drone at some distance from the receiver and servo noise, carries:

- Compass

- GPS (Ublox NEO 6M GPS HMC5883L)


Since it seems useful for Drone 1-2-3 to have information about airspeed (avoiding stalls) and battery state (extended flights) on top of the flight information which is available standardly, the following extra parts were ordered this week:


- Airspeed meter with splitter tube (compares the pressure of air blown in the pitot tube and static air)

Airspeedmeter.png Splittertube.png


- Power supply module with (BEC) 5V regulator (also senses current and battery voltage info)

Power supply module.png


At a cost of 35.40 euro including shipping for these two parts (most of it consumed by the nifty airspeed meter), the total amount of money spent on the Drone 1-2-3 project is 82 euro so far.


Putting the parts together

Mesh.jpg

Except for the Airspeed meter, all the separate hardware parts have been put together and were transferred into one single nervous system. Now, the parts are successfully communicating with the Mission Planner software, with the RC transmitter, and with each other.


Scheme11.png


The next step

When embedding the hardware into Drone 1-2-3's wing is finished, the project will move from indoor hardware centered to outdoor software centered.

The main focus will be on scripting and testing autonomous flying.


Alula bird.png


Aug 18, 2015 - Oops! One step back

When the the Walkera transmitter and receiver are switched ON, the two do pair/bind as expected. But, often the transmitter-receiver combination becomes unstable after about half a minute for a few seconds. Then, it recovers, but leaves the auto-pilot system (APM and GPS/Compass) in a permanent confused state. It looks as if this problem has to do with an excessive power drain during these seconds.

After reconnecting and testing the hardware several times using only basic hardware components (no compass or GPS), I found a quick and dirty solution. If the Mini APM is fed from an independent power source during its "unstable seconds", it doesn't become permanently confused anymore.

Picture... A day saver: an old USB External Powerbank Battery for a cellular phone

Now that things are working fine and can be kept that way by carrying an USB powerbank in my flight-box, I decided to continue flying and testing Drone 1-2-3 for a while using the current very basic hardware setup. So what are the consequences of this compass-less and GPS-less approach for autonomously flying?

For stabilization, this is not much of a difference. The 3-axis accelerometer of the APM handles flight behavior fine. Even without a compass, Drone 1-2-3 holds direction (yaw) in an acceptable way.

For navigation, that's a different story. Its map-orientational skills are comparable to those of my mother-in-law without a TomTom. Without GPS it definitely needs some form of manual guidance.


Aug 19, 2015 - Comparing R/C flying to (currently limited) autonomous flying

...


Drone 1-2-3 is a project run in collaboration with Almere hackerspace Sk1llz