I am a bit stuck in this offset and span measure of a pressure sensor.
I use the MPXV5004DP differential sensor and it gives and offsset around 1 volt at 0 differential pressure with max 4.92 volts for 39.22 mbar differential pressure.
So the span is 3.92 volts for 0-39.2 mbar, the offset depends on the device and may range from 0.75 up to 1.25 volts.
I would like to make an semi-automatic offset calculation on first program execution. Then arrange the 0-39.2 mbar to 0-5 volts but am confussed on the maths.
My A/D converter is 10bits. Any tip appreciated,
Ioannis
Bookmarks