官术网_书友最值得收藏!

Connectting digital input - sensor DS18B20

The Raspberry Pi has digital pins, so in this section, we will look at how to connect a digital sensor to the board. We will use the digital sensor DS18B20, which has a digital output and can be perfectly connected to a digital input in our Raspberry Pi sensor. The main idea is to take temperature readings from the sensor and display them on the screen.

Hardware requirements

We will require the following hardware to take the temperature reading:

  • Temperature sensor DS18B20 (waterproof)
  • One resistor of 4.7 kilo-ohms
  • Some jumper wires
  • A breadboard

We will use a waterproof sensor DS18B20 and a 4.7 kilo-ohm resistor:

Hardware requirements

This is the waterproof sensor that we are using in this project.

Hardware connections

The following diagram shows the circuit on the breadboard, with the sensor and the resistor:

Hardware connections

In the following image, we can see the circuit with the sensor:

Hardware connections
主站蜘蛛池模板: 霸州市| 丽江市| 福建省| 黄骅市| 大庆市| 万载县| 汝阳县| 绿春县| 彭阳县| 潼南县| 遂宁市| 津市市| 丰城市| 北辰区| 确山县| 长春市| 武安市| 那曲县| 禹州市| 响水县| 潼南县| 高清| 林芝县| 宣城市| 开平市| 新巴尔虎右旗| 海兴县| 南丰县| 大邑县| 通化县| 常宁市| 图木舒克市| 富阳市| 崇义县| 台江县| 石柱| 黄山市| 茶陵县| 疏勒县| 东阿县| 轮台县|