All posts by admin

Review of the 3DR X8+ Unmanned Aerial Drone Multicopter

As most of you know, I teach High School Engineering, so I am always looking for exciting platforms from which I can make Match, Physics, Engineering and Programming Fun and Exciting. I have done a lot of work with Edge of Space Ballooning, but was looking for something that would allow more flights, and more COL (Cycles of Learning) per year.

I think I have happened onto something that might be the ultimate Engineering teaching tool for High School. This is the 3DR X8+ Unmanned Aerial Drone.

I have spent about six months working with this unit, and am very excited about it. I consider it to be an exceptional teaching platform and the students like it.

This is something they have to put together, read instructions carefully, and learn in order to get it up and running. This though, is one of the things I like about it. We need to teach Engineering, and some of the really ready to fly out of the box drones like the Phantom are fun, but do not offer the same educational opportunities.

I have gotten excellent technical support from 3DR when I hit a snag I can not figure out. We have had dozens of successful flights on this platform, and are now starting to build our own instrument packages to fly on it.

It requires attention, but mastering the use of this unit is well withen the skill set of motivated High School Students.

I do plan on doing lessons on some of the things we do with this drone in the future.

Beaglebone Black GPS Tracker LESSON 5: Displaying Data from GPS in Google Earth

Google Earth GPS
Example of GPS Data displayed in Google Earth

In the earlier lessons in this series we learned how to hook the Adafruit Ultimate GPS up to the Beaglebone Black. In these lessons we got the hardware working, got to the point we could take data, and then got the NMEA sentences parsed, so that we could display understandable data for Latitude, Longitude, and Altitude. In this lesson we will show you how to create a GPS tracker, by logging your GPS data to a file on the Beaglebone Black. Then when you get back home, you can load the data into google earth to see an interactive view of where you have been.

The video shows step-by-step how to get the code working, starting with the code we developed in Lesson 3. We end up with the following program:

 This program should create a file on the Beaglebone Black, and track your longitude, latitude and altitude.

In order to view the file on Google Earth, you will want to put a KMZ wrapper on the coordinates. A reasonable KMZ wrapper is below. Simply take your coordinates from the program above, and paste them in the file below, in the area between <coordinates> and </coordinates>

 

Beaglebone Black GPS Tracker LESSON 4: Easily Transfer Files Between Beaglebone and PC

One of the things that surprised me about the Beaglebone Black is that it does not come with any simple, direct way to transfer files back and forth with a PC. For our GPS project, we will need to transfer our logged GPS data from the Beaglebone Black to the PC. What I have found is the easiest way to transfer files is using WINscp. You can download this software at:

http://winscp.net/eng/download.php

Download and install the software, which takes just a few minutes. One downloaded, launch the program. You will see a window like this:

WINscp
Login Screen for WINscp

Under  host name, you will want to put the IP address of your Beaglebone Black. If you do not know the IP address, we explain how to get it in LESSON 2.

For the default Beaglebone Black configuration, the username is root, and there is no password. Fill in these blanks, and then click “Login”.

That should take you to this screen:

WINscp
WINscp Dashboard

At this point the right panel is a view of your Beaglebone Black files. You can navigate by clicking on the folders. An the left is your PC files. You can drag and drop files between the two panels to transfer them to and from the PC and Beaglebone Black.

Beaglebone Black GPS Tracker LESSON 3: Parsing the NMEA Sentences in Python

Beaglebone GPS
Beaglebone Black connected to the Adafruit Ultimate GPS

In the first two lessons in this series, you learned how to hook the Beaglebone Black to the Adafruit Ultimate GPS breakout board. We then learned to read NMEA sentences from the GPS, and how to control the data the GPS spits out. In this lesson we will learn to parse the NMEA sentences into useful data. You need to make sure you go back and review the first two lessons, as this one draws heavily on those. Also, you need to start with the code we had developed in LESSON 2. (If you need the gear we are using, you can get the Beaglebone Black HERE, and you can get the Adafruit GPS HERE.)

In this code we move most of the work up into our GPS class. That makes the main part of the program simple and intuitive to use.

 

Beaglebone Black GPS LESSON 2: Sending Commands to the Adafruit GPS Module

Adafruit GPS
Adafruit Ultimate GPS Connected to the Beaglebone Blak

In lesson 1 we showed you how to connect the Adafruit Ultimate GPS breakout board to the Beaglebone Black and how to read the NMEA sentences streaming off the GPS over the UART pins. In this lesson we will show you how to send commands to the GPS to better tailor its operation for our needs. There are a number of commands that can be sent to it. Some of the things we we can control are the baud rate it communicates at, and the rate that it takes and sends data. We can also influence which NMEA sentences it sends.  In this video we will go over the different commands we can use.

To review, you should connect the GPS as follows:

Beaglebone GPS
Adafruit Ultimate GPS connected to the Beaglebone Black Rev C Microcontroller

The video explains the code step-by-step, but here it is for your reference.

This code sets the GPS to communicate at baud rate of 57600, and set it to read and report 5 readings a second. It then sets the GPS to only report the $GPRMC and the $GPGGA sentences. It then constantly reads and reports the NMEA sentences.