In this video, I'll show you how to display a DS18B20 temperature sensor on a 4digit LED using the ATtiny13.
Let's figure out how to use the T0 timer overflow interrupt on the ATtiny13. And thanks to this opportunity, we will be able to maintain the necessary pause of about one second to obtain the one measured by the DS18B20 sensor.
We will use the 74HC595 shift register to display the temperature on a sevensegment 4digit LED indicator. In this case, we use most of the pins of the ATtiny13 microcontroller for two purposes transferring information to the shift register and controlling the sections of the sevensegment LED indicator.
Wiring diagram for ATtiny13, shift register 74HC595, LED indicator and DS18B20 temperature sensor https://drive.google.com/file/d/1iUqC...
Video sketch https://drive.google.com/file/d/1qion...
Link to the forum, where I borrowed most of the code for working with the DS18B20 sensor, using OneWire technology https://forum.sources.ru/index.php?sh...
Links to electronic components from the video:
Shift register 74HC595 http://alii.pub/62ncee
Various options for 7segment LED indicators with a common cathode and anode http://alii.pub/62ncdt
DS18B20 temperature sensor http://alii.pub/62nch4
DS18B20 temperature sensor in a sealed case http://alii.pub/62nciv
ATtiny13 DIP http://alii.pub/62nc0s
ATtiny13 SOP package http://alii.pub/62nc25
ATtiny85 DIP package http://alii.pub/62nc3w
SOP8DIP8 adapter for ATtiny13 / 25/45/85 http://alii.pub/62nc43
0:00 ATtiny13, DS18B20 and LED indicator
1:19 Simplifying the OneWire Library
3:40 ATtiny13 sketch
6:08 Connection diagram
7:32 Result on breadboard