Search found 1224 matches

by stancecoke
Jul 28 2020 9:45am
Forum: Motor Technology
Topic: BT Interface for TSDZ2 Open Source firmware - Work in progress
Replies: 61
Views: 4515

Re: BT Interface for TSDZ2 Open Source firmware - Work in progress

For this reason, I think that by setting a higher value of max ERPS it will be possible This limit exists to make sure to get a proper sinusodial shape of the phase current. If you get two less PWM updates per electric revolution, you won't get an proper current shape. With the limit of 520 we get ...
by stancecoke
Jul 21 2020 4:26am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

how i need to configure firmware when i change acs712 30a on acs758 50a You have to change nothing. With the phase current sensor we only detect the zero-crossing for the advance angle correction. So the absolute value of the signal is irrelevant. The signal has to be 2,5V at 0 amps. regards stance...
by stancecoke
Jul 17 2020 6:47am
Forum: Motor Technology
Topic: Lishui "Open Source Firmware" project / KingMeter 5S
Replies: 11
Views: 523

Re: Lishui "Open Source Firmware" project / KingMeter 5S

Very interesting, but where can I get the Bootloader? The bootloader comes with the original FOC Controller Firmware Update Software from Lishui . There a hidden functions in this tool, you have to click one of the buttons several times to activate this extended functions. But you don't need the bo...
by stancecoke
Jul 13 2020 7:48am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1362
Views: 131891

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

I notice that casainho's firmware doesn't flash data and option at all so couldn't we just skip flashing option bytes? Hm, in the Kunteng-Project we had to write the option byte once to disable the readout protection bit. If Tonsheng has not set this bit in the factory settings, there is no need to...
by stancecoke
Jul 11 2020 11:01am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1362
Views: 131891

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

but the question is, what the differences mean and why there are no more (or not so many) complains. Port B0 to Port B2 have to be set to the alternate function timer1 channel 1-3 N output. This processor pins drive the low side Mosfets. The "option_no_prot.ihx" sets the pins to analog input. This ...
by stancecoke
Jul 10 2020 7:56am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

In fact, that user tried to flash one of the firmware dumps I provided, but it ended up not being able to communicate with the display, essentially bricking the controller. A german dealer offers the re-programming of this kind of controllers, so it could be possible to bring the controller back to...
by stancecoke
Jul 03 2020 10:04am
Forum: Motor Technology
Topic: difference between VESC and KT controllers? (open source)
Replies: 2
Views: 201

Re: difference between VESC and KT controllers? (open source)

Hm. The Kuntengs are plug'n play for Ebikes. You get them with various Displays and Sensors like PAS, thumbthrottle, brake-switches Everything with plugs that fit to the controller... You don't need to change any parameter to make the wheel spin. If you want to finetune something, you can set the pa...
by stancecoke
Jun 26 2020 12:10pm
Forum: Motor Technology
Topic: Lishui "Open Source Firmware" project / KingMeter 5S
Replies: 11
Views: 523

Re: Lishui "Open Source Firmware" project / KingMeter 5S

AndZab wrote:
Jun 26 2020 8:33am
Is the Open Software bootloader compatible with original Lishui one?
Can Open Software generate a compatible .LSH file, so I do not need the ST-Link ?
Yes, we use the Lishui bootloader and the .LSH files for flashing.


regards
stancecoke
by stancecoke
Jun 25 2020 6:54am
Forum: Motor Technology
Topic: Lishui "Open Source Firmware" project / KingMeter 5S
Replies: 11
Views: 523

Re: Lishui "Open Source Firmware" project / KingMeter 5S

Yes, I can find a "-F-" in the product code. It's a new model powerful controller, bundled with 860C. Don't ask more :mrgreen: :thumb: Can you tell me the source? Per PM, if don't want to make it public... Sadly, I don't know german language :confused: That is no problem in times of google translat...
by stancecoke
Jun 24 2020 1:17am
Forum: Motor Technology
Topic: Lishui "Open Source Firmware" project / KingMeter 5S
Replies: 11
Views: 523

Re: Lishui "Open Source Firmware" project / KingMeter 5S

It's arriving to me a new Lishui controller 12 MOSFETs, with 860C display. I hope it's a "F" in the product number. Otherwise the controller is not suited for the Firmware. Where did you buy the parts? Is it a bundle? https://www.pedelecforum.de/wiki/lib/exe/fetch.php?w=400&tok=454916&media=elektro...
by stancecoke
Jun 23 2020 2:38am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

eLsc wrote:
Jun 22 2020 2:00pm
but the motor doesn’t seem to turn at all apart from occasional 1-2cm depending on the angle, drawing current doing so
Without seeing your setting, it's difficult. Often, a wrong motor specific angle or a wrong HallSensor-/Phase combination cause your problem.

regards
stancecoke
by stancecoke
Jun 20 2020 2:02pm
Forum: Motor Technology
Topic: looking for programmable sine controller with flux weakening under $60 USD
Replies: 6
Views: 320

Re: looking for programmable sine controller with flux weakening under $60 USD

FW is a pretty different and more complicated mechanism; ?! Field weakening is no mystery at all and can be done with lookup-table based sinusodial commutation, of course. You just have to increase the advance angle. I think Casainho has implemented it in the TSDZ2 firmware, where no "classical" FO...
by stancecoke
Jun 19 2020 7:35am
Forum: Motor Technology
Topic: Lishui "Open Source Firmware" project / KingMeter 5S
Replies: 11
Views: 523

Re: Lishui "Open Source Firmware" project / KingMeter 5S

Hello, I'm interested to this Lishui Project: https://github.com/stancecoke/LishuiFOC But I'd like to know if somewhere exists text documentation for this 5S protocol. I took the basics from the "Forumscontroller", but the KM5S protocol is quite tricky, as it needs an encrypted handshake at startup...
by stancecoke
Jun 16 2020 12:05pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

I received today a 9FET controller and an LCD-8S Hm, with this 9 FETs we had only trouble so far. I don't know if someone got it working finally. Please report your experience! The temperature measurement is already implemented and there are different hardware versions, some with pullup at X4, some...
by stancecoke
Jun 15 2020 2:45am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Marctwo wrote:
Jun 14 2020 1:40pm
So is there anyway I can actually work out the correct value for calA?
Just take an amp-meter and measure the drawn current under load, then calculate back the Cal_a value. Perhaps at different loads to get an averaged value.

regards
stancecoke
by stancecoke
Jun 11 2020 1:06pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 6074
Views: 411766

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

casainho wrote:
Jun 11 2020 12:24pm
Do you know what is the microcontroller?
As far as I can see, it's an Infineon XMC1302 38Pin.
The Infineon DAVE IDE seems to be for free, but I can't find a cheap programmer?!

regards
stancecoke
by stancecoke
Jun 08 2020 2:27am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

If you can point me to the Bafang serial protocol specs, I can think about it. For my Lishui-Project , I took the code from the "Forumscontroller" , see the display_bafang.cpp and the display_bafang.h The Bafangs work with 1200 BAUD, you have to change this in the UART init function. wondering if I...
by stancecoke
Jun 05 2020 3:32am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Here it is again at 9600 baud. I logged from startup: As expected the last XOR value is out of the checked range, it's 14, we test only from 1 to 9. :-) https://onlinegdb.com/Bk9HMKP3I So you have to add the 14 to the display.c :-) // see if CRC is ok if (((ui8_crc ^ 10) == ui8_rx_buffer [5]) || //...
by stancecoke
Jun 04 2020 4:30am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Corrida victim wrote:
Jun 03 2020 10:53am
Not sure if you're interested in seeing the logs?
Thank you for the log! First thing: you are logging at 2400 BAUD?! The LCD3 and the controller are using 9600 BAUD. Therefore your logged communication says nothing to me.

Regards
stancecoke
by stancecoke
Jun 01 2020 1:05pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Hi, can you help me with stop light, i want use gpio A1 pin how output to connect N mosfet to control stop light from brake pin. I tried modifying the code, but nothing works for me :( Hm, this is quite trivial, you have to define PA1 as a digital output in the GPIO init function and then use the G...
by stancecoke
May 31 2020 1:50pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Corrida victim wrote:
May 31 2020 12:50pm
I guess something is wrong with my setup in that case
I just looked at your throttle (torque in your case) min and max setting. You have to use integers here, no floating points. And you should check both values, if the max value is too high, you will never get full power.

regards
stancecoke
by stancecoke
May 31 2020 11:41am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4082
Views: 377227

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

First, welcome to the project and thank you for the feedback! I think many users (in Germany) would be interested, how you get an agreement with the insurance for a self build "S-Pedelec" :D ! Is there an easy way for me to alter the code to allow this? If you are keen on burning your mosfets, you c...