Posts

Showing posts with the label DS18S20

Digital Clock Date and Thermometer using PIC16F628 PIC16F84 PIC16F690 and DS18S20 or DS18B20

Image
This is a small adjustable clock/date with thermometer function based on PIC16F628 or PIC16F84 microchip and DS18S20 or DS18B20 temperature sensor. The hardware part is very simple because it only uses a pic microcontroller, the DS18S20/DS18B20 sensor, 4x7 segments (common anode, something like KW4-301xxx Series, or common cathode something like CC56-21SURKWA), four transistors, some rezistors! When you first power the device the clock is mentained for 8 seconds. Then the date for 2 seconds and temperature will be displayed for 3 seconds. The clock has four buttons, with one button you enter in set mode, with another button you increase values, the third button will be used to decrease values and you can put or not, the reset. If you don't want a reset button just connect the pin to +5V. You can change: ho -> hour, from 0 to 23 nn -> minutes, from 0 to 59 (I could not display m so I used n twice for it) dd -> date day, from 1 to days/month -> calculated based on month...