ESC telemetry to Frsky Smartport with Arduino Pro Mini
ESC telemetry to Frsky Smartport with Arduino Pro Mini
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)
The Arduino is configured from Opentx with a lua script (X7, X9, X-lite and Horus with Opentx 2.2 or higher)
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
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)
The Arduino is configured from Opentx with a lua script (X7, X9, X-lite and Horus with Opentx 2.2 or higher)
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
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
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
- 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
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Version 0.5 available:
- Added support for castle link protocol
- Added support for castle link protocol
-
- Posts: 1
- Joined: Mon May 25, 2020 9:25 pm
- Country: -
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
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
- Jim
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Hi,
Do you think it will work with Super Brain/ Hifei Esc ?
Do you think it will work with Super Brain/ Hifei Esc ?
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
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
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
-
- Posts: 4
- Joined: Wed Apr 22, 2020 12:04 pm
- Country: -
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
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
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
-
- Posts: 4
- Joined: Thu Dec 19, 2019 8:39 am
- Country: -
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
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.
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.
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Answer on helifreakstefaanbolle 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.
-
- Posts: 4
- Joined: Thu Dec 19, 2019 8:39 am
- Country: -
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
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
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
- Hobby4Life
- Posts: 11
- Joined: Tue Oct 01, 2019 6:11 pm
- Country: -
- Contact:
Issue: No telemetry data Kontronik Jive.
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
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
www.hobby4Life.nl
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
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
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)
The Arduino is configured from Opentx with a lua script (X7, X9, X-lite and Horus with Opentx 2.2 or higher)
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
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Hi
Just found the project and love it!
Will it support Jetti protocol?
Sent from my iPhone using Tapatalk
Just found the project and love it!
Will it support Jetti protocol?
Sent from my iPhone using Tapatalk
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Yes. Jeti Ex Bus support has been added. Still may need some testing tough
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Hi
It's a amazing project but I'm wondering for what?
The only thing who is not supported by frsky is RPM.
There are sensors for everything else from frsky!
It's a amazing project but I'm wondering for what?
The only thing who is not supported by frsky is RPM.
There are sensors for everything else from frsky!
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Because why would you add more sensors with the associated costs and extra wiring when all the info's already available from the ESC?
Re: RE: Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Shure, this I don't think of it but it depends on the model you have.Kilrah wrote:Because why would you add more sensors with the associated costs and extra wiring when all the info's already available from the ESC?
The place in the model is for me a reason to think of it. I have a Crawler and enough room for extra wiring and sensors. But in a rc heli is less space to use!
Re: RE: ESC telemetry to Frsky Smartport with Arduino Pro Mini
HiDanielGA wrote: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)
The Arduino is configured from Opentx with a lua script (X7, X9, X-lite and Horus with Opentx 2.2 or higher)
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
Tell us please what hardware you are using in the video?
Thanks
Re: RE: ESC telemetry to Frsky Smartport with Arduino Pro Mini
There I used an Arduino Pro Mini. Unless you use with Castle Link or need to add a second serial sensor like gps, the Pro Mini is enough. The esc is a Hobbywing V3 and the radio system is Frsky. That was test for the pwm out generated from the serial rpm
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Hi,
just found this project coming from OpenXSensor, but I want to use a atmega32u4. Just testing on a leonardo for now.
I tried compiling/linking/uploading the code with just voltage 1 & 2 enabled for the frsky smartport protocol.
I get the following error saying my sketch is to big...
I tried commenting out the includes that are not needed in msrc.h but that didn't change the size...
just found this project coming from OpenXSensor, but I want to use a atmega32u4. Just testing on a leonardo for now.
I tried compiling/linking/uploading the code with just voltage 1 & 2 enabled for the frsky smartport protocol.
I get the following error saying my sketch is to big...
Code: Select all
De schets gebruikt 32384 bytes (112%) programma-opslagruimte. Maximum is 28672 bytes.
Globale variabelen gebruiken 1110 bytes (43%) van het dynamisch geheugen. Resteren 1450 bytes voor lokale variabelen. Maximum is 2560 bytes.
text section exceeds available space in board
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
Fout bij het compileren voor board Arduino Leonardo
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
I've fixed few issues with ATmega32u4 boards regarding serial and flash size. Should be ok nowzatalian wrote: ↑Mon Nov 01, 2021 11:27 am Hi,
just found this project coming from OpenXSensor, but I want to use a atmega32u4. Just testing on a leonardo for now.
I tried compiling/linking/uploading the code with just voltage 1 & 2 enabled for the frsky smartport protocol.
I get the following error saying my sketch is to big...
I tried commenting out the includes that are not needed in msrc.h but that didn't change the size...Code: Select all
De schets gebruikt 32384 bytes (112%) programma-opslagruimte. Maximum is 28672 bytes. Globale variabelen gebruiken 1110 bytes (43%) van het dynamisch geheugen. Resteren 1450 bytes voor lokale variabelen. Maximum is 2560 bytes. text section exceeds available space in board Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it. Fout bij het compileren voor board Arduino Leonardo
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Hi,
This is a great project and thanks for sharing it.
I manage to make it work but I have two issues:
1. Status led of the board blinks for a while and I can see telemetry values in my radio. But it stops and does not send telemetry data to the radio anymore. If I press the reset button, it will start sending telemetry values again. After some time it will stop again.
2. the current reading is always showing zero.
Does anybody knows how to fix these issues. Hre's my setup.
Regards,
Carlou
This is a great project and thanks for sharing it.
I manage to make it work but I have two issues:
1. Status led of the board blinks for a while and I can see telemetry values in my radio. But it stops and does not send telemetry data to the radio anymore. If I press the reset button, it will start sending telemetry values again. After some time it will stop again.
2. the current reading is always showing zero.
Does anybody knows how to fix these issues. Hre's my setup.
Regards,
Carlou
Last edited by Carlou on Sat Aug 31, 2024 11:28 pm, edited 2 times in total.
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
Just an update on this issue. If I disconnect the TELE wire from the Hobbywing ESC to the RP2040 board, the sending of the telemetry data from the RP2040 board to the receiver does not cut-off (does not stop). If I put the TELE wire back, then the issue is back wherein it will only send data for aproximatly a min then it stops (Blue LED stops blinking). I looks like the root cause is coming from the hobbywing ESC. I already tried loading older firmware version of this ESC but it did not solve the issue.
From the debug screen, the board always stops at cell count all the time as shown in the screen shot. Or maybe its jsut coincidence. Kindly help.
From the debug screen, the board always stops at cell count all the time as shown in the screen shot. Or maybe its jsut coincidence. Kindly help.
Last edited by Carlou on Mon Sep 02, 2024 4:01 am, edited 2 times in total.
Re: ESC telemetry to Frsky Smartport with Arduino Pro Mini
This has been fixed with commitCarlou wrote: ↑Sat Aug 31, 2024 10:11 pm Hi,
This is a great project and thanks for sharing it.
I manage to make it work but I have two issues:
1. Status led of the board blinks for a while and I can see telemetry values in my radio. But it stops and does not send telemetry data to the radio anymore. If I press the reset button, it will start sending telemetry values again. After some time it will stop again.
2. the current reading is always showing zero.
Does anybody knows how to fix these issues. Hre's my setup.
MRSC.png
Regards,
Carlou
Flash updated binary