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: 28
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: 28
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: 28
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: 139
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: 28
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


Post Reply

Return to “General RC Electronic Projects and Discussion”