文件名称:bmp180
- 所属分类:
 - 单片机(51,AVR,MSP430等)
 - 资源属性:
 - [C/C++] [源码]
 - 上传时间:
 - 2014-03-24
 - 文件大小:
 - 5kb
 - 下载次数:
 - 0次
 - 提 供 者:
 - 叶*
 - 相关连接:
 - 无
 - 下载说明:
 - 别用迅雷下载,失败请重下,重下不扣分!
 
下载 
            
                
                
	
	
	
	
                    别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
            如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
已经调试好的压力传感器bmp180程序,测试成功 温度和压力都准确。
单片机STM32F100
在主程序中#include "bmp180.h"
定义IO口:
#define I2C_SDA_PIN 7
#define I2C_SCL_PIN 6
#define I2C_GPIO GPIOB
gpio_init(I2C_GPIO,I2C_SDA_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz)
gpio_init(I2C_GPIO,I2C_SCL_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz)
定义全局变量:
s32 bmp180_temp,bmp180_presure //bmp180
主程序调用:
test_pressure_main()
即得到
温度bmp180_temp
压力bmp180_presure值-Has good pressure sensor bmp180 program debugging, testing, temperature and pressure are accurate success. STM32F100 microcontroller in the main program# include " bmp180.h" defined IO ports:# define I2C_SDA_PIN 7# define I2C_SCL_PIN 6# define I2C_GPIO GPIOB gpio_init (I2C_GPIO, I2C_SDA_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz) gpio_init (I2C_GPIO, I2C_SCL_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz) define global variables: s32 bmp180_temp, bmp180_presure // bmp180 main program calls: test_pressure_main () ie, get the value of the temperature bmp180_temp pressure bmp180_presure
			单片机STM32F100
在主程序中#include "bmp180.h"
定义IO口:
#define I2C_SDA_PIN 7
#define I2C_SCL_PIN 6
#define I2C_GPIO GPIOB
gpio_init(I2C_GPIO,I2C_SDA_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz)
gpio_init(I2C_GPIO,I2C_SCL_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz)
定义全局变量:
s32 bmp180_temp,bmp180_presure //bmp180
主程序调用:
test_pressure_main()
即得到
温度bmp180_temp
压力bmp180_presure值-Has good pressure sensor bmp180 program debugging, testing, temperature and pressure are accurate success. STM32F100 microcontroller in the main program# include " bmp180.h" defined IO ports:# define I2C_SDA_PIN 7# define I2C_SCL_PIN 6# define I2C_GPIO GPIOB gpio_init (I2C_GPIO, I2C_SDA_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz) gpio_init (I2C_GPIO, I2C_SCL_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz) define global variables: s32 bmp180_temp, bmp180_presure // bmp180 main program calls: test_pressure_main () ie, get the value of the temperature bmp180_temp pressure bmp180_presure
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bmp180\bmp180.c
......\bmp180.h
......\bmpi2c.c
......\bmpi2c.h
bmp180