Using a pressure sensor |
![]() |
Written by Vlado Berend |
Some features of the HP03M pressure sensor:
I became interested in this sensor due to its I2C communication bus. Most available pressure sensors generate a voltage output proportional to pressure. This requires the addition of both a high resolution A/D converter and a very stable reference voltage. Most pressure sensors do not have a built-in temperature sensor, so we would have to add it, if we want to measure altitude by measuring air pressure and temperature. The HP03M sensor has power supply pins, I2C pins and two additional ones: MCLK (clock) and XCLR (reset).The XCLR pin resets the A/D converter when set low. It must be held high during a conversion (which typically takes 40 milliseconds). For normal operation, the sensor’s A/D converter requires a 32 KHz external clock. The HP03M also contains a built-in EEPROM, where factory constants are stored. This EEPROM is read the same way as one would read a 24C02 EEPROM. By this I mean that the I2C Read address is the same (A1 hex). The sensor’s EEPROM stores 11 parameters that are needed for accurate calculation of air pressure and temperature. The memory map of these coefficients is shown in Table (EEPROM - stored coefficients needed for accurate calculations).
We will read two parameters from the sensor:
These values are not direct representations of pressure and temperature, but values that are used, along with the EEPROM constants, in calculating the actual pressure and temperature. There are two I2C addresses that are used to communicate with the HP03M’s sensors:
Using a pressure sensor ![]() Shop area |
Last Updated on Wednesday, 01 August 2012 14:40 |