We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi
iam measuring the vacuum using vacuum sensor and displaying on the controller(AD571 ADC,89C51 controller,LCD).
For 0v=10mbar, 1v=20mbar, 2v=30mbar, . . . 9v=90mbar, 10v=100mbar
When I removed sensor from controller it is showing 10mbar (0v) on the display.
How to do when I removed sensor from controller it should display "SENSOR OPEN".
How to detect or sense weather sensor is connected to the controller or not .
Regards nari
Presumably, your ADC is simply measuring voltage?
So there is no way that it can distinguish where that voltage comes from - in particular whether 0V is a genuine signal from the sensor, or is just due to the absence of the sensor!
Do you send an excitation current through your sensor? If so, you could try detecting that.
Or maybe you could add an offset somehow so that 0V can never happen when a sensor is present.
Or add some kind of bias that will pull the input negative in the absence of a sensor.
Without any details of your sensor and how you're using, it is impossible to make any definite suggestions!
None of this, of course, has anything to do with Keil software development tools! (nor even anything specifically to do with the 8051)