DIY flight recorder using any (NMEA) GPS - #1 Hardware

Mirumod, Macgyver, hull, cam, propeller, leg, cross, ball bearing mods... etc.
tmojo
Battery Charged
Posts: 5
Joined: 02 Dec 2014, 01:39
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by tmojo » 04 Dec 2014, 00:09

Thank you for your excellent work, pawelsky.

I'd like to add that a FT232 chipset can also be used with some minor changes.

As with the CP2102, modify the FT232 eeprom:
Change the Vendor ID of the FT232 adapter from 0403 to 19CF.
Leave the Product ID 6001, as is.
I changed the Product Description to "Flight Recorder" but I'm not entirely sure that is necessary.

Telnet into the drone and add the new 19CF:6001 id to the ftdi driver's list of known ids. This could be placed into /etc/init.d/rcS to be issued when the drone starts.

Code: Select all

echo 19CF 6001 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
Add a udev rule to /lib/udev/rules.d/01-ujuba-ardrone-accessories.rules:

Code: Select all

KERNEL=="ttyUSB*", ACTION=="add|change", ATTRS{idVendor}=="19cf", ATTRS{idProduct}=="6001", SYMLINK="gps%n", TAG+="JUBA", ENV{JUBA_STR_DEV_TYPE}="gps", IMPORT{program}="ujuba_usb", ENV{JUBA_STR_NAME}="Parrot GPS USB Dongle for AR.Drone 2.0 - DV", ENV{JUBA_STR_GPS_TTY}="%k", MODE="0666"
When the FT232 adapter is plugged in, the ftdi driver should load and the rest is as with the CP2102 chipset.

Cheers.
You do not have the required permissions to view the files attached to this post.
Last edited by tmojo on 04 Dec 2014, 00:39, edited 2 times in total.

pawelsky
Serious flight time
Posts: 1272
Joined: 02 Aug 2012, 22:01
Drone Type: Bebop
Location: Poland
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by pawelsky » 04 Dec 2014, 00:12

tmojo wrote:Thank you for your excellent work, pawelsky.

I'd like to add that a FT232 chipset can also be used with some minor changes.

As with the CP2102, modify the FT232 eeprom:
Change the Vendor ID of the FT232 adapter from 0403 to 19CF.
Leave the Product ID 6001, as is.
I changed the Product Description to "Flight Recorder" but I'm not entirely sure that is necessary.

Telnet into the AR.Drone and add the new 19CF:6001 id to the ftdi driver's list of known ids. This could be placed into /etc/init.d/rcS to be issued when the AR.Drone starts.

Code: Select all

echo 19CF 6001 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
Add a udev rule to /lib/udev/rules.d/01-ujuba-ardrone-accessories.rules:

Code: Select all

KERNEL=="ttyUSB*", ACTION=="add|change", ATTRS{idVendor}=="19cf", ATTRS{idProduct}=="6001", SYMLINK="gps%n", TAG+="JUBA", ENV{JUBA_STR_DEV_TYPE}="gps", IMPORT{program}="ujuba_usb", ENV{JUBA_STR_NAME}="Parrot GPS USB Dongle for AR.AR.Drone 2.0 - DV", ENV{JUBA_STR_GPS_TTY}="%k", MODE="0666"
When the FT232 adapter is plugged in, the ftdi driver should load and the rest is as with the CP2102 chipset.

Cheers.
Have you actually tried it? I've been doing similar experiments before but without success.

tmojo
Battery Charged
Posts: 5
Joined: 02 Dec 2014, 01:39
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by tmojo » 04 Dec 2014, 00:21

pawelsky wrote: Have you actually tried it? I've been doing similar experiments before but without success.
Yes. In fact it's plugged in and working as I type this.

pawelsky
Serious flight time
Posts: 1272
Joined: 02 Aug 2012, 22:01
Drone Type: Bebop
Location: Poland
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by pawelsky » 04 Dec 2014, 00:31

tmojo wrote:
pawelsky wrote: Have you actually tried it? I've been doing similar experiments before but without success.
Yes. In fact it's plugged in and working as I type this.
Nice. Did you try with Prolific adapter as well?

tmojo
Battery Charged
Posts: 5
Joined: 02 Dec 2014, 01:39
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by tmojo » 04 Dec 2014, 00:46

pawelsky wrote:
tmojo wrote:
pawelsky wrote: Have you actually tried it? I've been doing similar experiments before but without success.
Yes. In fact it's plugged in and working as I type this.
Nice. Did you try with Prolific adapter as well?
No, just the FT232 chipset. I assume it will work with any chipset if the Vendor ID can be changed to Parrot's 19CF.

I added a screenshot of the FreeFlight Status screen to the original post, in case it's drone version specific. But, it all works.

pawelsky
Serious flight time
Posts: 1272
Joined: 02 Aug 2012, 22:01
Drone Type: Bebop
Location: Poland
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by pawelsky » 04 Dec 2014, 00:50

tmojo wrote:No, just the FT232 chipset. I assume it will work with any chipset if the Vendor ID can be changed to Parrot's 19CF.
Well, all for which they have drivers included (I've noticed only SiLabs, Prolific and FTDI). Need to try with Prolific.

tmojo
Battery Charged
Posts: 5
Joined: 02 Dec 2014, 01:39
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by tmojo » 06 Dec 2014, 11:08

I tried a Prolific USB to Serial adapter (pl2303). It doesn't work.
On it's own, the kernel loads the driver correctly without a problem.
But when connected as a gps, it crashes the kernel. Which is not so good. I don't know why it wouldn't work like the FT232, or why it would actually segfault like that, but it does.

It's too bad. It would have been nice if a Prolific chipset worked.

pawelsky
Serious flight time
Posts: 1272
Joined: 02 Aug 2012, 22:01
Drone Type: Bebop
Location: Poland
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by pawelsky » 06 Dec 2014, 12:36

tmojo wrote:I tried a Prolific USB to Serial adapter (pl2303). It doesn't work.
On it's own, the kernel loads the driver correctly without a problem.
But when connected as a gps, it crashes the kernel. Which is not so good. I don't know why it wouldn't work like the FT232, or why it would actually segfault like that, but it does.
I had the same result when I've been testing that earlier. That's the reason I've switched to SiLabs...

johnsjungle
Newcomer
Posts: 1
Joined: 28 Dec 2014, 18:22
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by johnsjungle » 28 Dec 2014, 20:56

Hi I would like to try this gps mod and am finding the Arduino sketch ardrone_nmea_fr_20130805.zip attachment appears to be missing. I get the selected attachment doesn't exist anymore.

Is there another location to find this file.

Thanks

John

pawelsky
Serious flight time
Posts: 1272
Joined: 02 Aug 2012, 22:01
Drone Type: Bebop
Location: Poland
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by pawelsky » 28 Dec 2014, 21:11

johnsjungle wrote:Hi I would like to try this gps mod and am finding the Arduino sketch ardrone_nmea_fr_20130805.zip attachment appears to be missing. I get the selected attachment doesn't exist anymore.
Try contacting forum admin first. Looks like some files (such as attachments or avatars) are missing.

taraska
Newcomer
Posts: 3
Joined: 27 Dec 2014, 00:34
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #2 Assembly

Post by taraska » 16 Jan 2015, 20:07

pawelsky wrote:Connect everything as on the diagram below
Image
Hi, people. I'm newbie in deeps of electronics - please I beg the indulgence if my question is a nonsense.
I just want to understand - for what puporse ATMEGA328P used in this solution?
Why you don't connect gps directly to USB to TTL232 module?

pawelsky
Serious flight time
Posts: 1272
Joined: 02 Aug 2012, 22:01
Drone Type: Bebop
Location: Poland
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #2 Assembly

Post by pawelsky » 16 Jan 2015, 22:52

taraska wrote:for what puporse ATMEGA328P used in this solution?
To convert NMEA to SiRF binary

jasontang
Newcomer
Posts: 2
Joined: 20 Jan 2015, 07:22
Drone Type: Bebop
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by jasontang » 07 Feb 2015, 01:49

Thank you pawelsky for bringing us this mod!

Also thanks RemcoZ and pki79 for illustrating the configuration of the GPS module.

First time work with Arduino and a GPS module, took almost a week to do this. The Flight Recorder got 8 satellites at most during the testing (Neo-6m), can't wait to test it outside during the weekend.

Besides, I noticed the orientation of the Drone icon in FreeFlight app was not the same as the actual orientation of my Drone, anyone know what procedure am I missing? Thanks!
You do not have the required permissions to view the files attached to this post.
Last edited by jasontang on 07 Feb 2015, 03:59, edited 1 time in total.

pawelsky
Serious flight time
Posts: 1272
Joined: 02 Aug 2012, 22:01
Drone Type: Bebop
Location: Poland
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by pawelsky » 07 Feb 2015, 02:07

jasontang wrote:Besides, I noticed the orientation of the AR.Drone icon in FreeFlight app was not the same as the actual orientation of my AR.Drone, anyone know what procedure am I missing?
This is a known issue of the ARD (and nothing to do with this mod). Boot your drone and start the app when facing north.

jasontang
Newcomer
Posts: 2
Joined: 20 Jan 2015, 07:22
Drone Type: Bebop
Has thanked: 0
Been thanked: 0

Re: DIY flight recorder using any (NMEA) GPS - #1 Hardware

Post by jasontang » 07 Feb 2015, 03:56

I see! Thanks for your quick response pawelsky!

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests