BMP085/en: различия между версиями
FuzzyBot (обсуждение | вклад) (Обновление для соответствия новой версии исходной страницы.) |
(Новая страница: «=== Configuring the hardware I2C bus ===») |
||
(не показано 6 промежуточных версий 1 участника) | |||
Строка 1: | Строка 1: | ||
==Temperature and pressure sensors BMP085 and BMP180== | ==Temperature and pressure sensors BMP085 and BMP180== | ||
=== Connection === | === Connection === | ||
Строка 7: | Строка 6: | ||
=== Configuring the hardware I2C bus === | === Configuring the hardware I2C bus === | ||
Найдите секцию с комментарием: /* Uncomment no enable hardware i2c */ | |||
<pre> | <pre> | ||
Строка 21: | Строка 20: | ||
</pre> | </pre> | ||
раскоментируйте её: | |||
<pre> | <pre> | ||
/* Uncomment no enable hardware i2c */ | /* Uncomment no enable hardware i2c */ | ||
Строка 31: | Строка 30: | ||
</pre> | </pre> | ||
Кроме этого убедитесь, что список pinctrl@80018000 pinctrl-0 не содержит упоминания i2c: | |||
<pre> | <pre> | ||
Строка 44: | Строка 43: | ||
</pre> | </pre> | ||
Скомпилированный DTS с включённым i2c для версии Wiren Board Smart Home 3.5: http://contactless.ru/wiki/index.php/%D0%A4%D0%B0%D0%B9%D0%BB:Imx23-wirenboard32.dtb | |||
=== | === Трансляция в MQTT === | ||
<pre> | <pre> | ||
apt-get update | apt-get update | ||
Строка 52: | Строка 51: | ||
</pre> | </pre> | ||
Исходный код: https://github.com/contactless/wb-mqtt-bmp085 |
Версия 19:40, 11 июня 2019
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
Найдите секцию с комментарием: /* Uncomment no enable hardware i2c */
/* Uncomment no enable hardware i2c */ /* i2c0: i2c@80058000 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; }; */
раскоментируйте её:
/* Uncomment no enable hardware i2c */ i2c0: i2c@80058000 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; };
Кроме этого убедитесь, что список pinctrl@80018000 pinctrl-0 не содержит упоминания 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 >;
Скомпилированный DTS с включённым i2c для версии Wiren Board Smart Home 3.5: http://contactless.ru/wiki/index.php/%D0%A4%D0%B0%D0%B9%D0%BB:Imx23-wirenboard32.dtb
Трансляция в MQTT
apt-get update apt-get install wb-mqtt-bmp085
Исходный код: https://github.com/contactless/wb-mqtt-bmp085