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
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...

Similar threads

Back
Top