I want to implement a really simple OBDII emulator (educational) that will send info like Air/Coolant Temperature, RPM, Throttle Position, Air Flow etc.
The thing is I want to send values that are somehow valid. ideally I want only as input a potentiometer that is the accelerator pental.
Are there any crude functions for a car engine? E.g. the Amount of air flow in relation to RPMs and Accelerator pental.
Alexander.
First you need to understand there's a few ways of doing it.
Typically most accelerator throttle bodies are still bowden cable operated and there's a TPS connected to the throttle butterfly shaft to indicate the
real throttle position. Then to add complexity there's also real 'fly by wire' accelerators where there's no physical throttle cable connection between the pedal and the throttle body.
Airflow is controlled in the throttle body
but measured in two common ways, hot wire or a sprung vane that has it's own positional sensor.
First you sort out what you have and then what info you need from it.