Hello,
I'm trying to run a DS18B20 with the Arduino Yun.
I've wired the sensor like described in this article
http://arduino-info.wikispaces.com/Brick-Temperature-DS18B20
I'm 99% sure, that the sensor is wired correctly (bottom view, flat side up, left pin = pin 1).
So I connected the pins:
- Arduino GND to sensor pin 1
- Digital pin 2 (also tried every other pin) to sensor pin 2
- Arduino +5v to sensor pin 3
- 4,7k resistor between sensor pin 2 and 3
My problem with this is, the DS18B20 is getting quiet hot. So ok, I know, if this happens, maybe I've connected the sensor the wrong way. So, I've switched the wires of pin 1 and 3 of the sensor. The sensor stays cool but the OneWire library (installed via the Arduino IDE) can't find any devices.
So next try, with a new sensor, I thought maybe the other got damaged but also the same result.
After all, I've tried another new sensor with the parasite power mode, connecting pin 1 to GND and pin 2 to data, 4,7k resistor from +5V to data pin. No result. Another try also connecting pin 3 to GND. Also not finding any devices.
Next thought was that my arduino got damaged. So I've tested every pin (2 - 12) on my arduino with a relay board, every pin output is working as expected. I've also verified every pin's input mode, also everything's working as expected.
The sketches are also executing correctly (tried some basic examples and some custom sketches with the relay board). The linux system with WLAN connection is also fine.
So now my question is, do you have any idea what's wrong with my setup?
If you need more information please let me know.
Thank you, greetings
DLK
Here's the datasheet I've used:
Further I've also tried different versions of OneWire and DallasTemperature libraries but without any success.