Hello Programmers,
I'm quiet frustrated now as I'm unable to figure out how I use the XGZP6847A001MPGPN pressure sensor of range -750mmHg to 7500 mmHg using ATMEGA8 chip and ADC 1 channel (10bit adc).
I've the setup already and able to get the readings from pressure sensor to display. But dont know how can I limit the pressure within specified range suppose 0mmhg to -130mmhg.
Please help me with the formula in C embededd to use.
I'm quiet frustrated now as I'm unable to figure out how I use the XGZP6847A001MPGPN pressure sensor of range -750mmHg to 7500 mmHg using ATMEGA8 chip and ADC 1 channel (10bit adc).
I've the setup already and able to get the readings from pressure sensor to display. But dont know how can I limit the pressure within specified range suppose 0mmhg to -130mmhg.
Please help me with the formula in C embededd to use.
Last edited: