Search found 1218 matches

by stancecoke
Apr 04 2020 4:56am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 5861
Views: 398169

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

r0mko wrote:
Apr 03 2020 7:21pm
This is an ERPS, a mysterious unit
ERPS is not mysterious at all, this are the electrical revolutions per second of the motor, derived in the commutation algorithm. The chainwheel rpm is ERPS/(number of pole pairs * mechanical gear ratio) * 60s/min

regards
stancecoke
by stancecoke
Apr 03 2020 10:11am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

HughF wrote:
Apr 03 2020 10:02am
Edit: Not the programmer, I can flash from Linux fine...
can you see any problem in the Windows device manager? (yellow triangle at any device?)

regards
stancecoke
by stancecoke
Apr 03 2020 9:50am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

HughF wrote:
Apr 03 2020 9:36am
I have setup up my Windows machine with stvp, sdcc and the jre and have the configurator working but it refuses to flash the option byte.
can you post the output of the terminal window with the error messages, please?

regards
stancecoke
by stancecoke
Mar 31 2020 6:20am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 5861
Views: 398169

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

I would like to experiment with it and flash my motor with a custom firmware You could try the v0.20 version (with LCD3 or original Tongsheng Display), where you can choose between several ride modes: 5 assistance modes are available, choose your preferred one. POWER ASSIST assistance proportional ...
by stancecoke
Mar 29 2020 7:06am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

I Guess the perfect way to do IT would be to also factor in the cadence in some way and calculate power The assistance is proportional to the riders power, not to the torque on the pedal: else { // torque sensor mode float_temp = (float) ui16_sum_torque; float_temp *= ((float) ui8_assist_percent_ac...
by stancecoke
Mar 29 2020 4:11am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

Is it possible to calibrate it? Yes, of course, but only linear. Throttle min is the offset and TQ calib the gain. We don't use physical units for power/torque/cadence in the code to avoid unnecessary computations, but of course you can calculate them from the ADC and timer values, if you are reall...
by stancecoke
Mar 28 2020 1:03pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

Slipy wrote:
Mar 26 2020 9:11pm
Help please
sorry, but without the use of a scope, you won't find the error. First check the output of the bootstrap circuit (gate of the hi-side FETs)

regards
stancecoke
by stancecoke
Mar 28 2020 2:06am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

mbrusa wrote:
Mar 28 2020 1:42am
After several attempts, now no errors, only warnings.
:thumb:

most warnings are imported, but not used libraries. You can simply delete those rows. So your self built GUI is working now?
I'm looking foreward to see your improved configurator!

regards
stancecoke
by stancecoke
Mar 27 2020 12:32pm
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

Unfortunately, even changing the version of NetBeans and importing the project, always the same errors ... Hm, strange. Can you post the content of the output window? Have you waited until the end of the "search for projects" process after importing from git? ant -f "F:\\Eigene Dateien\\NetBeansPro...
by stancecoke
Mar 27 2020 5:07am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

I've added the whole Netbeans project structure for the configurator to github now, so you can easily import it to netbeans. You should fork my repo first and import from your own fork to be able to push your commits back to github. NetbeansTeam.PNG NetbeansClone.PNG NetbeansProjectExplorer.PNG How ...
by stancecoke
Mar 26 2020 11:29am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

Lesny wrote:
Mar 26 2020 10:58am
So if I use the latest software and ktlcd3 protocol this should not be a problem with speed setting ?
Yes, but I think it isn't prooved in hardware yet, as far as I know, Xnyle has no LCD3. So please report, if it works!

regards
stancecoke
by stancecoke
Mar 26 2020 10:05am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

you are lucky, Xnyle has implemted it already, I hadn't noticed that before. :-) void digestLcdValues(void) { ui8_assistlevel_global = lcd_configuration_variables.ui8_assist_level + 80; // always add max regen // added by DerBastler Light On/Off light_stat = (light_stat&~128) | lcd_configuration_var...
by stancecoke
Mar 26 2020 8:47am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

it would be easier to send the speed setting. If you want to have overall possibilities with your homebrewed arduino display, you should use the protocol of the BluOSEC app. With this you can change most parameters on the fly. https://github.com/stancecoke/BMSBattery_S_controllers_firmware/blob/Mas...
by stancecoke
Mar 26 2020 8:37am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

it is possible to change the configuration so that the controller uses the speed setting sent by uart like ori firmware ? of course, if you progam it :D But you can activate the offroad mode by the "morse code" with the break lever, so there is no need to change the max speed with the display... re...
by stancecoke
Mar 26 2020 8:22am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

Lesny wrote:
Mar 26 2020 7:48am
which parameters from kt lcd3 is used by the controller ?
Only light and assistlevel, see this post:
viewtopic.php?f=30&t=87870&start=3875#p1538316

Feel free to add any function to the parameters :wink:

regards
stancecoke
by stancecoke
Mar 25 2020 10:29am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

What I make wrong? First idea: You have to reset crc in each loop run, or calculate the checksum outside the loop. XOR2 is the last step normally, I don't know if it's a difference. add a delay of 500ms in the loop. https://endless-sphere.com/forums/viewtopic.php?t=73471 This worked for me, :thumb:...
by stancecoke
Mar 24 2020 2:15pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

Lesny wrote:
Mar 24 2020 1:44pm
the controller dont send any data.
The controller only sends data when it receives a valid message from the display. It "answers" to the query of the display.

Only in diagnostics-mode, it sends data continously.

regards
stancecoke
by stancecoke
Mar 24 2020 9:02am
Forum: Motor Technology
Topic: 4x4 RC lawnmover - please help for components
Replies: 8
Views: 643

Re: 4x4 RC lawnmover - please help for components

But then I remembered that we didn't have a reverse. You can switch the direction easily by a digital I/O of the arduino. 2. Motor steering control wiring methods: you can switch control can also be connected to the MCU control, to GND in one direction, then in one direction 5V. So you need 4 analo...
by stancecoke
Mar 24 2020 7:34am
Forum: Motor Technology
Topic: 4x4 RC lawnmover - please help for components
Replies: 8
Views: 643

Re: 4x4 RC lawnmover - please help for components

There are very cheap BLDC controller that are suited for your purpose, I think: https://www.ebay.de/itm/DC-12V-36V-15A-500W-Brushless-Motor-Controller-Hall-BLDC-Treiberplatine-DE/264061521678?hash=item3d7b4b0f0e:g:zqwAAOSwRbpb~Kw1 https://i.ebayimg.com/images/g/zqwAAOSwRbpb~Kw1/s-l1600.jpg How to ad...
by stancecoke
Mar 24 2020 5:45am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

josafrik wrote:
Mar 24 2020 4:53am
I forgot to say that I use 4.0.0
Thank you, so hopefully you won't get magic smoke!

regards
stancecoke
by stancecoke
Mar 24 2020 4:29am
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

mbrusa wrote:
Mar 24 2020 12:30am
I use SDCC 3.9.0 with windows 10, never had problems
Thank you for the feedback! Is anyone using SDCC 4.0.0 already?

regards
stancecoke
by stancecoke
Mar 23 2020 1:12pm
Forum: Motor Technology
Topic: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18
Replies: 1263
Views: 124458

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

I have tried the compilation again and those lines have appeared ... process_begin: CreateProcess(NULL,.... El sistema no puede encontrat el archivo especificado The system can't find the sdcc.exe. There seem to be something wrong with your path definitions... Have you installed sdcc and activated ...
by stancecoke
Mar 23 2020 12:30pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 5861
Views: 398169

Re: firmware v0.6.8 issue

But I am now thinking that the new compiler version, that optimizes a lot the motor controller firmware, causes this issue - at least since I remember, I had this problem only after the last release... Hm, an user in the german forum reported a grilled Kunteng-controller a few days ago. He used the...
by stancecoke
Mar 21 2020 1:01pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

I have a resting voltage of 5v, which seems to be causing the issue as it reads at 4.3v when connected. There seem to be different PCB assemblies. Some have a pullup resistor at X4, some doesn't. See this post: https://endless-sphere.com/forums/viewtopic.php?f=30&t=87870&p=1426450&hilit=temperature...
by stancecoke
Mar 21 2020 8:43am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4068
Views: 370695

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

Yes, the controller starts in open loop, when the speed is high enough it will switch to closed loop. No problem with a pump, where the load is low at low speed...

regards
stancecoke