BMP085/en

Материал из Wiren Board
Это утверждённая версия страницы. Она же — наиболее свежая версия.
Другие языки:

Temperature and pressure sensors BMP085 and BMP180

Connection

The sensors are connected to the hardware I2C bus ([UEXT1 connector]) to use the Wiren Board Smart Home 3.5 controller. The Pinout of the connector UEXT: http://en.wikipedia.org/wiki/UEXT

Configuring the hardware I2C bus

Find the section with the comment: /* uncomment do not enable hardware with I2C */

/* Uncomment no enable hardware i2c */
/*
			i2c0: i2c@80058000 {
				pinctrl-names = "default";
				pinctrl-0 = <&i2c0_pins_a>;
				status = "okay";
			};
*/

uncomment:

/* Uncomment no enable hardware i2c */
			i2c0: i2c@80058000 {
				pinctrl-names = "default";
				pinctrl-0 = <&i2c0_pins_a>;
				status = "okay";
			};

In addition, make sure that the list of pinctrl@80018000 pinctrl-0 does not refer to I2C:

			pinctrl@80018000 {
				pinctrl-names = "default";
				pinctrl-0 = <&hog_pins_a
							&pin_gpio_pu_0_5
							&pin_gpio_pu_0_6
							&pin_gpio_pu_0_7
							&pin_gpio_pu_0_16
							>;

Compiled DTS with enabled I2C interface for Wiren Board Smart Home 3.5: http://contactless.ru/wiki/index.php/%D0%A4%D0%B0%D0%B9%D0%BB:Imx23-wirenboard32.dtb

Тranslation into MQTT

apt-get update
apt-get install wb-mqtt-bmp085

Source code: https://github.com/contactless/wb-mqtt-bmp085