Description: I use a RealTimeClock Maxim DS1305. The RTC backup power is a supercapacitor (0.22F). I test it for 4 weeks, works fine. For this reason it doesn't have the capability to change the time, but you can do small corrections. Once you push the button, the seconds change to 30, with no effect to minutes, hours, etc. The routine is in lines 1878-1887 "sec30". You set the time when you program the PIC. You have to program two times. The first time without line 91 (goto rdtime). The routines setDS and settime are executed. SetDS is setting RTC's control and trickle charger registers. In the settime routine, you set the time. After this, you add line 91 (goto rdtime) and you reprogram it. Now the routines do not execute. More: RTC can keep the setting and time at least for 28 days. The routines DST3 and DST10 are for Daylight Saving Time. The check register is flag, 1. The checking routine is in lines 434-460. In the last Sunday of March, the 02:00 o'clock became 03:00 o'clock. In the last Sunday of October, the 02:00 o'clock became 01:00 o'clock. I set the RTC for 12H mode, LEDs for 12H and display for 24H. I use a digital humidity and temperature sensor Sensirion SHT11. I bought it on a PCB, with the pull-up resistor and decoupled capacitor ready in place. Measurements are made every 10 seconds. At 00, 20, and 40 seconds it measures the temperature and calculates the temperature and Absolute Humidity ("g/m3" grams per cubic meter of air). At 10, 30, and 50 seconds it measures the humidity and calculates the Relative Humidity (%). The check register is flag, 0. The checking routine is in lines 464-475. The measure temperature routine is in lines 477-514 "measTEMP" and lines 625-714 "measure". The calculate temperature routine is in lines 1793-1820 "calcTEMP". The measure Relative Humidity routine is in lines 560-590 "measRH" and lines 625-714 "measure". The measure Absolute Humidity routine is in lines 515-555 "measAH". The calculate Relative Humidity routine is in lines 717-1470 "calcRH". The calculate Absolute Humidity routine is in lines 1473-1728 "calcAH".
The described system incorporates a Maxim DS1305 Real-Time Clock (RTC) and a Sensirion SHT11 digital temperature and humidity sensor, creating a robust timekeeping and environmental monitoring solution. The RTC is powered by a 0.22F supercapacitor, ensuring backup power during outages and capable of retaining time settings for at least 28 days. The operation of the RTC is controlled through specific programming sequences that enable setting the time and configuring the control registers for optimal functionality.
In terms of functionality, the RTC allows for minor adjustments to the seconds value, which is executed via a button press that sets the seconds to 30 without affecting other time units. The programming process requires two stages: the initial setup without a specific line to redirect execution and a subsequent reprogramming that incorporates this line, effectively halting the execution of certain routines after the initial configuration.
Daylight Saving Time adjustments are managed through dedicated routines, ensuring the clock accurately reflects the time changes that occur twice a year. The system is designed to operate in a 12-hour mode for user interface elements while providing a 24-hour format for display purposes.
The Sensirion SHT11 sensor is integrated on a printed circuit board (PCB) with necessary components such as pull-up resistors and decoupling capacitors already in place, facilitating straightforward implementation. The sensor performs temperature and humidity measurements at regular intervals, specifically every 10 seconds. Temperature readings are taken at the start of each minute (00, 20, and 40 seconds), while humidity measurements occur at 10, 30, and 50 seconds. The system calculates both Absolute Humidity and Relative Humidity, with dedicated routines for each measurement and calculation process.
The routines are organized into specific lines of code, ensuring clarity and ease of reference during programming and debugging. The temperature measurement and calculation routines are distinctly separated, allowing for streamlined data processing and accurate environmental monitoring. Overall, this system exemplifies an efficient integration of timekeeping and climate measurement technologies, suitable for various applications requiring precise temporal and environmental data.I use a RealTimeClock Maxim DS1305. The RTC backup power is a supercapacitor (0,22F). I test it for 4 weeks, works fine. For this reason it don't have the capability to change the time, but you can do small-corrections. Once you push the button, the seconds change to 30, with no effect to minutes, hours etc. The routine is in lines 1878-1887 "sec30". You set the time when you program the PIC. You have to program two times. The first time without line 91 (goto rdtime). The routines setDS and settime is execute. SetDS is setting RTC's control and trickle charger registers. In the settime routine, you set the time. After this, you add line 91 (goto rdtime) and you reprogram it. Now the routines do not execute. RTC can keep the setting and time at least for 28 days. The routines DST3 and DST10 are for DaySavingTime. The check register is flag, 1. The checking routine is in lines 434-460. In the last Sunday of March, the 02:00 o'clock became 03:00 o'clock. In the last Sunday of October, the 02:00 o'clock became 01:00 o'clock. I set the RTC for 12H mode, leds for 12H and display for 24H. I use a digital humidity and temperature sensor Sensirion SHT11. I bought it in a PCB, with the pull-up resistor and decoupled capacitor ready in place. Measurements make every 10 seconds. At 00, 20 and 40 seconds it measures the temperature and calculate the temperature and Absolutely Humidity ("gr/m3" grams at cubic meter of air). At 10, 30 and 50 second it measures the humidity and calculate the Relative Humidity (%). The check register is flag, 0. The checking routine is in lines 464-475. The measure temperature routine is in lines 477-514 "measTEMP" and lines 625-714 "measure". The calculate temperature routine is in lines 1793-1820 "calcTEMP". The measure Relative humidity routine is in lines 560-590 "measRH" and lines 625-714 "measure". The measure Absolute humidity routine is in lines 515-555 "measAH". The calculate Relative humidity routine is in lines 717-1470 "calcRH". The calculate Absolute humidity routine is in lines 1473-1728 "calcAH".
U1 is the 3817 integrated circuit, capable of directly driving the display. It can show time in either 12-hour or 24-hour format, schedule alarm sounds, and automatically turn on the radio at specified times. The display utilizes the FND500 light-emitting...
A real-size printout of the PCB is created to verify the dimensions of all components against it. If a component is too large or small to fit its PCB pads, adjustments to the PCB layout can be made, or a...
An introductory post on how to use serial communication in PIC Microcontrollers to send data to a PC. When considering serial communication, the primary thought is the transmission of data in a sequential manner. Until now, the focus has been...
The objective of this project was to develop a front-end for Commodore 64 emulation utilizing VICE. A significant challenge with emulators, particularly for devices from the 1980s, is the absence of a standardized keyboard layout. In this project, a malfunctioning...
This device is a combination digital clock timer and solar panel charge controller designed to maintain a deep cycle battery charged by a solar panel. The timer output controls a 12-volt load for a 32-minute interval each day. The start...
A sensor activates transistor Q1 to turn on the low-frequency 555 oscillator, which generates pulses to control LAMP II. The sensor may respond to variations in light or temperature. Either resistor RA or RB can function as the sensor, depending...
How to generate the signal for controlling a standard (RC) servo motor using a PIC microcontroller.
To control a standard RC servo motor with a PIC microcontroller, it is essential to generate a pulse-width modulation (PWM) signal that dictates the position...
The diagram illustrates a block diagram for an agenda alarm and agenda thermometer system. It includes one temperature sensor, a real-time clock (RTC), a microcontroller (PIC), an EEPROM, a 7-segment display, and a keyboard. The EEPROM is utilized to expand...
A buzzer circuit utilizes a PIC microcontroller to drive a piezo buzzer. The microcontroller is a low-power processor that is ideal for portable and compact devices where battery conservation is essential.
The buzzer circuit employs a PIC microcontroller, which serves as...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more