Water Depth sensor

From Glacsweb Wiki
Jump to: navigation, search

The water depth sensor uses two pressure sensors on the custom avr plus amplifier board:

atmospheric MPX4115AP absolute

waterproof P sensor

the AVR reads both - so we need to convert them to pressure and subtract them to get water depth -

if you connect an rs485 converter and run phil's code: python client2.py /dev/ttyUSB0 9600

and get the data with "g id" you see the raw adc values

1 adc is 0.367mm water

adc0 is in water, adc1 is the one in air.