DIY Digital Clock with Temperature Display using PIC Controller

One of the most enjoyable part of being an electronics person is creating your own gadgets and using them in daily life. In this article, we are building one of those with the help of SoloPCB design tools, a digital desk clock with temperature display feature.

DIY Digital Clock with Temperature Display using PIC Controller

The brain of the circuit is a Microchip PIC18F252 microcontroller. It acquires precise time information from DS1307 real time clock via I2C interface and displays it on four digit 38 mm seven-segment display with the help of MAX7219CNG display driver. The temperature data is read by the on-chip ADC module of the microcontroller from LM335 temperature sensor which outputs 10mV per kelvin degree linearly. The temperature data is also displayed periodically.

The PIC microcontroller and the peripheral ICs mentioned above needs 5V regulated supply to operate. The step-down converter in the power section of the circuit, LM2574N-5.0, converts 12VDC input voltage to 5VDC and lets to draw 500mA without any significant heating problem.

There are two LEDs on the board indicates power and functional status and the buttons let the user adjust the time and display the temperature manually.

The Circuit and the PCB Design

The circuit and the PCB of the project are drawn in SoloPCB. SoloPCB is a very powerful tool which integrates the circuit design to the PCB design and the fabrication. You can download SoloPCB from FabsSream for free. The circuit and the PCB files of the project are provided in SoloPCB format. You can download the design files including the symbol and the footprint libraries by using the download link below.

The circuit schematic of the digital desk clock and a screenshot from its PCB can be seen below.

After the PCBs fabrication, the components listed below are assembled on the board.

Bill of Materials:

QuantityPart DescriptionDesignator
1CR2032 Battery HolderB1
122uF 16V Tantalum CapacitorC1
110uF 16V Electrolytic CapacitorC10
1220uF 16V Electrolytic CapacitorC2
5100nf 63V Ceramic CapacitorC3 C6 C7 C8 C9
222pF 50V Ceramic CapacitorC4 C5
1MBR-150 1A 50V Schottky DiodeD1
13mm Red LEDD2
13mm Green LEDD4
1LM335 Temperature SensorD3
1BAT42 200mA 30V Schottky DiodeD5
1DC-001 Power ConnectorJ1
11×5 2.54mm Male HeaderJ2
12×4 2.54mm Male HeaderJ3
1150uH 850mA InductorL1
438mm Common Anode 7 Segment DisplayLD1 LD2 LD3 LD4
3330R 1/4W ResistorR1 R2 R11
610K 1/4W ResistorR3 R4 R5 R7 R8 R10
12K 1/4W ResistorR6
127K 1/4W ResistorR9
3SPST-NO 6mmx3.5mm Tactile SwitchSW1 SW2 SW3
1LM2574N-5.0 0.5A Step-Down ConverterU1
1PIC18F252-I/SP MicrocontrollerU2
128 Pin DIP Socket 300milU2 Socket
1MAX7219CNG 8 Digit Display DriverU3
1DS1307+ Real Time ClockU4
132.768KHz CrystalY1
110Mhz CrystalY2

 

All the components are through hole type so there is no need for a very good soldering skill.

 

Read More:    DIY Digital Clock with Temperature Display using PIC Controller


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.