Sensors with serial interface
There are 2 sensors with analogue to digital conversion already implemented with the chip:
- the DS18B20 digital thermometer from Maxim
- the DHT11 digital thermometer and humidity sensor
The DSB20 implements Maxim's 1-wire protocol and our Linux system provides a device driver that periodically reads this chip and displays the temperature value read in the /sys directory.
The DHT11 implements its own private protocol and the user must either write his own device driver or otherwise decode the protocol.
Both PCBs implement an LED in addition to the sensor chip itself: The DHT11 simply shows it the boards is powered while on the DS18B20 the LED is connected to the data line showing when the chip is accessed.
|
|
The DS18B20 |
The DHT11 |
On the DS18B20 the S pin corresponds to the data line. While in principle the chip can be powered by pulling up the data line, in which case the middle pin is unused, we provide Vcc power to the chip through the middle pin.
--
Uli Raich - 2017-02-04
Comments
Topic revision: r1 - 2017-02-04
- uli