stancecoke
100 kW
- Joined
- Aug 2, 2017
- Messages
- 1,822
Can you please add this information to the repository, so people do not need ask again and again?michih. said:Here:
https://enerprof.de/motor-kits/display-ersatzteile/tongsheng/
MFG Michael
stancecoke said:Do we know the motor parameters for the TSDZ2? We need senseful values for making the motor run in sensorless mode with the DAVE FOC APP. This are the default settings in the APP:
motor parameters.JPG
regards
stancecoke
Yes we have!! A developer, at very beginner of this developing our firmware to motor controller V1, did measure the resistance and inductance of the motor, using the tools at his work. We have the value of:stancecoke said:Do we know the motor parameters for the TSDZ2? We need senseful values for making the motor run in sensorless mode with the DAVE FOC APP. This are the default settings in the APP:
I think @abrainer is testing to run the motor, I hope he can test using this data. I updated the repository with the technical characteristics of TSDZ2 electric motor:casainho said:Yes we have!! A developer, at very beginner of this developing our firmware to motor controller V1, did measure the resistance and inductance of the motor, using the tools at his work. We have the value of:stancecoke said:Do we know the motor parameters for the TSDZ2? We need senseful values for making the motor run in sensorless mode with the DAVE FOC APP. This are the default settings in the APP:
- motor voltage
- no load speed
- motor resistance
- motor inductance
- pole pair
We have everything
casainho said:I think @abrainer is testing to run the motor, I hope he can test using this data.
And do you think it is possible to move forward?stancecoke said:We tried a lot over the weekend, but the transition from open loop to FOC mode always fails.casainho said:I think @abrainer is testing to run the motor, I hope he can test using this data.
Without understanding, how the code works and targeted monitoring of relevant variables at runtime we won't get anywhere at this point.
for me, without hardware, it's not possible.casainho said:it is possible to move forward
I have the hardware so I should try. Please tell me your suggestions on what I should do and take care. And I hope you did update the code so I can use it.stancecoke said:for me, without hardware, it's not possible.casainho said:it is possible to move forward
@mxlemming had the same issue obviously, he solved it in the end:
https://www.infineonforums.com/archive/index.php/t-10770.html?s=268001e32bfdec80d8c733125fcafc7f
stancecoke said:Good news!
@abrainer managed to get the motor running in sensorless FOC mode, the error was just the wrong polarity for the half-bridge drivers....
I've updated the masterbranch with his settings already. The motor runs just with a hardcoded setpoint at the moment. There is no throttle input supported yet.
[youtube]9HIKruFkAw0[/youtube]
regards
stancecoke
Congratulations, good work!!stancecoke said:Good news!
@abrainer managed to get the motor running in sensorless FOC mode, the error was just the wrong polarity for the half-bridge drivers....
I've updated the masterbranch with his settings already. The motor runs just with a hardcoded setpoint at the moment. There is no throttle input supported yet.
I think the good of this TSDZ2 motor is that there is not need to mess with hardware, to much. I think is hard to build a motor controller and anyway that would not be an advantage since TSDZ2 motor controller is very complete e very cheap costing 30€ only!!mxlemming said:This is fantastic news. You're well on your way to having probably the best FOC controller going.
With this in mind, do you have any interest in me forking the MESC and replacing the stm32 with this mcu? It wouldn't take me much effort (few evenings to do the hardware) and then you could have this running on 16-20s and 80+ phase amps (I've tested up to 16s80A phase and 20s on the bench with 10A or so). which would get interesting for hub motors of moderate power :lol:
Yes, please port the existing code. The TSDZ2 EBike wireless controller is now working very well as also the wireless remote. And the displays would also work.beemac said:I'm expecting a couple of the new controllers tomorrow - so time permitting will start to take a look at the non motor control side of things - I'm still learning about motor control so i'm probably better suited to bootloader work and general porting of existing code - but always happy to learn if I've got the time...
casainho said:I think the good of this TSDZ2 motor is that there is not need to mess with hardware, to much. I think is hard to build a motor controller and anyway that would not be an advantage since TSDZ2 motor controller is very complete e very cheap costing 30€ only!!mxlemming said:This is fantastic news. You're well on your way to having probably the best FOC controller going.
With this in mind, do you have any interest in me forking the MESC and replacing the stm32 with this mcu? It wouldn't take me much effort (few evenings to do the hardware) and then you could have this running on 16-20s and 80+ phase amps (I've tested up to 16s80A phase and 20s on the bench with 10A or so). which would get interesting for hub motors of moderate power :lol:
I am not being following other threads about motor controllers but If I wanted to do one, I would then make a substitute to the KT motor controllers because they are really cheap, so users could swap one electronics for the other but keeping the same metal case and possible wiring and connectors, because at least the metal case is expensive and difficult for DIY.
You are comparing the wrong KT motor controller case, as there are very small ones for the 250W motors. Since I know, that cases are kind of standard on the EBike motor controllers.mxlemming said:Of all the things you could possibly want to keep hold of, the enormous ugly metal box is surprising.
I will watch this with interest regardless, and if the results seem particularly good... I guess I shall have to make a fork To be honest, the DIY EBike community kind of needs a good alternative to VESC, which is... not especially good motor control with a shiny interface. While we'd probably all be better of with Lebowski code, the assembly and dsPIC is remarkably off putting.
casainho said:You are comparing the wrong KT motor controller case, as there are very small ones for the 250W motors. Since I know, that cases are kind of standard on the EBike motor controllers.mxlemming said:Of all the things you could possibly want to keep hold of, the enormous ugly metal box is surprising.
I will watch this with interest regardless, and if the results seem particularly good... I guess I shall have to make a fork To be honest, the DIY EBike community kind of needs a good alternative to VESC, which is... not especially good motor control with a shiny interface. While we'd probably all be better of with Lebowski code, the assembly and dsPIC is remarkably off putting.
If you develop and EBike motor controller, then consider to integrate our EBike wireless, that works with Bluetooth phones and GPS cycling displays, all wireless.
casainho said:but keeping the same metal case and possible wiring and connectors
Your board would need to have advantages over the others other way why bothering?, so, putting a more powerful controller inside the same case would be a big advantage. Also if this controller is for DIY, then I would use extra space to add pads for extra DIY circuit / inputs, like analog and digital inputs / outputs -- this would be another advantage and distinguish between the other commercial controllers. For TSDZ2 we use an extra analog input foe the motor temperature sensor. And users look for other outputs for control lights. KT motor controllers are nice because they also have some of this extra pads / connections.mxlemming said:I'm not comparing the wrong one... The little MESC board in that pic can push many kW.... so I am comparing it to the 1.5kW KT case.
If I made a 250W board, it would be <half the size again.
michih. said:https://www.ebay.de/itm/174321114587
This are the right J-Link?
MFG Michael
stancecoke said:casainho said:but keeping the same metal case and possible wiring and connectors
I would recomment to use the Hailong-case shape for a homebrewed universal controller, the battery case is very popular and you get a much more clean appearance at the bike, with no additional controller case...
https://www.ebay.com/itm/173619579472
regards
stancecoke
Yes, I bought that one although I did not yet tested it. That is just the same concept as the cheap ST-LinkV2 we use to flash TSDZ2 motor controller firmware and the displays firmware.michih. said:https://www.ebay.de/itm/174321114587
is that the right j-link