Closed ElDominio closed 1 year ago
@Qwerty-OFF any ideas why would Hellen-based Hyundai 154 use ETB PID settings matching Proteus while Hellen-based would be pretty different, with PID auto-tune working on Proteus and Hyundai 154 but failing on 4chan?
What sort of capacitors does hyundai board use near the ETB chip? Ceramic or electrolytic?
Proteus -> electrolytic
4chan -> ceramic
old hyundai https://raw.githubusercontent.com/wiki/rusefi/rusefi/Hardware/Hellen/hellen154hyundai-rev-b.jpg ceramic?
new hyundai I do not have any photo :( @ElDominio ?
8chan ceramic
@mck1117 adding electrolytic did not change anything :(
@dron0gus says
that did not help :(
@mck1117 @andreika-git I am out of ideas. Sounds like we need an EE person to touch this? Would any sort of logs help do we even log useful stuff?
https://github.com/rusefi/alphax-4chan/issues/110 another crazy one
I don't think there are any useful logs to have here that aren't an oscilloscope.
actually, can you take a maxed out TS rate log of auto calibrate both in the GOOD and BAD scenarios, for clear side-by-side comparison?
@mck1117
BAD 4chan https://rusefi.com/online/view.php?log=1201 GOOD proteus https://rusefi.com/online/view.php?log=1203
@mck1117 poke about above good vs bad
The 4chan log has "OBD_TPS1_Correlation" error, which means the problem is with TPS1 (hardware or wrong settings?) - that's why PID autotune fails.
The OBD_TPS1_Correlation error appears when one of TPS sensors (TPS1 or TPS2) has an invalid signal. As a test, we can disable the TPS2 and try in 'ignoreSecond' mode.
bad left, good right
In the good case, it looks more sinusoidal, and in the bad case, it looks much steeper on opening than closing.
In the bad case there are also some weird "runt" cycles like this:
In the good case it's much more "stable"
The 4chan log has "OBD_TPS1_Correlation" error, which means the problem is with TPS1 (hardware or wrong settings?) - that's why PID autotune fails.
The OBD_TPS1_Correlation error appears when one of TPS sensors (TPS1 or TPS2) has an invalid signal. As a test, we can disable the TPS2 and try in 'ignoreSecond' mode.
That warning isn't active at the time autotune is running. That's not the problem.
that's why PID autotune fails.
The logs show the firmware is doing fine, and doing the same thing in both cases. It also looks like something is electrically or mechanically wrong: see the weird TPS waveform on the "bad" log.
Wait, alphax 4chan is using pin C6 for PWM.
stm32_common.cpp
says
But mcuconf_common_f4_f7.h
says
4CHAN IS USING SOFTWARE PWM FOR ETB
Fixed
Damn that's a shameful issue :(
Damn that's a shameful issue :(
this should be a lesson for “electrical weirdness -> get out a scope and look at it instead of shooting in the dark for a month”
@rusefillc was this tested before closing?
@rusefillc was this tested before closing?
yes. my bad not posting happy artifacts
and this justifies a new release actually!
Tested today, way, way better results! :D
So I have had differing experiences with Hellen-based hardware on hellen154 vs 4chan
On Hyundai 154, I can use autotune just fine, and the PID settings are usually P = 0xx.xx I = 0xxx.xx D = 0.xxxx
On 4chan P = 0x.xx (usually around 0.8-2) I = 0xx.xx (usually around 10-15) D = 0.0xxx (usually around 0.02-0.09) Using autotune drives it too crazy, and usually overheats. Using settings by hand usually makes it works quite well.