ESC telemetry to Frsky Smartport with Arduino Pro Mini

Electronic projects that are either related to the firmwares for the 9x, or simply great for radio control applications.
Post Reply
DanielGA
Posts: 29
Joined: Sat Mar 19, 2016 10:44 am
Country: Spain

ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by DanielGA » Mon May 13, 2019 9:22 am

This is a DIY project to send ESC telemetry and optionally other sensors to Frsky Smartport using an Arduino Pro Mini 168 or 328P (3.3v or 5v)
The input is either ESC serial data or PWM signal

ESC protocols implemented:

- Hobbywing Platinum V3: RPM
- Hobbywing Platinum V4, Hobbywing Flyfun V5: RPM, temperature, voltage and current
- PWM signal: RPM

Average cell voltage for HW V4/V5 is calculated for 3S,4S,5S,6S,7S,8S,10S and 12S batteries. Two seconds after power on cell count is autodetected and fixed (average cell voltage to be >3.8v for proper cell count)

Optionally you can add the following analog sensors:

- 2 x voltage divider can be added to read the battery voltage
- Current sensor
- 2 x temperature sensors (thermistors)

Image

The Arduino is configured from Opentx with a lua script (X7, X9, X-lite and Horus with Opentx 2.2 or higher)

Image

The project is available on Github:

https://github.com/dgatf/esc_smartport

[img]./images/top.jpg[img]
Video:

https://youtu.be/Mby2rlmAMlU

Cheers,
Daniel

Edit: v0.3.1 available


DanielGA
Posts: 29
Joined: Sat Mar 19, 2016 10:44 am
Country: Spain

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by DanielGA » Wed Feb 26, 2020 11:52 am

Version v0.4 available:

- Support for change_id_frsky to change the sensor id
- Support for I2C sensors
- Improved code quality and performance
- Smartport_library improved performance and abstract from the smartport protocol

Project name changed to MSRC

DanielGA
Posts: 29
Joined: Sat Mar 19, 2016 10:44 am
Country: Spain

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by DanielGA » Fri May 08, 2020 7:16 pm

Version 0.5 available:

- Added support for castle link protocol

JimSorenson
Posts: 1
Joined: Mon May 25, 2020 9:25 pm
Country: -

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by JimSorenson » Mon May 25, 2020 9:28 pm

I just found this, and I love projects like this! I previously did the DX5E module conversion for my Taranis Pro. This will be my next project so that I can get proper use out of the HobbyWing controller. Thanks for figuring this out.

- Jim

michel49
Posts: 183
Joined: Sun Oct 07, 2012 10:59 am
Country: -

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by michel49 » Tue May 26, 2020 8:38 am

Hi,

Do you think it will work with Super Brain/ Hifei Esc ?


DanielGA
Posts: 29
Joined: Sat Mar 19, 2016 10:44 am
Country: Spain

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by DanielGA » Sun May 31, 2020 6:48 pm

Thanks Jim

Michel, no it doesnt support Hifei esc, but I could implement it. There are two options for this, either I get the protocol description (easier) or you can use the sniffer tool (under tools folder)to read the telemetry, send it to me and I'll try to reverse engineer it, like I did for the hw, this is the harder way. I'm assuming it is based on serial comm

Andrea76it
Posts: 4
Joined: Wed Apr 22, 2020 12:04 pm
Country: -

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by Andrea76it » Sun Jun 21, 2020 10:24 am

Hi, it's a very interesting project.
I would like to contribute, because I would like to add the HOTT Graupner ESCs. I analyzed the problem and I saw that the Graupner ESCs need a complete serial communication Rx and Tx. Now I study your libraries and update you.
Andrea

stefaanbolle
Posts: 4
Joined: Thu Dec 19, 2019 8:39 am
Country: -

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by stefaanbolle » Mon Nov 09, 2020 7:59 pm

Great project!
How do you choose between serial and PWM signal for telemetry with the Hobbywing Platinum v4 pro? When using PWM signal, you can at the same time add a gps via the only available uart port to the board, correct?
It is not clear to me what lead to use from the Hobbywing to the Arduino mini pro to use PWM signal for telemetry.

DanielGA
Posts: 29
Joined: Sat Mar 19, 2016 10:44 am
Country: Spain

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by DanielGA » Tue Nov 10, 2020 7:08 pm

stefaanbolle wrote:
Mon Nov 09, 2020 7:59 pm
Great project!
How do you choose between serial and PWM signal for telemetry with the Hobbywing Platinum v4 pro? When using PWM signal, you can at the same time add a gps via the only available uart port to the board, correct?
It is not clear to me what lead to use from the Hobbywing to the Arduino mini pro to use PWM signal for telemetry.
Answer on helifreak

stefaanbolle
Posts: 4
Joined: Thu Dec 19, 2019 8:39 am
Country: -

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by stefaanbolle » Tue Nov 10, 2020 7:44 pm

Thanks!

Jogi
Posts: 1
Joined: Wed Apr 07, 2021 8:36 pm
Country: -

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by Jogi » Wed Apr 07, 2021 9:14 pm

Thank you for this incredible project.
I use speed and voltage to display these values and generate messages. This is very helpful.
I use the HW V4 and the remark at Github confused me, because the program port is the telemetry connection here.
Best regards

User avatar
Hobby4Life
Posts: 8
Joined: Tue Oct 01, 2019 6:11 pm
Country: -
Contact:

Issue: No telemetry data Kontronik Jive.

Post by Hobby4Life » Thu Apr 15, 2021 8:04 pm

Hi all, I have some issues getting a Kontronik Jive 100LV to work.

TX: Frsky X10S Express
RX: X4R (Smartport)

I have Smartport running, configured it with the lua script to use the Kontronik Protocol.
That works.. got all sensors discovered.

Connected the Jive to RX0 of my Nano.

I see there is data coming in (led on arduino blinks).. but not passed thru to smartport..

I know the telemetry port works, because I use a Jlog S32 logger to read out it's telemetry.

Am I missing something?

I also tried a Pro Mini 328 @ 3.3v 8Mhz as suggested but nothing..
Smartport YES - Kontronik readings NO

I have used the sniffer tool to monitor the jive output.
All baudrates except 115200bd show data.

I assume the jive's dont sent out telemetry @ 115200bd, but more like 9600bd
Gr. Björn
www.hobby4Life.nl

Meniu
Posts: 1
Joined: Thu Apr 22, 2021 8:05 pm
Country: -

Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini

Post by Meniu » Thu Apr 22, 2021 8:22 pm

Hello Daniel.

Very nice project congratulation.
I have TX RAdiomaster, RX FR sky X8R receiver
board Arduino Pro Mini,Atmega 328P

I Programmed board, opened Lua sript in TX.
But I have connecting and not connected and search new sensors.

What I do wrong?

Robert


DanielGA wrote:
Mon May 13, 2019 9:22 am
This is a DIY project to send ESC telemetry and optionally other sensors to Frsky Smartport using an Arduino Pro Mini 168 or 328P (3.3v or 5v)
The input is either ESC serial data or PWM signal

ESC protocols implemented:

- Hobbywing Platinum V3: RPM
- Hobbywing Platinum V4, Hobbywing Flyfun V5: RPM, temperature, voltage and current
- PWM signal: RPM

Average cell voltage for HW V4/V5 is calculated for 3S,4S,5S,6S,7S,8S,10S and 12S batteries. Two seconds after power on cell count is autodetected and fixed (average cell voltage to be >3.8v for proper cell count)

Optionally you can add the following analog sensors:

- 2 x voltage divider can be added to read the battery voltage
- Current sensor
- 2 x temperature sensors (thermistors)

Image

The Arduino is configured from Opentx with a lua script (X7, X9, X-lite and Horus with Opentx 2.2 or higher)

Image

The project is available on Github:

https://github.com/dgatf/esc_smartport

[img]./images/top.jpg[img]
Video:

https://youtu.be/Mby2rlmAMlU

Cheers,
Daniel

Edit: v0.3.1 available


Post Reply

Return to “General RC Electronic Projects and Discussion”