Scott33 Posted March 23, 2019 Report Share Posted March 23, 2019 It'd be great if the GP PWM feature could be further expanded to support PID feedback control. So configuration would include things like: 1. Target map (2 or 3d map taking analog or canbus inputs and mapping them to a target value) 2. Current value (which analog input represents the current value) 3. P, I, D parameters 4. PWM frequency (assuming the PID loop is tuning the duty cycle) 5. Base duty cycle (2 or 3d map taking analog or canbus inputs and mapping them to an estimated duty cycle, in order to reduce the error the PID algorithm needs to compensate) I'm sure other parameters could be added too, but that would be a great start. With that, I could control the oil pressure on a BMW N20 engine (it has a solenoid that can be used to change the efficiency of the oil pump so one can reduce oil pressure). Without this the motor falls back to a mechanical fail safe relief valve. If it was feature-ful enough (ability to add extra maps as modifiers, either through addition or multiplication) then you could probably remove Boost Control as a separately defined function and just rely on this instead. Quote Link to comment Share on other sites More sharing options...
Ducie54 Posted March 23, 2019 Report Share Posted March 23, 2019 Why can't you just use a 3d table with RPM and ECT on the axis to control oil pressure. How close to you need it to track your target? I use a 3d table to set ECT. Works well in that situation. Quote Link to comment Share on other sites More sharing options...
Scott33 Posted March 23, 2019 Author Report Share Posted March 23, 2019 True (though I'd use oil temp, not engine temp, in order to compensate for the change in oil viscosity). It'd just be nicer to have pid capabilities available in a generic way. What do you control with that output? Water pump speed, or thermostat heater? Quote Link to comment Share on other sites More sharing options...
Ducie54 Posted March 23, 2019 Report Share Posted March 23, 2019 I control water pump speed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.