Pulling my hair out, so posting here as a last resort. Otherwise fine Tesla SDU running on openinverter - however I cannot no matter what I try and do, get any regen at all (potnom never drops below zero)
Params attached, but I've tried many variations and trying to have pot2 both set to zero and 4095. My expectation is there should be some regen ramped in when off throttle. I'm really hoping I've missed something incredibly stupid. Can anyone suggest? Is it possible I need a pot2 value above the value of ~23 I have now - even when setting pot2 max to zero?
Running 5.14 - params attached
Thankyou!
Tesla SDU - Unable to get any regen at all [SOLVED]
Tesla SDU - Unable to get any regen at all
- Attachments
-
- params (1).json
- (1.44 KiB) Downloaded 62 times
- johu
- Site Admin
- Posts: 5812
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1042 times
- Contact:
Re: Tesla SDU - Unable to get any regen at all
Looks ok. Is udc measuring correctly?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Tesla SDU - Unable to get any regen at all
Yes, reading about 400V - I've even reapplied damian's default params and tried to add some regen to no avail. Perhaps I have a corrupt config memory? Is it worth using the default revert button?
-
- Posts: 47
- Joined: Fri Mar 22, 2019 7:44 pm
Re: Tesla SDU - Unable to get any regen at all
Is there a flag or other boolean / signal that says the battery is fully charged?
Friends don't let software friends do hardware design
- johu
- Site Admin
- Posts: 5812
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1042 times
- Contact:
Re: Tesla SDU - Unable to get any regen at all
If the parameter memory is corrupt it will load (useless) defaults anyway as a CRC is stored along with the parameters.
I'm assuming your throttle is also calibrated correctly?
I'm assuming your throttle is also calibrated correctly?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Tesla SDU - Unable to get any regen at all
Yes, throttle within range. I've also added a brake digital input and wired up pot2. Even with pot2 calibrated and set high - potnom never drops below zero. Pulling the digital brake input high shows activated, and inhibits throttle, but again no regen and no negative potnom at rest or whilst motor spinning. Error memory showing no errors.
What parameters out of range could cause regen to be inhibited? udcmax, idcmin, throtmin, bmslimlow? Possible to have a sign wrong? idcmin should be entered as negative value right?
What parameters out of range could cause regen to be inhibited? udcmax, idcmin, throtmin, bmslimlow? Possible to have a sign wrong? idcmin should be entered as negative value right?
- johu
- Site Admin
- Posts: 5812
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1042 times
- Contact:
Re: Tesla SDU - Unable to get any regen at all
Code: Select all
throtSpnt = GetUserThrottleCommand();
bool determineDirection = GetCruiseCreepCommand(finalSpnt, throtSpnt);
finalSpnt = Throttle::RampThrottle(finalSpnt);
if (hwRev != HW_TESLA)
Throttle::BmsLimitCommand(finalSpnt, Param::GetBool(Param::din_bms));
Throttle::UdcLimitCommand(finalSpnt, Param::GetFloat(Param::udc));
Throttle::IdcLimitCommand(finalSpnt, Param::GetFloat(Param::idc));
Throttle::FrequencyLimitCommand(finalSpnt, Param::GetFloat(Param::fstat));
if (Throttle::TemperatureDerate(Param::GetFloat(Param::tmphs), Param::GetFloat(Param::tmphsmax), finalSpnt))
{
DigIo::err_out.Set();
ErrorMessage::Post(ERR_TMPHSMAX);
}
if (Throttle::TemperatureDerate(Param::GetFloat(Param::tmpm), Param::GetFloat(Param::tmpmmax), finalSpnt))
{
DigIo::err_out.Set();
ErrorMessage::Post(ERR_TMPMMAX);
}
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- johu
- Site Admin
- Posts: 5812
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1042 times
- Contact:
Re: Tesla SDU - Unable to get any regen at all [SOLVED]
Oh yeah, just checked again. You have speedkp=0 . That means the idle speed controller will override any negative throttle. Not greatest usability I admit. Set idlemode off and speedkp=0.25
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9