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.
 
My clock would be like this 12 leds for hours
60 leds for minutes and one flashing at each second below the first hour then light hour with minutes lit and keep that to on for the hour while moving minutes around clock
 
I think I get your idea?
12 LEDs for hours, 60 LEDs for minutes and have the LED under the hour flashing.
say it's 3:18 so have the led below the 3 flashing while the LEDs indicating minutes continue on?
hopefully I understand this correctly
 
Aha I now get your point on only two LEDs.
Reading over post #221 and #222 I am a little confused about 2- hour LEDs and 12 LEDs for each minute?

am about ready to give up on this.
^^^^^^^ Go with your instinct on this. I'm afraid there's zero chance you're to make something useful given your difficulty understanding the hardware, software, and the visual display of time.
 
I think I get your idea?
12 LEDs for hours, 60 LEDs for minutes and have the LED under the hour flashing.
say it's 3:18 so have the led below the 3 flashing while the LEDs indicating minutes continue on?
hopefully I understand this correctly

How does a flashing LED alter what I posted in post #378?
 
Aha I now get your point on only two LEDs.

AM STILL TRYING TO COMPREND post#381

Time to throw this mess into the dumpster.

These comments pertain to the SAME post. In the dark (you know, at night with the lights turned off???), illuminating two LEDs (making them turn on???) provides no spacial reference (you can only see two dots and not the clock face, so you don't know what numbers the dots represent).

*shrug* Do what you want.... but you might want to consider if there's anybody left to help you with 20 more pages of writing software for you.
 
Last edited:
Well then, I guess you can get going on another schematic and board. Send me a postcard when it works.

sp64626995_sc7.jpeg
 
MrDEB , I encourage you to think this through. You have been discussing two different projects in this thread:

● An LED analog clock, in which you think illuminating a single minute and a single hour LED is all that's needed (and it's been explained that this will not provide an easily readable display of time).

● A Christmas ornament where you want to display a large number of LEDs in various patterns.

For the clock, you keep bringing up using a ring counter or only one resistor for a group of LEDs – only one minute and one hour LED ever illuminated.

But stop and back up a hundred yards. Your clock project and your Christmas ornament project are exactly the same: controlling a bunch of LEDs with the ability to turn on or off any and all LEDs at will. The identical schematic will work for both and the coding for the LEDs will be the same for both.
If you shift out the following sequence, some of the LEDs will "twinkle.":

The LEDs under the dots will twinkle.

[Edit: my dots don't align – just look at the changed bits]

Code:
//                 ●                ●          ●
%10010001, %0101000, %00110011

Delayms(1)

%10010000, %0101010, %00010011

Delayms(1)

%100100001, %0101000, %00110011

Delayms(1)

%10010000, %0101010, %00010011

Delayms(1)

If you can figure out the coding, you can make fantastic displays.
 
Last edited:
thanks will give it a try.
I built a test board that has 6- 74hc595s on it.
rethinking both of these projects
I still want to build the snowflake but the dang tariffs are standing in the way
dam Trumpnokio
 
I built a test board that has 6- 74hc595s on it.

I hate myself for asking this.... but could you post a schematic of what you actually built? Not a "just like this" but the ACTUAL circuit?

Screenshot_20250713_114347_Edge.jpg
 

Latest threads

New Articles From Microcontroller Tips

Back
Top