Use PIC microcontroller for Time application

AI Thread Summary
Using a PIC microcontroller for a time-based application is feasible by integrating a Real Time Clock (RTC) module, which can accurately track date and time. Dallas Semiconductor offers suitable RTCs, and a common choice is a 32.768 kHz crystal for its simplicity in pulse tracking. Alternatively, an on-board timer can be utilized, but its long-term accuracy depends on the oscillator's precision. Implementing an interrupt every few seconds can help maintain time using an accumulator. This approach can effectively manage device operation based on specific day and time requirements.
sanyad
Messages
2
Reaction score
0
Dear,

I want to make a project to switch-n a device on day-date-time basis i.e. I want to lighup a lamp on 30/08/2008 at 02:00PM .Is it possible to make a circuit for this by using PIC microcontroller.I want to use it in my company for rotational under frequency relay which trips off the output feeder by getting an external input pulse and check for date/time for operation of PIC output i.e. which output should be trip as per current day/time?.


Kindly reply pleaseeeeeeeeeeeeeeeeeeeee...


SANDEEP
INDIA
 
Engineering news on Phys.org
sanyad said:
Dear,

I want to make a project to switch-n a device on day-date-time basis i.e. I want to lighup a lamp on 30/08/2008 at 02:00PM .Is it possible to make a circuit for this by using PIC microcontroller.I want to use it in my company for rotational under frequency relay which trips off the output feeder by getting an external input pulse and check for date/time for operation of PIC output i.e. which output should be trip as per current day/time?.


Kindly reply pleaseeeeeeeeeeeeeeeeeeeee...


SANDEEP
INDIA


The best way to do that is to use a Real Time Clock module that the PIC can read:

http://en.wikipedia.org/wiki/Real_time_clock

Dallas Semiconductor makes RTCs, for example.

.
 
Assuming you're not doing anything else that's really time critical, you can also implement a real-time clock using the on-board timer (note that the accuracy will depend on the accuracy of your oscillator--you won't be able to keep track of time long term if your oscillator is not accurate). See the Microchip documentation (there should be a generic timer section, as well as subsections for each of the usually-dependent timers) for more details, but a decent way of doing it is to trigger an interrupt every (few?) second(s) and have an accumulator somewhere which keeps track of the time.

Random trivia: if you're using a RTC: a 32.768 kHz crystal is usually used because 32,768 is 2^15, which makes (EE) life really simple--assuming you had to keep track of individual pulses yourself.
 
MATLABdude said:
Assuming you're not doing anything else that's really time critical, you can also implement a real-time clock using the on-board timer (note that the accuracy will depend on the accuracy of your oscillator--you won't be able to keep track of time long term if your oscillator is not accurate). See the Microchip documentation (there should be a generic timer section, as well as subsections for each of the usually-dependent timers) for more details, but a decent way of doing it is to trigger an interrupt every (few?) second(s) and have an accumulator somewhere which keeps track of the time.

Random trivia: if you're using a RTC: a 32.768 kHz crystal is usually used because 32,768 is 2^15, which makes (EE) life really simple--assuming you had to keep track of individual pulses yourself.

Thanks
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...

Similar threads

Back
Top