convert Mavlink (APM & MPNG) to Frsky

All mods related to the frsky telemetry series of the firmware
kone
Posts: 42
Joined: Sun Mar 04, 2012 9:34 pm
Country: -

convert Mavlink (APM & MPNG) to Frsky

Post by kone »

Hi!

I recently recognized following article http://diydrones.com/profiles/blogs/jdr ... board-v1-0
They use an atmel328P to convert Mavlink to Frsky Telemetry Protocol.

Tried at home with an arduino nano and it works out of the box.
- Download jD-IOBoard software from http://code.google.com/p/arducodes/downloads/list
- extract the file and put the libraries into the libraries subfolder of your arduino installation
- open the project jD_IOBoard_FrSkyMAVLink and load it on to your ardunio nano/pro mini.
- connect FTDI port of the arduino with the Telemetry port on your APM (I have a Crius AIOP with MegaPirateNG2.7 that uses S3 for that)
- connect D5 and D6 with the telemetry port on your Receiver (I tested with a Frsky D4R-II)

My Turningy 9x with Frsky Telemetry mod is showing now several data from my QuadCopter. Unfortunatly I could not get GPS-fix indoors yesterday evening when testing, but barometer temperature, height, voltage is shown properly. So, I guess it will work with GPS (coordinates, speed, distance) as well.

MegaPirateNG announced to bring Frsky protocol on S3 soon, so no need for additional hardware.
Not sure about APM, but hey; an arduino pro mini clone is about 9 USD on ebay...

greetings from vienna,
christian
Attachments
P1020131.JPG

User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

That pretty awesome... Great work!
Custom 9x with M64/Telemetry Mod
User avatar
GTiDon
Posts: 177
Joined: Wed Mar 28, 2012 6:15 am
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by GTiDon »

Would this only work one way or both?

If you have a bluetooth module connected to your radio can this connect the data to a pc?

and then replace the need for a data modem radio?
Er9X Flashed
Speaker Mod Done
Haptic Feedback Mod Done
Telemetry Mod Done with FRSky TTL Lite
Voice Mod Done with Emartee Board
HK Backlight Done
FRSky Telemetry DIY Module Installed
----All these mods removed and installed Sky 3.0 board with DJT Module.
kone
Posts: 42
Joined: Sun Mar 04, 2012 9:34 pm
Country: -

Re: AW: convert Mavlink (APM & MPNG) to Frsky

Post by kone »

This solution provides Telemetry data in Frsky format through Frsky telemetry channel. You cannot replace 3dr radio with that.
Reason is the limited speed (baud rate) and the fact Frsky protocol is used not Mavlink.
2 way is possible, but I don't know whats the use for it yet on frsky. probably reserved for the future...

regards from winter woderland vienna
User avatar
GTiDon
Posts: 177
Joined: Wed Mar 28, 2012 6:15 am
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by GTiDon »

With the MPNG Frsky protocol now completed, Can I do the connection with a FrSky Lite TTL Converter?
Er9X Flashed
Speaker Mod Done
Haptic Feedback Mod Done
Telemetry Mod Done with FRSky TTL Lite
Voice Mod Done with Emartee Board
HK Backlight Done
FRSky Telemetry DIY Module Installed
----All these mods removed and installed Sky 3.0 board with DJT Module.

kone
Posts: 42
Joined: Sun Mar 04, 2012 9:34 pm
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by kone »

i think I read somewhere on rcgroups.com a transistor is enough for that on the MPNG...
User avatar
kaos
Posts: 3247
Joined: Wed Dec 28, 2011 1:15 am
Country: United States

Re: convert Mavlink (APM & MPNG) to Frsky

Post by kaos »

I assume this will work on any mega2560 control board? that would be great, no need for frysky sensors any more on quads or drones. ;)
User avatar
GTiDon
Posts: 177
Joined: Wed Mar 28, 2012 6:15 am
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by GTiDon »

So can the FRsky Lite be used?
Er9X Flashed
Speaker Mod Done
Haptic Feedback Mod Done
Telemetry Mod Done with FRSky TTL Lite
Voice Mod Done with Emartee Board
HK Backlight Done
FRSky Telemetry DIY Module Installed
----All these mods removed and installed Sky 3.0 board with DJT Module.
kone
Posts: 42
Joined: Sun Mar 04, 2012 9:34 pm
Country: -

Re: AW: convert Mavlink (APM & MPNG) to Frsky

Post by kone »

kaos wrote:I assume this will work on any mega2560 control board? that would be great, no need for frysky sensors any more on quads or drones. ;)
It works only with APM and MPNG, since it has only be implemented there. I personally prefer the use of a dedicated Arduino Pro Mini because it works on both APM and MPNG the same way. MPNG direct implementation I don't have any experince with...
User avatar
Ozzy
Posts: 92
Joined: Sun Jul 08, 2012 7:57 am
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by Ozzy »

kone wrote:Hi!

I recently recognized following article http://diydrones.com/profiles/blogs/jdr ... board-v1-0
They use an atmel328P to convert Mavlink to Frsky Telemetry Protocol.

Tried at home with an arduino nano and it works out of the box.
- Download jD-IOBoard software from http://code.google.com/p/arducodes/downloads/list
- extract the file and put the libraries into the libraries subfolder of your arduino installation
- open the project jD_IOBoard_FrSkyMAVLink and load it on to your ardunio nano/pro mini.
- connect FTDI port of the arduino with the Telemetry port on your APM (I have a Crius AIOP with MegaPirateNG2.7 that uses S3 for that)
- connect D5 and D6 with the telemetry port on your Receiver (I tested with a Frsky D4R-II)

My Turningy 9x with Frsky Telemetry mod is showing now several data from my QuadCopter. Unfortunatly I could not get GPS-fix indoors yesterday evening when testing, but barometer temperature, height, voltage is shown properly. So, I guess it will work with GPS (coordinates, speed, distance) as well.

MegaPirateNG announced to bring Frsky protocol on S3 soon, so no need for additional hardware.
Not sure about APM, but hey; an arduino pro mini clone is about 9 USD on ebay...

greetings from vienna,
christian
I have a few questions.

I have APM 2.5.2, with Mavlink (915MHz) telemetry, MavlinkOSD, can I add this (Mavlink to FrSky telemetry) all three at the same time?

I guess I just connect telemetry Tx from APM 2.5 to both Rx on OSD and Mavlink to FrSky, is this correct?

I loaded the "jD-IOBoard-191012.zip" dated Oct 2012, but I noticed a newer .HEX file called, "jD_IOBoard_FrSkyMAVLink.v03a.hex" dated Jul 26 (2013). Looks like it would be better to load this file correct (with a USBasp programmer though SPI connection)?

Thanks in advance!
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

Hello. The answer is yes.
JD-IOSplitter.
I built one, but you can buy it too. Not very expensive.
I have telem radios/osd/IOBoard all working at once.
Custom 9x with M64/Telemetry Mod
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

LTMNO wrote:Hello. The answer is yes.
JD-IOSplitter.
I built one, but you can buy it too. Not very expensive.
I have telem radios/osd/IOBoard all working at once.
p.s. v.04a is out too.
Custom 9x with M64/Telemetry Mod
bobarry
Posts: 29
Joined: Mon Jul 22, 2013 4:30 am
Country: -
Location: Harrisburg, NC

Re: convert Mavlink (APM & MPNG) to Frsky

Post by bobarry »

Do you have D5 on JD-IO connected to TX line on the Receiver? What is on your er9x display? GPS, altitude
?

Sent from my SCH-I545 using Tapatalk
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

Wiring Diagram.png
Take a look at this diagram, that should help.
As for the display, I am currently showing everything that is available from IOBoard

Values that are running and known to be correct:

Accel - X, Y, Z = Accelerometer values, -+ values
Temperature 1 = Flight controller internal temperature, Celsius
Temperature 2 = Visible satellite count and GPS Fix style, 2-3 digits where LAST digit is fix status 0-1 No fix, 2 2D Fix, 3 3D Fix. FRONT digits are amount of satellites. For example "63" = 6 satellites, 3D FIx or "103" is 10 satellites, 3D fix or "32" = 3 satellites, 2D fix
Heading = Your current compass heading
RPM = Armed/Disarmed status and approximate throttle value when armed. 0 = Disarmed/Motors off, Values between 1020 - 1960 are shown when motors are armed and throttle position. Number represents pulse width so for example around 1500 is middle throttle. This value is NOT exactly same what Mission Planner might show for your throttle channel as we need to use special scaling made by FrSky but it's close to it. Accuracy is -+30 uS.
Altitude = Altitude detected by your flight controller (works on tabletop tests, not confirmed on real flight yet. Anyone??)
Lat/Lon = GPS Latitude/Longitude details with N/S, W/E indicators
Time = Sec/Min/Hours since last reboot of IOBoard
Things that needs to be fixed/confirmed are:
Voltage = Battery voltage. It seems to work but startis drifting after awhile.
Current = It's seen by IOBoard but not forwarded correctly
Fuel Level = Seen by IOBoard but not confirmed yet
Speed = Seen by IOBoard but not confirmed yet

There is also a great thread on the DIYDrones Site..
http://diydrones.com/profiles/blogs/add ... to-ioboard

Cheers
Custom 9x with M64/Telemetry Mod
User avatar
Ozzy
Posts: 92
Joined: Sun Jul 08, 2012 7:57 am
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by Ozzy »

LTMNO wrote:Hello. The answer is yes.
JD-IOSplitter.
I built one, but you can buy it too. Not very expensive.
I have telem radios/osd/IOBoard all working at once.
Would you have a schematic? TIA!
arseni
Posts: 9
Joined: Sat Sep 21, 2013 7:33 pm
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by arseni »

LTMNO wrote:p.s. v.04a is out too.
I only see 03a in repository :(
(Latest .hex file is 03a, and on SVN the file "jD_IOBoard_FrSkyMAVLink.ino" has "Version : V0.3a-FrSky, July 26 2013")

Is there any way to obtain 04a?

EDIT>>
Found it (moved to GitHub): https://github.com/jdrones/jD-IOBoard/t ... r/BINARIES
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

Ozzy wrote:
LTMNO wrote:Hello. The answer is yes.
JD-IOSplitter.
I built one, but you can buy it too. Not very expensive.
I have telem radios/osd/IOBoard all working at once.
Would you have a schematic? TIA!
sorry, just getting this now... on the thread at DIY, it is posted.. at the moment its not showing my ipad and I was going to cut and past to you... but i have made one modification to the board.... i will update in photoshop and send it to you.

cheers.
Custom 9x with M64/Telemetry Mod
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

iosplitter copy.jpg
Custom 9x with M64/Telemetry Mod
bobarry
Posts: 29
Joined: Mon Jul 22, 2013 4:30 am
Country: -
Location: Harrisburg, NC

Re: convert Mavlink (APM & MPNG) to Frsky

Post by bobarry »

Version 5 is available for the Mavlink Telemetry mod. Now to figure out which of the outputs is the compass heading. GPS coords work!

Sent from my SCH-I545 using Tapatalk
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

Accel - X, Y, Z = Accelerometer values, -+ values
Temperature 1 = Flight controller internal temperature, Celsius
Temperature 2 = Visible satellite count and GPS Fix style, 2-3 digits where LAST digit is fix status 0-1 No fix, 2 2D Fix, 3 3D Fix. FRONT digits are amount of satellites. For example "63" = 6 satellites, 3D FIx or "103" is 10 satellites, 3D fix or "32" = 3 satellites, 2D fix
Heading = Your current compass heading
RPM = Armed/Disarmed status and approximate throttle value when armed. 0 = Disarmed/Motors off, Values between 1020 - 1960 are shown when motors are armed and throttle position. Number represents pulse width so for example around 1500 is middle throttle. This value is NOT exactly same what Mission Planner might show for your throttle channel as we need to use special scaling made by FrSky but it's close to it. Accuracy is -+30 uS.
Altitude = Altitude detected by your flight controller (works on tabletop tests, not confirmed on real flight yet. Anyone??)
Lat/Lon = GPS Latitude/Longitude details with N/S, W/E indicators
Time = Sec/Min/Hours since last reboot of IOBoard
Custom 9x with M64/Telemetry Mod
juliogdiana
Posts: 3
Joined: Wed Dec 04, 2013 8:56 am
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by juliogdiana »

Hi all,
I have flashed a new MPNG 3.0.1 r2 into my Crius V1.1
I would like to know how to connect the telemetry for FrSky D8r Rx
I don`t have Bluetooth module or OSD on my quad.

Thanks a lot

Regards
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: convert Mavlink (APM & MPNG) to Frsky

Post by Rob Thomson »

Pretty sure post 14 in this thread has a wiring guide?

Sent from my GT-I9300 using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

@jullogdiana
Not sure if MPNG is running on APM?
if so, the diagram above is the only way to integrate FrSky to APM via the IO-Board.
if you just want FrSky Telem.. then you need to get a FrSky Hub and just connect that to your Receiver.
Custom 9x with M64/Telemetry Mod
bobarry
Posts: 29
Joined: Mon Jul 22, 2013 4:30 am
Country: -
Location: Harrisburg, NC

Re: Jd_ioboard hookup, one more time! Help

Post by bobarry »

Going crazy on this one. I cannot get the COMPASS HEADING to display.
Tried using r804 & 808, and versions 03a & 04a of the hex files.
GPS coords & more show, but nothing that looks like heading is available.

Hookup questions. I have the APM telemetry TX connected to the 3dr telemetry (RX) & to the RX line of the IO board. The APM RX line is connected to ONLY the 3dr telemetry. (can't put tx signals in parallel)
D5 on the IO is connected to the er9x RX line. Connection of D6 to the er9x TX does what? Does the IO board do something with the data? It can't send it down to the APM since that line has data from the 3dr coming in.

I've done everything except load the latest(?) ver. 05 hex file into the IO board.

Any help greatly appreciated, since I'm banking on the COMPASS heading to tell me which damn direction my quad is flying. Yes, I'm totally new and should be using the simulator to learn. :)
Bo

Sent from my SCH-I905 using Tapatalk 4
juliogdiana
Posts: 3
Joined: Wed Dec 04, 2013 8:56 am
Country: -

Re: convert Mavlink (APM & MPNG) to Frsky

Post by juliogdiana »

Hi all,

I have a Arduino Pro mini, anyone knows what pins I have to use to my RX, it doens`t have D5 or D6, only numbers at one side and A0, A1, A2 etc on another side.

Thanks for help
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

HI Juliogdiana,

Image

It should be the Digital Pin 5 and Pin 6 labelled 5 and 6 on the left side of this image.

Hope that helps.
Custom 9x with M64/Telemetry Mod
bobarry
Posts: 29
Joined: Mon Jul 22, 2013 4:30 am
Country: -
Location: Harrisburg, NC

Re: convert Mavlink (APM & MPNG) to Frsky

Post by bobarry »

I have my wiring figured out, using an Arduino Mini Pro for the telemetry but cannot get the HEADING to be displayed (as is indicated as available in the docs).
I have tried every variable available while rotating the quad and see no direction or heading change. GPS coords and a few other variables work.

Would someone who has this working please clue me in! I'm totally stuck. I have ver. 04a software loaded in the board and er9x-r808 loaded. FRSKY NT
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: convert Mavlink (APM & MPNG) to Frsky

Post by LTMNO »

bobarry wrote:I have my wiring figured out, using an Arduino Mini Pro for the telemetry but cannot get the HEADING to be displayed (as is indicated as available in the docs).
I have tried every variable available while rotating the quad and see no direction or heading change. GPS coords and a few other variables work.

Would someone who has this working please clue me in! I'm totally stuck. I have ver. 04a software loaded in the board and er9x-r808 loaded. FRSKY NT
I would try to update to the latest rev....
Yani, has been putting fixes in there all the time.
Custom 9x with M64/Telemetry Mod
bobarry
Posts: 29
Joined: Mon Jul 22, 2013 4:30 am
Country: -
Location: Harrisburg, NC

Re: convert Mavlink (APM & MPNG) to Frsky

Post by bobarry »

Thanks for the response. I'm fairly sure 04a is the latest. Someone said the 05 listed wasn't for the Telemetry. I'll look at it again. The source code has Heading listed as one of the parameters, but is too complex for me to compile it myself.

Sent from my SCH-I545 using Tapatalk
bobarry
Posts: 29
Joined: Mon Jul 22, 2013 4:30 am
Country: -
Location: Harrisburg, NC

Re: convert Mavlink (APM & MPNG) to Frsky

Post by bobarry »

Whoops, some 'progress'. Installed ver. 5 and now I get RPM (1560) & FUEL (-1). :) No heading & no data changes as I rotate the quad. (I really miss my days as an experienced programmer & designer. Getting old + the new technology makes it tough) Thanks again. Bo

Sent from my SCH-I545 using Tapatalk

Post Reply

Return to “FRSky Telemetry Mods”