Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:iot-open:practical:hardware:sut:esp32:emb4_1 [2024/03/21 20:43] – [FAQ] pczekalski | en:iot-open:practical:hardware:sut:esp32:emb4_1 [2024/04/22 17:55] (current) – ToDo checked: check if you don't need to call sensors.requestTemperatures(); before the code below ktokarz |
---|
<todo @pczekalski>Finish this scenario </todo> | |
====== EMB4: 1-Wire Temperature Sensor ===== | ====== EMB4: 1-Wire Temperature Sensor ===== |
The temperature-only sensor **DS18B20** uses a 1-wire protocol. "1-wire" applies only to the bidirectional bus; power and GND are on separate pins. The sensor is connected to the MCU using GPIO 6 only. Many devices can be connected on a single 1-wire bus, each with a unique ID. **DS18B20** also has a water-proof metal enclosure version (but here, in our lab, we use a plastic one) that enables easy monitoring of the liquid's temperature. | The temperature-only sensor **DS18B20** uses a 1-wire protocol. "1-wire" applies only to the bidirectional bus; power and GND are on separate pins. The sensor is connected to the MCU using GPIO 6 only. Many devices can be connected on a single 1-wire bus, each with a unique ID. **DS18B20** also has a water-proof metal enclosure version (but here, in our lab, we use a plastic one) that enables easy monitoring of the liquid's temperature. |
| |
=== Step 4 === | === Step 4 === |
| <todo @pczekalski #ktokarz:2024-04-22> check if you don't need to call sensors.requestTemperatures(); before the code below </todo> |
Read the data: | Read the data: |
<code c> | <code c> |
| |
| |
| <WRAP noprint> |
===== Project information ===== | ===== Project information ===== |
{{:en:iot-open:logo_iot_200_px.png?200|}}\\ | {{:en:iot-open:logo_iot_200_px.png?200|}}\\ |
{{:en:iot-open:ccbync.png?100|}} | {{:en:iot-open:ccbync.png?100|}} |
</figure> | </figure> |
| </WRAP> |
| |
| |