TOP Contributors

  1. MIKROE (2654 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136748 times)
  2. FAT32 Library (69954 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46267 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41178 times)
  7. GSM click (28986 times)
  8. PID Library (26414 times)
  9. mikroSDK (26366 times)
  10. microSD click (25377 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

Honeywell I2C pressure sensor

Rating:

5

Author: Larry Reisinger

Last Updated: 2011-12-27

Package Version: 1.0.0.0

Category: Measurement

Downloaded: 1551 times

Not followed.

License: MIT license  

A simple function to read any Honeywell I2C pressure sensor. This function returns a 14-bit word, and the actual pressure depends on the range of the particular unit. The code can be fairly easily modified to also read device temperature and status bits if desired.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Honeywell I2C pressure sensor" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Honeywell I2C pressure sensor" changes.

Do you want to report abuse regarding "Honeywell I2C pressure sensor".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

This works with all of the I2C interface Honeywell pressure sensors. See attached tech note. The sensor can be read three ways; only pressure (2 bytes) pressure and low-res temperature (3 bytes) or pressure and high res temperature (4 bytes). This library only reads the pressure, but can be easily modified to read temperature as well. 


To use:

1) call I2Cx init(100000). The device can operate at 400000, if the circuit can support that.
2) 'getpress' is a function of type word, and is the 14-bit 0-16.383 scaled, temperature compensated pressure reading. Temperature compensation in the program code is not required. 
3) If any but I2C1 port is used, change all calls in the unit 'getpress' to the appropriate port.

This was developed and tested on a PIC32, but should run unmodified on any Pascal platform (slight modification of the I2C library usage may be required). It should also be very simple to translate to C or BASIC. 

ALSO FROM THIS AUTHOR

Microchip MCP7940N RTC example

0

This is too small to bother with a library, these are just some snippets of code that have been tested with a Microchip MCP7940N RTC.

[Learn More]

Sitronix ST7565 LCD driver

5

Basic routines for Sitronix ST7565 series LCD driver with parallel interface This is used in many 128x64 COG units, and the DOGM modular system. This was developed and tested on PIC32, but should run directly on PIC24 and 18, and with slight modifications on AVR.

[Learn More]