Skip to content

Latest commit

 

History

History
36 lines (18 loc) · 1.66 KB

File metadata and controls

36 lines (18 loc) · 1.66 KB

Raspberry-Pi-iButton-key-tag-to-mqtt

Python script for read and publish via MQTT the keytag of iButton DS1990A, DS1985-F5+, DS1971+F5 with OneWire BUS of the Raspberry Pi

IMG_20210819_020156_1

IMG_20210819_020208

When using long wires (200mt max), and 3.3V power, a pullup resistor in the 1K to 2.7K range may be required. Check the diagram

circuit

First of all, update Raspbian. At boot, the OneWire BUS is disabled by default. To enable it, use “Raspberry Pi Configuration”. This is found under : Menu > Preferences > Raspberry Pi Configuration, and reboot.

1

2

3

4

This script require eclipse/mosquitto, and eclipse/paho.mqtt.python.

To install the required components, follow the instructions in the links below:

This script can run only with sudo

sudo python ibuttontomqtt.py