Feature request: Limit power when motor too hot
Is there possibility to add feature that lower power when motor temp is over some point (user adjustable). It is easiest to do like change and lock pass level at some user adjustable level (example pas level 2) and option to disable throttle also then.
So in example if motor temp go over +100C then pas change to level 2 and throttle goes disabled. This limited state is on until temp lowers like 100c > 80c (best if this is also user adjustable value) and then it allow throttle and change pas again.
There is temp protection features in Cycle analyst etc, but it would be nice if Eggrider have those kind also.
Comments (21)
-
-
reporter There you can see temp in eggrider (79 celcius) I use Kunteng controller (KT)
-
How did you do to get that ?! On my side I have this :
And by the way how did you do to get temp with a Kunteng controller ?! The seller just told me there was no input for temp.
-
reporter Actually there is no temperature input at controller. So i put little arduino between controller and eggrider. It is connected like this. Between controller and eggrider goes 5 pin cable. There is rx and tx lines. I cut tx line (transmit controller to display) and put it to arduino rx pin, and arduino tx pin i connect back to that tx line to eggrider. So basically arduino is reading what controller send to display, read that data, add there temp value (in kt protocol there is already byte for temperature, but controllers doesn’t have input) pack everything and send to display. And after that eggrider just show that temp.
of course you need to add some kind of temp probe to your motor if you don’t have any. I put digital ds18b20 in my motor, but of course you can use any probe that want, if you can read it to arduino. That chip i use is very small. It is that https://www.pololu.com/product/3101
-
Whaou impressive !
My approach was more based on the reprogrammation on the KT controller with the flexible opensource firmware.
You already mentioned that it is not possible, but I still have difficulties to understand why as the open source fm could be modify as needed to meet Eggrider needs.
Have you ever try this ?
-
reporter Yeah of course you can use opensource fw. And if you use that, then you can use x4 input to temp probe. You find that input in pcb. But problem is that currently eggrider doesn’t support opensource fw properly. Basic functions work, like you can see voltage, speed, temp, power consumption. And you can change pas assist level, put light on / off and use walk assistant. Put you cannot change any kt p / c values, so you cannot change powerlimit, speedlimit etc. Those you need change using opensource fw java tool or bluosec android bt app (but that app and eggrider cannot work same time currently, because you need do define if you are use kt-lcd3 (eggrider) or that bluosec app, so everytime you want to change display type, you need to flash fw again to controller.
-
reporter When i earlier said that there is no temp input at controller, i meant that there is no input when you use default kt fw.
-
Exactly I was thinking to x4 !
I’m not interested in the bluosec android bt app. That’s why I would only have change the parameters in the KT controller and then plugged the Eggrider. I still don’t understand what makes the KT controller different after opensource fm flash for the Eggrider. Because as soon as we understand that, it could be easier modify the controller software to give what the Eggrider needs to consider the KT controller as normal.
-
reporter difference is that there is those p1 - p5 and c1-c14 settings implemented at opensource fw, but they are not doing anything currently. They are not tied up to any function. So when eggrider send command to change those values like example p5, it send it correctly and controller read it, but it doesn’t do anything from that info.
So if you or someone modified opensource fw, and put those values to do something (like changing current limiter etc) then it work fine.
Like you see in that display.c file (bottom of that file, that there is those p1-p5 , c1-14 values added, but they are not doing anything. https://github.com/stancecoke/BMSBattery_S_controllers_firmware/blob/Master/display.c
Unlike max speed (i was wrong in earlier message, it works in eggrider), assist levels, light and walk mode just above those c/p values. There is assigned functions. Someone just need to add functions on those p/c values too
-
reporter And there is Xnyle message about same thing in ES forum. https://endless-sphere.com/forums/viewtopic.php?f=30&t=87870&start=3525#p1467680
-
Excellent !
-
Hi Nixuu, after considering many options, I like your solution ver much but I’m only a beginner programmer and the challenge seems to high Would it be possible for you to share your code ? I would also like to tune the hall sensor throttle to get a more progressive feeling and I would be able to do it with your board using a 10-bits pwm that could be amazing !
-
reporter Hi. There is code https://pastebin.com/6V4LnCDT you need to put your temp sensor address in code if you use ds18b20 senror like i used. Of course you can modify code to read different kind of sensor also.
-
Thanks a lot!! I still have a lot to learn, but I'll move faster with your help 😊
-
The code is no more available. I didn't know it was temporary 🙁 would you be able to repost it?
I realize I have a arduino pro micro. It should be easy to use it with this code with mirror modification isn't it?
-
reporter Oh, sorry about that. There is repost. And yes that code should work fine with arduino pro micro. https://pastebin.com/sXz6rsKQ
-
I almost complete the implementation of your method thanks to your code !
I’m also adding power display averaging to be able to read something :D
I’m packing everything, and I was wondering what the best place to pickup 5v source on the kunteng controller ?
Throttle, brake, PAS ?
-
reporter I use dc-dc stepdown, i have 12v to 5v device (also 52v to 12v, because my lights uses 12v.) I use that 5v also in usb connection to charge my phone. Controller 5v line doesn’t stand very much extra current, so even small arduino can be too much for it.
That 12v to 5v stepdown is very small. Smaller than thumb so you can put it inside controller very easily.
-
Ok I understand ! So where are you taking your 12v ?
-
reporter I take it to another 52v to 12v stepdown device. But if you don’t need 12v anything else, you can just buy dc/dc stepdown module to your battery voltage to 5v and put it inside controller (and take power to that stepdown from controller power cables)
-
- changed status to closed
most of the controllers don't provide motor temperature. the ones that provide it have this functionality integrated
- Log in to comment
I even don’t understand how do you do to get the temperature display on your eggrider ?!
What are the references of the controller you are using ?