Search found 1224 matches

by stancecoke
May 28 2020 3:21am
Forum: Motor Technology
Topic: 5 Lines of Code to spin BLDC?!? On Youtube.
Replies: 5
Views: 263

Re: 5 Lines of Code to spin BLDC?!? On Youtube.

Alone the initialization of timers, GPIOs, ADC takes several hundred lines of code for a STM32. See the vesc-code or my Lishui-project . ST offers a motor control workbench , that makes things much easier for beginners, but the generated code has much more than 5 lines... A SVPM lookup table can be ...
by stancecoke
May 24 2020 5:21am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1354
Views: 130835

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

I understand why it isn't, but it's a pity that the earlier versions cannot simply be found in the repo. ??? you can access every single commit on github with clicking on the paranthesis button. You'll get the normal screen, where you can press the green "clone or download" button. git_commit_overv...
by stancecoke
May 21 2020 4:13am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1354
Views: 130835

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

Can you explain us briefly the advantage of a direct drive hub motor compared to the Tongsheng TSDZ2 mid-motor. Hm, this has been discussed thousand times already, it is more a "religious" question than a technical one. The middrive motor has only advantages at long and steep ascents. In all other ...
by stancecoke
May 20 2020 10:29am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1354
Views: 130835

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

Is it possible to just put in all the settings then save the fill and then give them the file with my desired settings Yes, you can do your settings in the Java configurator, then press Copile&Flash. This will cause an error message in the command window, but that doesn't matter. A file with the re...
by stancecoke
May 19 2020 2:09am
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: 376290

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

would the firmware work with both the LCD4 and bluetooth adapter? No. If you want to use the LCD Display you have to adapt most settings in the Java-Tool. You can use the LCD for the basic settings max speed and wheel size. You could do the settings in BluOSEC and than flash the controller to LCD-M...
by stancecoke
May 13 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: 376290

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

Are there any plans to implement field weakening in this firmware? I will not implement that, but of course everybody is invited to do it :wink: . It's very easy, you just have to increase the ui8_assumed_motor_position with the speed. You have to do the angle correction procedure later (or earlier...
by stancecoke
May 11 2020 12:48am
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: 376290

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

Black6spdZ wrote:
May 09 2020 3:13am
I pulled up the phase monitor in bluosec
Do you have an external +5V power supply for the BT-module? The controller internal +5V supply is known to be very weak, it can't handle any additional load. You can try to supply the hallsensors with external +5V, too.

regards
stancecoke
by stancecoke
May 09 2020 9:44am
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: 376290

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

I do not understand how the halls are bad when they test good with a meter.. what am I missing? The Halls are not in 120° position If you get only 3 and 4 all three halls are switching at the same time :shock: 3 - - > 011 4 - - > 100 https://www.digikey.de/-/media/Images/Blogs/2019/February/Using%2...
by stancecoke
May 09 2020 9: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: 376290

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

What about reverse ? Is it possible to implement ? On pad X4 may be ? Yes, of course. You just have to swap two pwm channels and change the angle interpolation. You have to check two following hall events to detect the direction and adapt the angle corresponding. I did it in the Lishui project just...
by stancecoke
May 04 2020 6:41am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1354
Views: 130835

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

I've deleted my fork now, so mbrusas fork is listed direcly under the main project now.
https://github.com/OpenSource-EBike-fir ... rk/members

As a big fan of direct drive hub motors, I won't contribute to this project any more :D

regards
stancecoke
by stancecoke
May 03 2020 11:53am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1354
Views: 130835

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

mbrusa wrote:
May 03 2020 8:19am
Can I delete "TSDZ2-Smart-EBike" and rename "TSDZ2-Smart-EBike-1"
Perhaps the links have to be updated, but it's the best way, I think.

Don't forget to copy the wiki to the new repo before deleting the old :-)

regards
stancecoke
by stancecoke
May 03 2020 4:20am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1354
Views: 130835

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

click on "fork" in github.com, my account was opened and I found another "TSDZ2-Smart-EBike-1" repository Yes, that was exactly the right way to fork a repo :thumb: Now, you can see your fork in the overview of the main project: https://github.com/emmebrusa/TSDZ2-Smart-EBike-1/network/members but t...
by stancecoke
May 02 2020 6:45am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1354
Views: 130835

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

mbrusa wrote:
May 02 2020 3:25am
I posted the new version on GitHub
Thank you! :thumb:

Unfortunately, you did not use the github fork function, so the link to the original project of casainho was lost.
Please, can you copy the wiki of my repo to yours, then I can delete my repo.

regards
stancecoke
by stancecoke
May 01 2020 11:00am
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: 376290

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

shellton wrote:
May 01 2020 8:19am
I studied source to find out , where i can insert this.
just paste both commands at line 192 of the main.c

regards
stancecoke
by stancecoke
May 01 2020 3:13am
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: 376290

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

I measured resistance on pins 20-23 and GND - 3.3K . ... Can it be something wrong with CPU or pin output not initialized properly ? How to find it out ? Hm, seems that the mikrocontroller is defective. 3.3K is OK. you can disable the PWM output and toggle the pin manually in slow loop to check it....
by stancecoke
Apr 29 2020 8:09am
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: 376290

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

shellton wrote:
Apr 28 2020 1:47pm
AT STM8 pins 20-22
Strange, but then the 2.6V have to come from "outside"?! Can you check the resistance from these pins to gnd?

regards
stancecoke
by stancecoke
Apr 28 2020 6:18am
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: 376290

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

Can you check it exactly? The known hardware has no Half Bridge drivers, it has descrete boot strap circuits.
At standstill, Low and Highside have to have 50%duty cycle at 16kHz, so 2.5V with a simple meter on the pin ist OK.

regards
stancecoke
by stancecoke
Apr 28 2020 5:29am
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: 376290

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

Hm, ist there a half bridge driver on the PCB? What is the voltage on the Low Side controller pins?

regards
stancecoke
by stancecoke
Apr 28 2020 4:33am
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: 376290

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

shellton wrote:
Apr 27 2020 1:30pm
I have this one from ebay
Can you Check If it uses the same schematic as known?

regards
stancecoke
by stancecoke
Apr 26 2020 4:47am
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: 376290

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

Here is little summary what changes i had to make to get all this to work at this point nice to get some fresh wind into the project! The setpoint for the battery current is defined in the acasetpoint.c If you want to add push assist or auto cruise, you have to define it there. regards stancecoke
by stancecoke
Apr 21 2020 9:00am
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: 376290

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

It goes out. And after 5 minutes i can restart it again. This seems to be a problem with the 5V supply. Make sure, that you don't have other devices on the 5V supply than PAS, Brake and Throttle. For additional devices use a separate step down converter. Or is there another way to determine that? f...
by stancecoke
Apr 21 2020 1:48am
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: 376290

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

sascha121985 wrote:
Apr 20 2020 8:16am
But it gets so hot, that is swith off automaticly.
There is no "automatic switch off" in the controller. What ist getting hot? The big resistor or the FETs with the complete housing?

Have you adjusted the motor specific angle properly?

regards
stancecoke