-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wiring for DS18B20 #8
Comments
You don't connect it to any GPIO pin at all since a RaspberryPi have no native OneWire support. What you need is a DS2482 chip in between like this one. |
@Rinsen Do you have a Fritzing diagram / pictures to indicate how things are wired up? Thanks! Update: Presume this would do the trick? http://raspberrypi.tomasgreno.cz/thermal-sensor-i2c.html |
Yes, that is how I use it @chrisahardie |
@Rinsen I picked up the unit you linked to above, but I can't find a datasheet for it anywhere. My DS18B20 has three wires for ground, power, and data, but there are 6 terminals in the unit: The terminals are labelled:
I presume my data wire should be screwed into I've tried different combinations and I am getting Thanks! |
Hi! I am not at home right now, but will get back to you as soon as I am so I know that I answer in the same way as I use it. |
Thanks @Rinsen ! |
That error is related to not finding any DS2482-100 chip to talk with. Are you sure that the connector is mounted in the correct position? Test to run the board without connection any One Wire devices at all to begin with to try tog get rid of that error. Also make sure to double check that the AD0 and AD1 is in the same position as in the ctor. |
I wasn't getting an error when I had no wires screwed into any terminal - I would just get an empty collection for my device list. Will I get this error if my wires have been inserted incorrectly? I am unclear about which wire goes into which terminal, and once I start guessing I get the aforementioned error. Can you please let me know which terminals do I screw in the power, ground, and data wires? Thanks! |
I have connected my sensor to +5V, GND and DQ to each pin on the sensor so I don't use it with parasite power. Here is the datasheet for the chip https://datasheets.maximintegrated.com/en/ds/DS2482-100.pdf There are some diagnostics that can be used in the chip but I have never had a need for that. |
Thanks @Rinsen! Turns out this thermometer has different configurations for the yellow and green wires (https://github.com/espruino/EspruinoDocs/blob/master/devices/DS18B20.md) I apparently bought a version with the colour coding I wasn't expecting - I reversed the green and yellow and now everything works great! Sorry for wasting your time, many thanks for writing this useful library! |
It gave me some new insight also so no problems 😊 |
Hello I am trying to use your bookseller in a project with the following elements: -RPi 3 Model B on Windows IoT I always get the same error message whatever connection I make with my sensor. This error message is as follows: Thrown Exception: ' Rinsen. IoT. OneWire. DS2482100DeviceNotFoundException ' in OneWireHeaded. exe Could you tell me how to connect this sensor to the RPi? Thank you |
@DrouSoft The reason for getting that error is probably just that you don't have a DS2482 chip on that board? What you could do is run one wire from the arduino and then talk with the arduino from .Net on your Pie. But that is a whole other beast to build than what this library provides. For this Library the only supported setup is RPi -> DS2482 chip -> One Wire device like the DS18B20 or some other. Please get back if I have missunderstod. |
For the DS18B20 thermistor do you just need to connect it to any one of the GPIO ports?
Thanks
The text was updated successfully, but these errors were encountered: