7 Segment Clock With Temperature Display [ds18b20 and 5 Digit Display]
by Jestin_Cubetech in Circuits > Microcontrollers
17792 Views, 29 Favorites, 0 Comments
7 Segment Clock With Temperature Display [ds18b20 and 5 Digit Display]
![DSC_0479.jpg](/proxy/?url=https://content.instructables.com/F0L/FJ1L/HMWVZ6Y7/F0LFJ1LHMWVZ6Y7.jpg&filename=DSC_0479.jpg)
5 digit seven segment clock with temperature display.
PIC16F877A based clock
1, High-precision temperature sensor ds18b20
2, ds1307 RTC
3, 4 switches, easy time adjust option
4, alternating temperature and time display method
5, pic16f877a micro-controller
6, half hour notification - single beep
7, hour notification - double beep
8, buzzer notification for key press
PIC16F877A based clock
1, High-precision temperature sensor ds18b20
2, ds1307 RTC
3, 4 switches, easy time adjust option
4, alternating temperature and time display method
5, pic16f877a micro-controller
6, half hour notification - single beep
7, hour notification - double beep
8, buzzer notification for key press
Display Panel
![DSC_0461.jpg](/proxy/?url=https://content.instructables.com/FVO/R1OQ/HMWVZ6YC/FVOR1OQHMWVZ6YC.jpg&filename=DSC_0461.jpg)
![seven-segment-display.jpg](/proxy/?url=https://content.instructables.com/FYO/QT0C/HN46KWEE/FYOQT0CHN46KWEE.jpg&filename=seven-segment-display.jpg)
![LED_Display_7_Segment.jpg](/proxy/?url=https://content.instructables.com/FDZ/2TY6/HN46MB33/FDZ2TY6HN46MB33.jpg&filename=LED_Display_7_Segment.jpg)
Display Panel Circuit Diagram
![5.jpg](/proxy/?url=https://content.instructables.com/FYR/J9AR/HN46ITRU/FYRJ9ARHN46ITRU.jpg&filename=5.jpg)
components
1, BC 558 -5
2, resistors 330 Ohm - 10
3, common anode seven segment LED display - 5
4, acrylic sheet
1, BC 558 -5
2, resistors 330 Ohm - 10
3, common anode seven segment LED display - 5
4, acrylic sheet
Assembling Steps - Display Unit
![DSC_0463.jpg](/proxy/?url=https://content.instructables.com/FYY/XWG9/HMWVZ6Y4/FYYXWG9HMWVZ6Y4.jpg&filename=DSC_0463.jpg)
![DSC_0462.jpg](/proxy/?url=https://content.instructables.com/FZK/9ORQ/HMWVZ6YB/FZK9ORQHMWVZ6YB.jpg&filename=DSC_0462.jpg)
Assembling Steps - Main Board
![DSC_0467.jpg](/proxy/?url=https://content.instructables.com/FYG/OE17/HMWVZ6Y0/FYGOE17HMWVZ6Y0.jpg&filename=DSC_0467.jpg)
![DSC_0468.jpg](/proxy/?url=https://content.instructables.com/FYT/CH9X/HMWVZ6XZ/FYTCH9XHMWVZ6XZ.jpg&filename=DSC_0468.jpg)
Sensor ,keyboard and RTC Chip
![1796Fig01.gif](/proxy/?url=https://content.instructables.com/F9O/VRQ6/HN46IU8E/F9OVRQ6HN46IU8E.gif&filename=1796Fig01.gif)
![2688.gif](/proxy/?url=https://content.instructables.com/FZO/ETKM/HN46MB8S/FZOETKMHN46MB8S.gif&filename=2688.gif)
![DSC_0470.jpg](/proxy/?url=https://content.instructables.com/F3G/VWOL/HMWVZ6XX/F3GVWOLHMWVZ6XX.jpg&filename=DSC_0470.jpg)
![images.jpg](/proxy/?url=https://content.instructables.com/FIU/58PY/HN46Q4V3/FIU58PYHN46Q4V3.jpg&filename=images.jpg)
![DSC_0469.jpg](/proxy/?url=https://content.instructables.com/F4K/D6DX/HMWVZ6XY/F4KD6DXHMWVZ6XY.jpg&filename=DSC_0469.jpg)
ds18b20 sensor
http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
ds1307 RTC
http://datasheets.maximintegrated.com/en/ds/DS1307.pdf
Overview of 1-Wire Technology and Its Use
By: Bernhard Linke, Principal Member Technical Staff
Jun 19, 2008
Abstract: This article provides a general overview of the 1-Wire® technology, its communication concept and, as a benefit of the low pin count, unusual package options. The main section discusses 1-Wire devices by their feature set and explains the typical applications. The article ends with practical information on how to evaluate 1-Wire devices, explains device customization options, and references resources that assist customers in integrating 1-Wire technology in their systems.
What Is 1-Wire Technology?
The basis of 1-Wire® technology is a serial protocol using a single data line plus ground reference for communication. A 1-Wire master initiates and controls the communication with one or more 1-Wire slave devices on the 1-Wire bus (Figure 1). Each 1-Wire slave device has a unique, unalterable, factory-programmed, 64-bit ID (identification number), which serves as device address on the 1-Wire bus. The 8-bit family code, a subset of the 64-bit ID, identifies the device type and functionality. Typically, 1-Wire slave devices operate over the voltage range of 2.8V (min) to 5.25V (max). Most 1-Wire devices have no pin for power supply; they take their energy from the 1-Wire bus (parasitic supply).
What Is Special About 1-Wire?
1-Wire is the only voltage-based digital system that works with two contacts, data and ground, for half-duplex bidirectional communication. In contrast to other serial communication systems such as I²C or SPI, 1-Wire devices are designed for use in a contact environment. Either disconnecting from the 1-Wire bus or a loss of contact puts the 1-Wire slaves into a defined reset state. When the voltage returns, the slaves wake up and signal their presence. With only one contact to protect, the built-in ESD protection of 1-Wire devices is extremely high. With two contacts, 1-Wire devices are the most economical way to add electronic functionality to nonelectronic objects for identification, authentication, and delivery of calibration data or manufacturing information.
for more details:
ds1307 Key Features
Real-Time Clock (RTC) Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the week, and Year with Leap-Year Compensation Valid Up to 2100
56-Byte, Battery-Backed, General-Purpose RAM with Unlimited Writes
I²C Serial Interface
Programmable Square-Wave Output Signal
Automatic Power-Fail Detect and Switch Circuitry
Consumes Less than 500nA in Battery-Backup Mode with Oscillator Running
Optional Industrial Temperature Range: -40°C to +85°C
Available in 8-Pin Plastic DIP or SO
Underwriters Laboratories (UL) Recognized
Circuit Diagram
![temp_simu.JPG](/proxy/?url=https://content.instructables.com/FKL/89YG/HN46ITRY/FKL89YGHN46ITRY.jpg&filename=temp_simu.JPG)
![time_simu.JPG](/proxy/?url=https://content.instructables.com/F8R/CQ0P/HN46FCYE/F8RCQ0PHN46FCYE.jpg&filename=time_simu.JPG)
![5.jpg](/proxy/?url=https://content.instructables.com/FYR/J9AR/HN46ITRU/FYRJ9ARHN46ITRU.jpg&filename=5.jpg)
Downloads
How to Adjust Time
![DSC_0469.jpg](/proxy/?url=https://content.instructables.com/F4K/D6DX/HMWVZ6XY/F4KD6DXHMWVZ6XY.jpg&filename=DSC_0469.jpg)
![DSC_0455.jpg](/proxy/?url=https://content.instructables.com/FDV/1I4P/HN4ZV6OJ/FDV1I4PHN4ZV6OJ.jpg&filename=DSC_0455.jpg)
![DSC_0456.jpg](/proxy/?url=https://content.instructables.com/FLM/C50A/HN4ZV6OI/FLMC50AHN4ZV6OI.jpg&filename=DSC_0456.jpg)
![DSC_0457.jpg](/proxy/?url=https://content.instructables.com/F1L/F2GT/HN4ZV6OH/F1LF2GTHN4ZV6OH.jpg&filename=DSC_0457.jpg)
there are 4 micro switch
SEL/EXIT [selection or Exit ]
Up [increment ]
Down [Decrement]
Set [Update the last change]
step 1: wait for the time display [ switches function disabled at time display mode ]
step 2:
step 2.a
Press the SEL/EXIT switch
hour option selected [Up and Down button for hour ]
step 2.b
Press again the SEL/EXIT switch
minute option selected [Up and Down button for minute ]
step 2.c
Press again the SEL/EXIT switch
AM/PM option selected [Up and Down button for AM/PM selection ]
step 2.d
Press again the SEL/EXIT switch
it cancel the change and exit from updating mode
if you want to save the change don't press the SEL/EXIT button
step 3: SET Button
update the last change
SEL/EXIT [selection or Exit ]
Up [increment ]
Down [Decrement]
Set [Update the last change]
step 1: wait for the time display [ switches function disabled at time display mode ]
step 2:
step 2.a
Press the SEL/EXIT switch
hour option selected [Up and Down button for hour ]
step 2.b
Press again the SEL/EXIT switch
minute option selected [Up and Down button for minute ]
step 2.c
Press again the SEL/EXIT switch
AM/PM option selected [Up and Down button for AM/PM selection ]
step 2.d
Press again the SEL/EXIT switch
it cancel the change and exit from updating mode
if you want to save the change don't press the SEL/EXIT button
step 3: SET Button
update the last change
Working Video
Hex File Download
hex file rtc_temp_clock.hex
crystal 20 MHz | watch dog timer off | code protection off
crystal 20 MHz | watch dog timer off | code protection off