
Edit: Nevermind, found it.. ACS758LCB-100B-PFF-T I think
It's either going to be an ACS711 or ACS712 depending on the controller. The chip is also tiny. If you have the LC package (8 contacts), you might be able to solder it on with a normal soldering iron. If it's the EX package, it's going to be a nightmare to solder it on without a hot air station. I've tried to solder on the EX package with a soldering iron and a tiny conical tip. It's a nightmare and the first time I tried I ended up shorting the motor phase to the STM8 IC (40v tends to break stuff that doesn't expect more than 5).tenten8401 wrote: ↑Sep 11 2020 3:29pmSo, since posting last time I've gone ahead and ordered an ebike kit with a KT controller. I've been informed it's a square wave controller, but the wiki says it's possible to retrofit phase current sensors onto most boards, but I can't find anything on it so far. Does anyone have anything that could point me in the right direction here? Would love to use the existing cheaper controller and install some parts than just throw it out and buy a sine wave model..
In addition to this, is the retrofitting only available for the open source firmware? I'd like to run it but after I ordered I realized it said that LCD8H isn't compatible at all due to a missing clock or something.. If I retrofit a phase current sensor onto a square wave controller will the proprietary firmware that comes with it pick it up and use it? Is there anything I can do to get LCD8H working on the open source firmware?
Sorry for all the questions.
I should've specified, I ordered the 48v 12 fet version which appears to be this chip for phase after doing some digging on the website... https://www.ebay.com/itm/ACS758LCB-100B ... 4012326992KonKey125 wrote: ↑Sep 11 2020 8:44pmIt's either going to be an ACS711 or ACS712 depending on the controller. The chip is also tiny. If you have the LC package (8 contacts), you might be able to solder it on with a normal soldering iron. If it's the EX package, it's going to be a nightmare to solder it on without a hot air station. I've tried to solder on the EX package with a soldering iron and a tiny conical tip. It's a nightmare and the first time I tried I ended up shorting the motor phase to the STM8 IC (40v tends to break stuff that doesn't expect more than 5).tenten8401 wrote: ↑Sep 11 2020 3:29pmSo, since posting last time I've gone ahead and ordered an ebike kit with a KT controller. I've been informed it's a square wave controller, but the wiki says it's possible to retrofit phase current sensors onto most boards, but I can't find anything on it so far. Does anyone have anything that could point me in the right direction here? Would love to use the existing cheaper controller and install some parts than just throw it out and buy a sine wave model..
In addition to this, is the retrofitting only available for the open source firmware? I'd like to run it but after I ordered I realized it said that LCD8H isn't compatible at all due to a missing clock or something.. If I retrofit a phase current sensor onto a square wave controller will the proprietary firmware that comes with it pick it up and use it? Is there anything I can do to get LCD8H working on the open source firmware?
Sorry for all the questions.
Here's the datasheet for the ACS711: https://www.google.com/url?sa=t&rct=j&q ... 1zeS3EAjUf
Hi tenten8401,In addition to this, is the retrofitting only available for the open source firmware? I'd like to run it but after I ordered I realized it said that LCD8H isn't compatible at all due to a missing clock or something..
It works fine on stock but it doesn't work with the open source firmware this thread is aboutsylvain_wm wrote: ↑Sep 12 2020 1:23amHi tenten8401,In addition to this, is the retrofitting only available for the open source firmware? I'd like to run it but after I ordered I realized it said that LCD8H isn't compatible at all due to a missing clock or something..
Where did read that the LCD8H doesn't work? Could you send the link?
I have a LCD8H with KT controller, and it seems to work except the 6kph assistant without PAS.
Have a good one
Regards
is this your personal experience? I know, that there are new "L"-parameters, but I don't know how they are implemented in the communication protocol.tenten8401 wrote: ↑Sep 12 2020 11:46amIt works fine on stock but it doesn't work with the open source firmware this thread is about
I don't actually have the kit with me yet, but I remember seeing a forum post at some point that said it didn't work at all on the open firmware for them.. I have no idea on the specifics yet.. Is it working for you on the open source firmware or anyone else that you can find? I just don't want to take the one-way trip only to make my LCD8H uselessstancecoke wrote: ↑Sep 12 2020 2:26pmis this your personal experience? I know, that there are new "L"-parameters, but I don't know how they are implemented in the communication protocol.tenten8401 wrote: ↑Sep 12 2020 11:46amIt works fine on stock but it doesn't work with the open source firmware this thread is about
http://www.szktdz.com/upload/file/20181 ... _12550.pdf
Can you post a log of the bytes sent by the display?
regards
stancecoke
Hi, my LCD8H works with the open source firmware this thread is about.It works fine on stock but it doesn't work with the open source firmware this thread is about
Yes, but this is not a matter of the LCD8H, it doesn't work with any display, as the walk assist function is not implemented yet.sylvain_wm wrote: ↑Sep 13 2020 3:05amBut, as I said, when I hold the "DOWN" button, the meter assist function logo flashes, but the function doesn't work.
I've implemented the walk assist in the new branch "Walk_Assist":sylvain_wm wrote: ↑Sep 13 2020 3:48ambecause I was trying to pore over every single ligne of the program to figure out where I had to change the code....
Code: Select all
if (ui8_walk_assist) uint32_current_target = 10 + ui16_current_cal_b;
Seems like a pretty good idea, but wouldn't it be better to set a constant speed target rather than amp draw so it'd assist more uphills and less downhill?stancecoke wrote: ↑Sep 13 2020 1:15pmI've implemented the walk assist in the new branch "Walk_Assist":sylvain_wm wrote: ↑Sep 13 2020 3:48ambecause I was trying to pore over every single ligne of the program to figure out where I had to change the code....
https://github.com/stancecoke/BMSBatter ... alk_Assist
It's just quick and dirty and not tested yet. When the walk assist bit is set, the current target is simply set to 1 amp (for the 6FET calibration).
If someone can confirm that it works properly, I can push it to the master branch.Code: Select all
if (ui8_walk_assist) uint32_current_target = 10 + ui16_current_cal_b;
regads
stancecoke
feel free to implement it in your suggested way and share your work here!
̶s̶u̶r̶e̶l̶y̶ ̶t̶h̶e̶ ̶P̶I̶ ̶c̶o̶n̶t̶r̶o̶l̶l̶e̶r̶ ̶w̶o̶u̶l̶d̶ ̶b̶e̶ ̶u̶s̶a̶b̶l̶e̶ ̶f̶o̶r̶ ̶a̶ ̶3̶m̶p̶h̶-̶i̶s̶h̶ ̶s̶p̶e̶e̶d̶ ̶l̶i̶m̶i̶t̶ ̶w̶o̶u̶l̶d̶ ̶i̶t̶ ̶n̶o̶t̶?̶ ̶I̶'̶m̶ ̶c̶o̶n̶f̶u̶s̶e̶d̶ ̶o̶n̶ ̶h̶o̶w̶ ̶t̶h̶e̶ ̶o̶f̶f̶i̶c̶i̶a̶l̶ ̶K̶T̶ ̶s̶o̶f̶t̶w̶a̶r̶e̶ ̶w̶o̶u̶l̶d̶ ̶d̶o̶ ̶i̶t̶ ̶i̶f̶ ̶t̶h̶e̶y̶'̶r̶e̶ ̶n̶o̶t̶ ̶u̶s̶i̶n̶g̶ ̶a̶ ̶P̶I̶ ̶c̶o̶n̶t̶r̶o̶l̶l̶e̶r̶ ̶t̶o̶ ̶t̶r̶a̶c̶k̶ ̶t̶h̶e̶ ̶t̶a̶r̶g̶e̶t̶ ̶s̶p̶e̶e̶d̶stancecoke wrote: ↑Sep 14 2020 1:10amfeel free to implement it in your suggested way and share your work here!![]()
The whole firmware doesn't know a speed control yet, just a ramp down at the speed limit. So you have to tune a PI-control for the speed, similar to the PI-control we are using for the battery-current at the moment.
regards
stancecoke
After a little bugfix, a german user confirmed that the walk assist works now. I've pushed the Walk_Assist branch to the master!stancecoke wrote: ↑Sep 13 2020 1:15pmIf someone can confirm that it works properly, I can push it to the master branch.
Awesome, greatly appreciate the work being done on thisstancecoke wrote: ↑Sep 15 2020 11:19amAfter a little bugfix, a german user confirmed that the walk assist works now. I've pushed the Walk_Assist branch to the master!stancecoke wrote: ↑Sep 13 2020 1:15pmIf someone can confirm that it works properly, I can push it to the master branch.
regards
stancecoke
Hi stancecoke!stancecoke wrote: ↑Sep 12 2018 12:11pmI've implemented the assistance from standstill in torquesensor-mode, after a user in the german forum asked for a similar function in PAS+THROTTLE mode, too. Now the throttle works as push assistant up to 6 km/h in all ride modes. For correct 6km/h the gear ratio has to have the correct value.
Code: Select all
if (ui8_walk_assist) uint32_current_target = 10 + ui16_current_cal_b;
Code: Select all
if ((ui8_walk_assist) && (ui16_virtual_erps_speed < 57)) { uint32_current_target = 60 + ui16_current_cal_b;}
Corrida victim wrote: ↑Sep 17 2020 6:35pmmy code change will set the target power for walk assist to ±500w and limit the speed to 20km/h (to make it legal in Europe for speed pedelecs)
You could have made the few changes yourself, but here you go
Aaww... thanks, you're a star.stancecoke wrote: ↑Sep 18 2020 10:28am
You could have made the few changes yourself, but here you go(not tested):
https://github.com/stancecoke/BMSBatter ... 8db04c547d
regards
stancecoke