stancecoke
1 MW
It's not a problem of interrupt handling but of noise on the signal.
regards
stancecoke
regards
stancecoke
stancecoke said:Have you tried the latest commit? I've added some Software filtering some days ago....
regards
stancecoke
Are you guys using an input that is originally used for the speed sensor?stancecoke said:It's not a problem of interrupt handling but of noise on the signal.
casainho said:Are you guys using an input that is originally used for the speed sensor?stancecoke said:It's not a problem of interrupt handling but of noise on the signal.
Because using the BMSBattery speed sensors (cheap ones) and also TSDZ2 speed sensors, I never got such issue. The hardware has a low pass filter to filter noise.
stancecoke said:I've added debounce now at github. Please try again. If it still doesn't work, please log ui16_SPEED and post the result.
regards
stancecoke
geofft said:stancecoke said:I've added debounce now at github. Please try again. If it still doesn't work, please log ui16_SPEED and post the result.
regards
stancecoke
Still the same I'm afraid, no difference in the speed readout behaviour...![]()
I'll do the logging you asked for tomorrow.
casainho said:On TSDZ2 firmware (like on KT firmware), when motor is stopped the wheel/motor is engaged because the motor coils are powered on. If I force to rotate backwards the wheel, I see the torque sensor signal of TSDZ2 to get active while to should not!!
geofft said:stancecoke, ignore this message for now, I've just noticed some strange behaviour during the build and flash of that latest github download and I'm not sure it's actually being flashed. I'll do this again tomorrow with a fresh mind... :?
stancecoke said:casainho said:On TSDZ2 firmware (like on KT firmware), when motor is stopped the wheel/motor is engaged because the motor coils are powered on. If I force to rotate backwards the wheel, I see the torque sensor signal of TSDZ2 to get active while to should not!!
I never had that issue with my BionX DD and the BMS BB Torque sensor. Why should the sensor "see" any torque while pulling the bike in reverse?
geofft reported the issue in torque-simulation mode, but this has to be a malfunction of the direction detection of the PAS signal.
regards
stancecoke
geofft said:I now have a further problem. The throttle response in the recent downloads (I was using torque sim/throttle, offroad mode) has been very sharp when used from a standstill with little progression. This, unfortunately, has just damaged the controller.
geofft said:it may just be bad user settings, I haven't really checked anything yet.
Both green phase mosfets had shorted, controller now ok.stancecoke said:geofft said:I now have a further problem. The throttle response in the recent downloads (I was using torque sim/throttle, offroad mode) has been very sharp when used from a standstill with little progression. This, unfortunately, has just damaged the controller.
Hmm, strange. The only thing I changed in the last few weeks is the phase current limiting, that should protect the mosfets, not kill them....
geofft said:it may just be bad user settings, I haven't really checked anything yet.
Yes, please check/post the settings. I'm running the firmware in torque-sensor mode (that has no phase current limit, as the motor can't start from standstill in this mode) and I'm really satisfied at the moment...
regards
stancecoke
Sorry, brain fade...stancecoke said:Nothing attached?
I have to check the phase current limiting algorithm I think...
regards
stancecoke
stancecoke said:Good to hear, that the controller is working again and the throttle behaviour is OK with the new gain settings![]()
In the config.h there are still 0.5 and 0.2, I think this is an old one?
You have defined 500 for max battery current (=18,8A) and 800 for max phase current (=48A) I think these are quite high values for a 6 FET....
I did manage to take a datalog from a short ride today with some 'interesting' results. I'll post the details of this tomorrow
Maybe you can try my branch and see if it works, if works, than that hardware is ok and we will know it works with my code and will be an option. I just say this because you told before that you get not problem with my code.geofft said:Tried disconnecting the HC-05 5v line (from spare brake connector) but still the same.
I'll try re-downloading and starting again as you suggest.
Please don't spend any more time on this, it all started from from chasing the speedometer error which isn't a great problem in reality.
If I discover any more useful information on this I'll let you know...![]()
casainho said:Maybe you can try my branch and see if it works, if works, than that hardware is ok and we will know it works with my code and will be an option. I just say this because you told before that you get not problem with my code.