Circuit Schematic Simple Timer with PIC16F628A

MCUPIC. - Here is Circuit Schematic Simple Timer with PIC16F628A. The schematic uses the internal oscillator of the microcontroller which is enough accurate for my purposes, but as the pins 15 and 16 are left unoccupied, there can be connected external quartz resonator with better accuracy. As I said, this project is based on an existing project, but actually my schematic is quite different and the code was almost completely rewritten. My programming abilities are little rusty, but I think the final result is quite good.

Figure 1. Schematic Simple Timer with PIC16F628A
(Source: www.electronics-lab.com)

Description

There are three buttons to operate the timer: "START/STOP", "MIN" and "SEC". "START/STOP" is for starting and pausing the timer. "MIN" is for adjusting the minutes. Minutes may go up to 99 and then starts again from 0. "SEC" is for adjusting the seconds. Seconds goes up to 59 and then starts from 0. "MIN" and "SEC" have repeat functionality. Pressing MIN and SEC buttons simultaneously will reset the timer. When the timer reach 00:00, the buzzer sounds 3 short and 1 long beeps and the LED lights up. The buzzer is electromagnetic type.

After this any of these three buttons will reset the status and LED will switch off. When timer is counting down - RB7 (pin 13) is high and when the timer is stopped - RB7 is low.

With this pin we can operate some external circuitry. In my case there will be connected a transistor which will switch on and off the UV exposure box.

Share on Google Plus
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment