Tag Archives: RTC

Using a $2 DS3231 RTC & AT24C32 EEprom from eBay

cheaprtc

Edward Mallon @ edwardmallon.wordpress.com gives us a detailed explanation about cheap RTC modules found on ebay and other places.

I built the first few beta units with the DS3231 Chronodot from Macetech (about $18 each), but I kept on stumbling across cheap RTC modules on eBay, Amazon, etc. and I eventually bought a couple to try them out. While I waited for them to ship on the proverbial slow boat, I did some digging, because these modules were (almost) selling for less than the chip itself if I bought them directly from trusted sources like Digikey, Mouser, etc.

Using a $2 DS3231 RTC & AT24C32 EEprom from eBay – [Link]

LCD clock with 4″ display

p1

mcs.uwsuper.edu has build a big LCD clock based on MSP430 mcu and DS3231 RTC clock chip. They write:

The clock is built on a 4″ (101 mm) LCD displays OD-103 manufactured by Orient Display. The LCD provides high contrast of digits and easy reading from a large distance. The unit runs on batteries and can also be powered from mains. Here is how it looks under direct sun.

The time keeping is provided by DS3231 RTC chip with an integrated high accuracy (± 5ppm) MEMS crystal. This makes PCB design very simple, as one does not need to take care on special traces design around the crystal.

LCD clock with 4″ display – [Link]

PIC24 bedside table alarm clock

IMG_4912_1600x1200_85

Markus Gritsch posted pictures and code of his PIC24 bedside table alarm clock:

Another year, another clock, but for the first time for my alarm clocks. I am not using an MSP430 but a PIC24 instead. Standby current is with 5.5 µA only slightly higher than that of my MSP430 based ones. Time keeping is done using the RTCC pheripheral, which I also used for the first time.
It can be seen in action in this YouTube video
Friendly green digits :)
And of course it has a LiFePO4 battery on its back, being charged every few years using my new USB charger.
A photo transistor is also included to dim the display in the dark. Much nices to the eyes when checking what time it is in the middle of the night.

PIC24 bedside table alarm clock – [Link]

Meter Clock using a DS1307 RTC and Trinket Microcontroller

trinket_Complete_Clock

by MIKE BARELA @ adafruit.com:

Trinket lends itself very well to building clock projects, its small and easy to hide behind a larger display. And clocks don’t need a lot of logic, this example only has maybe 20 lines of code. Adding a digital display via I2C is possible using seven segment or character-based displays (with the library code posted for other projects).

This project interfaces Trinket to the the Adafruit DS1307 real-time clock (RTC) breakout board to form a clock. But in a twist, the display is done using two analog meters. One for hours, one for minutes.

The Trinket can output to a meter without digital to analog converters. Trinket has pulse width modulation (PWM) on three of its pins. The meter uses a moving coil inductance movement, acting to average the indication of current flowing through it. If you have narrow pulses, the average voltage it sees is lower, thus the current is lower for the fixed resistance attached to it. For wide pulses, the meter sees nearly the supply voltage and will stay around the full scale. This circuit varies the pulse width sent to the meters proportional to the hour of the day and the minutes after the hour.

Meter Clock using a DS1307 RTC and Trinket Microcontroller – [Link]

Tiny real-time clock consumes only 240 nA

Micro Crystal RV8803C7

by Susan Nordyk @ edn.com:

Furnished in a ceramic surface-mount package that is just 3.2×1.5×0.8 mm, the RV-8803-C7 real-time clock module from Swiss manufacturer Micro Crystal consumes 240 nA and operates from a supply voltage as low as 1.5 V to increase the life of backup supplies. The device gives designers the option to replace expensive batteries and supercapacitors with low-cost multilayer ceramic capacitors for battery backup.

The temperature-compensated real-time clock is accurate to within ±3.0 ppm (±0.26 seconds/day) over a temperature range of -40°C to +85°C. In addition to low current consumption and high accuracy, the RV-8803-C7 has one of the smallest ceramic packages in the industry with an integrated 32.768-Hz quartz crystal. It operates from a supply voltage ranging from 1.5 V to 5.5 V and employs an I2C interface.

Tiny real-time clock consumes only 240 nA – [Link]

Neat E-ink HAT for RPi

PiDisplay

by elektor.com:

Startup Percheron Electronics Ltd is looking to fund their rather neat E-Paper display HAT for the Raspberry Pi. Unlike some similar display solutions for the Pi this E-ink HAT attaches without any long ribbon cables. An advantage of this type of display (similar to those used on the Kindle) is that the image persists on the screen when power is removed so they use less power than a TFT display but the E-Paper technology does not support fast moving images.

The PCB is compliant with the Raspberry Pi Foundation’s HAT specification, including device tree configuration of the required GPIO pins by the HAT EEPROM. The board is able to drive a 2.7″ 264 x 176 pixel E-Paper display panel and is also suitable for the 1.44″ and 2″ display panels from the same manufacturer.

The board also features a DS3231 real time clock (RTC) IC with a CR1220 lithium coin cell for battery backup when the Pi is powered down. The DS3231 is accurate to 5 parts per million, or within 3 minutes per year. The RTC can generate an interrupt/alarm signal and also a 32 KHz clock signal which can be connected through to GPIO pins by solder pad links, if required.

Neat E-ink HAT for RPi – [Link]

PCA8565 Application Circuit

The PCA8565 plays a very important role in the real time systems like digital clock, attendance system and tariff switching. In applications where timestamp is needed, PCA8565 real time clock is a good option. It provides the following benefits: low power consumption, allows the main system for time-critical tasks, and more accurate than other methods.

The PCA8565 is a CMOS real time clock and calendar optimized for low power consumption. A programmable clock output, interrupt output and voltage-low detector are also provided. All address and data are transferred serially via a two-line bidirectional I2C-bus with a maximum bus speed of 400kbps. The built-in word address register is incremented automatically after each written or read data byte. It provides a year, month, day, weekday, hours, minutes and seconds based on a 32.768kHz quartz crystal. It features alarm and timer functions, low current, and extended operating temperature range of -40 degrees Celsius to +125 degrees Celsius. It further contains an 8-bit year register that can hold values from 00 to 99 in BCD format, which also compensates for leap years, thus leap year is automatically corrected.

From the application circuit, the PCA8565 can be used to perform standard RTC functions, such as tracking the actual time and date, or acting as a reference timer. To support power management, the PCA8565 can be used to wake the microcontroller from hibernation mode. In systems that use a PLL, it can serve as a system reference clock for the PLL input. The PCA8565 can also be used as a watchdog timer, or as an activation timer to start measurements or initiate other functions.

PCA8565 Application Circuit – [Link]

IV9 & IV16 tube numitron clock

numitron-board-explained

by Alan @ kalshagar.wikispaces.com:

I found those beautiful vintage IV9 & IV16 tubes and I had to use them, clock being the perfect candidate. I made already mutliple others based on what was supposed to be a WordClock (hence the project name) only, but became more diversified. I did also a first test with a chainable 5cm x 5cm tube board, this is a 5cm x 10cm dual board improved version.

When I made this project and designed it the idea I had was of course the design (very important) but also reusability and pragmaticallity regarding the components used. What I mean by the latest is that you never really know what component you’ll have at hand, depends on your provider, the component availability, it’s price, or even the package DIP or SMD. Hence the board can work with 3 different type of RTC clocks: just use your favorite or the one in your shelf stock. Personally I love the Maxims DS3231 and DS3234 which are temperature compensated (to a fantastic extend for the DS3234), and both are accessed through different protocols: SPI for the DS3234 and TWI for DS3231. There’s also the EPSON RTC4543 for those living in Japan like me. So again depending of what else you need to wire, choose your poison: all the pins of the MCU are accessible and there’s even a small zone for some DIP components.
The top board uses 74HC595 for maintaining the displayed digits: they come very cheap but I didn’t want to be stuck to the DIP or SMD model (having both in stock), so the board can use any of the two. Same goes with the current limiter resistors: SMD, through hole or even resistor array, your pick. And of course there’s a SMD or DIP led footprint under each tube for the blingbling! (single color, not RGB led)

IV9 & IV16 tube numitron clock – [Link]