Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

using a RTC in SF basic

MrDEB

Well-Known Member
I have a DS-1302 RTC module but how to use it?
I recall Jon Chandler made a vu meter clock but what he used for timing?
Am planning on a clock that has no hands, just LEDs but precision would be nice.
 
Unsolicited (and probably unappreciated) advice.

Look at these clock faces with 60 minute LEDs and 12 hour LEDs. What time is it? From the left:
  • 3:00
  • 3:15
  • 3:30
  • 3:45
  • Almost 3 o'clock or almost 4 o'clock?
clock face 1.jpg


In a normal analog clock display, the hour hand moves from one hour to the next as time progresses rather than being fixed at one hour until the next. This display looks more like a conventional clock. It's not ambiguous.

clock face 2.jpg


In this display, the hour LEDs increment as the hour progresses. At the top of the hour, only one LED is illuminated, incrementing again until the next hour. A more interesting, easy to interpret look.

clock face 3.jpg


Using two rings of 60 LEDs allows for options. Using only 12 LEDs for the hour ring locks you into what may be an unintelligible display.
 
"hour LEDs increment as the hour progresses" - That is how I have my display. Every 12 minutes one of the 60 LED's representing the hour advances... Instead of having an Hour counter that advances every 60 minutes, my Hour counter advances every 12 minutes. (<-- Actually more complex than that since the time is originating from the Web, and the Hour position needs to be derived based on where the minutes actually are. But for simplistic reasons, the explanation at the beginning will suffice)
 
Geez oh grief. Find an understandable video. The buttons aren't pushed randomly to get an output.

Also, post a drawing of EXACTLY what you have hooked up AND EXACTLY the sequence of buttons you are pressing.

To load data:
> Press and hold the data switch and press clock to enter a high bit.

> Press and release the clock switch to enter a low bit.

> When 8 bits have been entered in, press the latch switch to display the entered data.

Alternatively, the latch switch can be pressed after each press of the clock button to see the date move through the shift register.

 
Last edited:

Latest threads

New Articles From Microcontroller Tips

Back
Top