Sensor for barometric pressure
RDL2004
Posts: 2,554
I was thinking of adding a barometer to my little "weather station". My first poking around on the internet led me to the Freescale (Motorola) mpx4115. I found quite a bit of info and it looks like a good place to start. I was just wondering if anyone else had tried it or if maybe there was a better choice.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick

Comments
Here is a code snippet of how I calculate the pressure using a 10bit adc directly connected to the sensor output. (This is CCS C code for a PIC16F876).
float get_barometer() { long raw; set_adc_channel(0); delay_ms(1); raw = read_adc(); return ((float)raw * 0.03212) + 3.12 + BARO_LOCAL_OFFSET; //calculate barometric pressure in inches hg }I ordered my sensor from www.phanderson.com. My weather station is at: wx.harrisonpham.com/ .
Harrison
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Works great. The amp circuit is attached as well as a spreadsheet the designer included. The resistor values I used are for 1000' above sea level and have to be changed if your altitude is over 3000'. My program is in PIC assembly, so I won't be any help coding it in BASIC.