0% found this document useful (0 votes)
119 views

Clock Using Atmega 8

This instructable describes how to build a clock using an ATMEGA 8 microcontroller. An external DS3231 RTC module is used since the ATMEGA 8 does not have an internal real-time clock. A 16x2 LCD display is used to show the time, date, temperature, and AM/PM. The clock runs on a single lithium polymer battery and has battery backup from the RTC module so the time is maintained even when unpowered. Components are soldered to a printed circuit board and housed in a cardboard case with duct tape.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views

Clock Using Atmega 8

This instructable describes how to build a clock using an ATMEGA 8 microcontroller. An external DS3231 RTC module is used since the ATMEGA 8 does not have an internal real-time clock. A 16x2 LCD display is used to show the time, date, temperature, and AM/PM. The clock runs on a single lithium polymer battery and has battery backup from the RTC module so the time is maintained even when unpowered. Components are soldered to a printed circuit board and housed in a cardboard case with duct tape.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

instructables

CLOCK USING ATMEGA 8

by rengarider

ATMEGA 8 is one of the cheapest micro controller ,so i controller o er internal RTC(Real Time Clock) but
decided to make clock using it.The rst thing i came ATMEGA 8 we don't have internal RTC so i went with
across is displaying time hence most general thing is 7 external one.Then i came across power the clock
segment display but i can't display all the text expect ,atmega can run from 1.8v to 5v so i planned to 1s
few ,so i decided to go with 16X2 LCD .Then i came lipo,it worked pretty well...so let start building
time keeping where recent most of the micro

https://youtu.be/O9DSfxhJJYg

Step 1: Components List

Atmega 8 ic
16X2 LCD display
DS3231 RTC module
1S lipo battery
TP4056 lipo charger module
drilled PCB
16MHZ crystall oscillator
22pf capacitor
10K resistor

CLOCK USING ATMEGA 8: Page 1


Step 2: Burning Boot Loader on ATMEGA 8

Simplest method is remove the ATMEGA 328 from arduino uno and insert the ATMEGA 8 in it.
Connect the SPI pins with another Arduino uno and and burn the boot loader
follow this video for better under standing

https://youtu.be/62rhbh9_GKw

CLOCK USING ATMEGA 8: Page 2


Step 3: Connecting RTC to Arduino

Connect SCL pin of RTC to A5 arduino


Connect SDA pin of RTC to A4 arduino
Connect VCC pin of RTC to 5v arduino
Connect GND pin of RTC to GND arduino

Step 4: Uploading Time to RTC

Download the clock program


open the code
uncomment the following line
x the current time
uplode the code
now the time is saved to RTC
now comment back the lines and upload it again
now remove the ATMEGA 8 from the arduino
https://drive.google.com/ le/d/1yI7EckZE8ESWeCIQO...
check out this link for more information

CLOCK USING ATMEGA 8: Page 3


Download
https://www.instructables.com/ORIG/F8M/8D3S/K9G9HPK9/F8M8D3SK9G9HPK9.ino

Step 5: Building the Circuit

Start by soldering the ATMEGA 8 to pcb


Then make the oscillator circuit for the ATMEGA 8
Refer the atmega 8 pinout
Then x the RTC and LCD module
Make the connection according to the circuit diagram
Fix the lipo Battery and its charger

CLOCK USING ATMEGA 8: Page 4


Step 6: Creating a Outer Case

I don't have 3d printer so i decide to make it using cardboard and covered it using colored duct tape
It look shiny and beautiful
I will recommend to build a 3d printed case to look more professional

CLOCK USING ATMEGA 8: Page 5


Step 7: Functions of Clock

It is in 12hrs format ,so it will display the AM/PM


It will display the time with seconds
It will show the day and date in every two mins
It will show the room temperature in every two mins
It has the battery backup ,so even when there is no power it will run on its battery
RTC has its own battery ,so even if the battery backup dead the time won't get rest.
I ho pe u w ill like t his pro je ct . . . . !!! Co ns ide r s ubs cribing t o m y Yo uTube cha nne l !!!
Ha ppy Le a rning .

CLOCK USING ATMEGA 8: Page 6

You might also like