Search found 2662 matches

by casainho
Dec 14 2018 11:23am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3326
Views: 141668

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

Hi,stancecoke whats the following lines meaning? calculate average? and how to calculate it? in ACAsetPoint.c “”ui32_erps_accumulated -= ui32_erps_accumulated >> 3; ui32_erps_accumulated += ui16_motor_speed_erps; ui32_erps_filtered = ui32_erps_accumulated >> 3;“” I did that code and I can explain: ...
by casainho
Dec 11 2018 5:35pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

andyme wrote:
Dec 11 2018 5:31pm
so how can i power it up?
Connecting to a battery, see here the wires (just like LCD3): https://github.com/OpenSource-EBike-fir ... 3-to-TSDZ2

I added to the table at the end of page the 850C wires.
by casainho
Dec 11 2018 5:28pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

andyme wrote:
Dec 11 2018 5:20pm
sorry for not being serious and doing childish stuff. but you wanted to know although i had said i did not want to talk about it.... :lol:
I was worried that It could happen when opening the LCD, as users will have to open it to program. Good to know it was not at opening.
by casainho
Dec 11 2018 11:27am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

so my question: can the device still be working or is it impossible? if anyone knows enough about this kind of coil... I think it may keep working but you need to try. Try to power on the LCD while it still has the original firmware and see if it works. I think that coild is part of the power circu...
by casainho
Dec 11 2018 9:04am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

I implemented the clock time (time keeps running even when LCD is powered off). The hours and minutes are setup on LCD configurations menu, on the Display section. Now everything is working, all the data that is shown on KT-LCD3 + the clock time are working. What is missing is design so the final ma...
by casainho
Dec 11 2018 9:03am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

I implemented the clock time on Bafang 850C color LCD. The hours and minutes are setup on LCD configurations menu, on the Display section. Now everything is working, all the data that is shown on KT-LCD3 + the clock time are working. What is missing is design so the final main screen can be develope...
by casainho
Dec 11 2018 5:10am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Thanks. That is very expensive!!

Until someone is ready to full develop the mobile app, I think there is no advantage to go with the model.
by casainho
Dec 11 2018 4:31am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Just an update on the 750C. As you know this display is the same architecture as the 850C but with horizontal orientation and better buttons. It also has 4 buttons instead of 3 but is lacking the USB port of the 850C. I just wanted update you that the Bluetooth version of this display is now shippi...
by casainho
Dec 11 2018 4:28am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

1. I can now build my own software so Im willing to try stuff for 48V motor if someone could let me know what parameters to try. Im also literate in software/firmware as its my profession and I spend all day analyzing and testing code (spent 20 years prior in coding/development). 2. The high human ...
by casainho
Dec 11 2018 4:14am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Maybe of Interest for some people: what is the plan: keep lcd3 alive like 850c or will updates not follow once 850 is released I will focus on 850C but I still have ebikes with LCD3 so I still have interest on LCD3. I think firmware on LCD3 is mostly complete and would be great if other developers ...
by casainho
Dec 11 2018 4:05am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

andyme wrote:
Dec 10 2018 2:18pm
2 things: video cannot be seen "video not available" the 850 video works
and: is NRST same as RST?
Yes, NRST = RST.

Here video video:
by casainho
Dec 10 2018 12:41pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

I developed the automatic fast increment/decrement of configuration variables with button long click event, for KT-LCD3: cnrkp1wmjEA casainho: what 4 of the 5 soldering pads of the 850 C do you need for the ST-LINK and what are they to be connected to on the dongle? starting from the one that is lab...
by casainho
Dec 09 2018 8:47pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

On 850C firmware, I went a bit further: struct_var_number lcd_var_number = { .p_var_number = &p_configuration_variables->ui8_wheel_max_speed, .ui8_size = 8, .ui8_number_digits = 2, .ui8_decimal_digit = 0, .ui32_max_value = 99, .ui32_min_value = 1, .ui32_increment_step = 1 }; item_var_set_number(&lc...
by casainho
Dec 09 2018 4:40pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

repost, in case you missed it, casainho Ok thanks. I don't really know how that works, maybe it is like a matrix like used for keypads... anyway, it depends on hardware and so we are limited for the 850C hardware. I really think is better to keep 850C original hardware and try improve what we can o...
by casainho
Dec 09 2018 2:50pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

I agree it is better if it works like you said: increment at 1 unit and long press on the buttons to increase/decrease automatically at like 10x units. This could be implemented throughout the system and be very efficient for the user. Maybe future update? V0.17 is a go! ;D Will submit the pull req...
by casainho
Dec 09 2018 12:46pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

The code has now been tested by us and no visible bugs. Works great! :D Planning for pull-request when I have more time! :) Have the source code and hex in my forked repo in GitHub: https://github.com/leon927/TSDZ2-Smart-EBike Great work!! For the code and the video!! I was looking at your code cha...
by casainho
Dec 08 2018 5:15am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

I need more time to look into this. PCB is 2 sided black is supposed to be ground. Maybe there are some combinations of wires that are being activated? I will try to measure this, no idea of i will be successful. I will be back with more .. Try to make the schematic of that board, can be on a paper...
by casainho
Dec 07 2018 9:17am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

this UART thing....could that mean that it could be programmed without the need to open it? 850C also is updated by UART but it is encrypted, it uses an encrypted bootloader that I bet is the same for the DPC18. They both use the same STM32, I bet they both use UART bootloader with encryption so us...
by casainho
Dec 07 2018 9:08am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

this UART thing....could that mean that it could be programmed without the need to open it? 850C also is updated by UART but it is encrypted, it uses an encrypted bootloader that I bet is the same for the DPC18. They both use the same STM32, I bet they both use UART bootloader with encryption so us...
by casainho
Dec 06 2018 7:08pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

i think there is not really a good reason not to go for the 48V version if you want to use a 48V battery. there are people who own 48V batteries and want e.g. to use them on two bikes, one having a 36 v motor and the other one a 48V motor. That can be done successfully. But if you are before a purc...
by casainho
Dec 06 2018 7:01pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

I know what you mean and will try to fix it so that everything is stored on EEPROM and saved even when user power cycles! Good feedback! Will try to add that also and then pull request so you can test it! Great! Well, but the idea would be to store all subfields last state, not only the subfiled fo...
by casainho
Dec 06 2018 6:42pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

i think there is not really a good reason not to go for the 48V version if you want to use a 48V battery. there are people who own 48V batteries and want e.g. to use them on two bikes, one having a 36 v motor and the other one a 48V motor. That can be done successfully. But if you are before a purc...
by casainho
Dec 06 2018 6:40pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1376
Views: 42874

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

dameri, could it be your flash cable is too long ? buba, well done !!!.. How do you reset the trip meter, I think we had problems trying to come up with a button combination that hasnt been used yet. Thank you so much!!! (And thanks for all the videos!) When you are choosing to display the trip dis...
by casainho
Dec 06 2018 6:19pm
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

Hi guys, I broke a GNG2 motor (an awful piece of equipement) a couple of years ago but recently i decided to renew my e-bike experience with Bafang already thinking how I'll mess with the PAS settings to mimic a torque sensing when I accidentally found TSDZ2 kit. It is now obvious that i'll go for ...
by casainho
Dec 06 2018 7:54am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 4062
Views: 275450

Re: New "TSDZ2 Torque Sensor Central Motor"

I was chatting with him also but my chat says he didn't logged since 3 weeks ago. maybe he had some other opinions about priorities and directions....anyway...it is how it is...this is your project, and you have all rights to do it the way you want it to go. I don't think so. EC was working on some...