In this video, I'll show you how to display a DS18B20 temperature sensor on a 4-digit 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 seven-segment 4-digit 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 seven-segment LED indicator.
Wiring diagram for ATtiny13, shift register 74HC595, LED indicator and DS18B20 temperature sensor - drive.google.com/file/d/1iUqC...
Video sketch - 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 - forum.sources.ru/index.php?sh...
Links to electronic components from the video:
- Shift register 74HC595 - alii.pub/62ncee
- Various options for 7-segment LED indicators with a common cathode and anode - alii.pub/62ncdt
- DS18B20 temperature sensor - alii.pub/62nch4
- DS18B20 temperature sensor in a sealed case - alii.pub/62nciv
- ATtiny13 DIP - alii.pub/62nc0s
- ATtiny13 SOP package - alii.pub/62nc25
- ATtiny85 DIP package - alii.pub/62nc3w
- SOP8-DIP8 adapter for ATtiny13 / 25/45/85 - 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
Негізгі бет Ғылым және технология ATtiny13 + DS18B20 temperature sensor. We display the temperature on the LED indicator
Пікірлер: 49