Skip to main content

Digital clock with alarm

In this project I want to show you how a digital clock can be designed with AVR micro controllers . Atmega16 chip has 3 internal timers that get their pulses from micro frequency clock unit that can be an external oscillator or internal clock. But for precision I recommend you using the external clock. This clock is not just a clock, it can be a chronometer with the precision of showing 1 percent of a second and hold unlimited time. It is also a calendar for the year of 2016 And the most interesting feature is it has alarm and you can set your alarm. for this I used a speaker that plays a song on alarm's time. You can set the time and date with push buttons and run the chronometer with the buttons on the left.
This picture is about it's clock state: 
Chronometer mode is here:
Simulation in Proteus:

here is the HEX file code exported from Codevision:
https://drive.google.com/open?id=0B5WLZo9Cie21dmZQODZJcGdQVDA
here is the codes in notepad:
https://drive.google.com/open?id=0B5WLZo9Cie21ZjBuN1VSZzBRemM
here is the schematic in Proteus:
https://drive.google.com/open?id=0B5WLZo9Cie21LXYxOEx1SU9lOXM
here is the Altium Designer file:
https://drive.google.com/open?id=0B5WLZo9Cie21NmEyY3BpX0RVVFE

Comments

Popular posts from this blog

Star Delta Starter with Arduino Nano

This project about star delta connection for a three phase motor. I did'n have three phase induction motor so I used three signal lamp instead. In star delta connection first, star connection actives and then after a while delta connection will active. The time between star and delta connection depends on how powerful your motor is. In this project it is possible to change the time from 0 second to 100 seconds by potentiometer connected to A0. I used Arduino Nano instead of any industrial PLC. The outputs of the Arduino is connected to the relay board and then it is connected to contactors. Contactor is a devise that can connect three phase voltage to an induction motor. There is a video of how this circuit works. Download link: https://drive.google.com/open?id=1rkaE7WTPg93gEQ8l0ehYUHintUx-WcQG

Single phase half-wave diode rectifiers

Half-wave rectifier with resistive load: Half-wave rectifier with R-L load: Half-wave rectifier with freewheeling diode: Half-wave rectifier with capacitor filter: Download link: https://drive.google.com/open?id=1609_GDuzLA2BWE0a7nPnaERC9rhMrg8N                          

Traffic light by STM32F103C8T6

This project is about simulating a traffic light. There is a 1-digit common anode 7-segment which shows how long each signal is on. I connected three 220v signal lamp as its lights by a relay board which its relays work at 5v. Output voltage of stm32f103c8t6 is 3.3v so I used three transistors as switches to convert 3v output to 5v that is needed for relay board. Download link: https://drive.google.com/open?id=1UVHMYvGlCxITk0jRz3Y8TPV_h8HHZmJN