1 Wire & my Devices
The 1 Wire Pi Plus and 1 Wire Pi Zero are a 1 Wire interface for the Raspberry Pi
02/02/2018
Posted by:
Clownfishy
Any pointers would be gratfully received
02/02/2018
Posted by:
andrew
I will have a dig through their API to see if it is possible to add our boards to their system but in the meantime, it may be worth posting a message on their forums to see if they have any plans to add support for the DS2482-100.
02/02/2018
Posted by:
Clownfishy
Thanks again for your help as I am trying to reserect the buiding of an aquarium monitor listed below and was hoping to use Cayenne to display the data.
On other question, can this same 1 Wire Pi board be used in some way to connect to the ph altas scientifc circuit
02/02/2018
Posted by:
Clownfishy
http://community.mydevices.com/t/ab-electronics-1-wire-pi/7553/2
02/02/2018
Posted by:
andrew
The easiest way to connect the board would be to use the UART bus which is pins 8 and 10 on the GPIO header. You will need to connect the Vcc pin on the board to pin 1 or 3.3V on the Raspberry Pi GPIO, GND connects to pin 6 on the GPIO header, RX goes to pin 8 and TX goes to pin 10. You can find a list of the GPIO pins at Pinout.xyz/
Just make sure you are powering the board from the 3.3V pin and not 5V otherwise you could damage the UART pins on the GPIO header.
To use the UART bus on your Raspberry Pi you will first need to enable it and disable the console mode which is what Raspbian Linux is set to by default. We have a tutorial in our Knowledge Base for setting up the serial port on a Raspberry Pi.
03/02/2018
Posted by:
andrew
You can find the script at cayenne_1wire_temperature.py
To get the script working you will first need to install the Cayenne system on your Raspberry Pi if you haven't done so already. You can do this on the Cayenne dashboard by clicking "Add new...", selecting Raspberry Pi and following the instructions.
Next, install the python MQTT library with the command below on your Raspberry Pi.
pip install cayenne-mqtt
To add the 1-Wire sensors click the "Add new..." button, select "Devices & Widgets" and then "Bring Your Own Thing". A page will load with a list of SDKs on the left and the device details on the right. You will need to copy the MQTT username, password and client ID into the python script I wrote, replacing the "USERNAME", "PASSWORD", and "CLIENT_ID" strings on lines 8, 9 and 10. Now run the python script with:
python cayenne_1wire_temperature.py
If the script works correctly you should get a list of the available 1-Wire devices that appear on the screen and then it will start uploading the temperatures from each sensor every 10 seconds.
Hopefully, this will help you get your sensors onto the Cayenne system.
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.