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
 
My Christmas ornament has a 530 ohm resistor per LED
As for the clock, I watched the videos that Beau posted and can't figure out WHAT TIME IS IT?
I like the idea of a blinking LED for each minute
 
As for the clock, I watched the videos that Beau posted and can't figure out WHAT TIME IS IT?

MrDEB, you are remarkably resistant to seeing the point. Nearly 400 posts ago, you asked about making an analog LED clock. But is doesn't seem like you've thought it through. What do you need to make an analog clock? The ability to individually control LEDs in some pattern. The ability to control LEDs in some pattern. Exactly what that pattern is isn't important, and may change as you see the results. You seem to be stuck on illuminating only two LEDs, but as I've explained, I think you'll find that display to be a crappy result.

Also mixed into this thread is discussion about controlling a number of LEDs in some pattern on a Christmas ornament. Can you not understand that these are exactly the same task with just a physically different arrangement of LEDs? The schematic and the code to control the LEDs can be the same for both.

Beau's videos demonstrate an exceedingly simple way to control a large number of LEDs. His circuit gives you the means to control the LEDs – what YOU do with those LEDs is up to you. He's showing examples of what can be accomplished, not how to make a clock (although I believe one of his videos shows a clock display). How to make a clock display is up to you.

With all due respect to be80be, using WS2812 addressible LEDs is not a good idea for you. They are much more complicated to use than shift registers, with limited support in Swordfish and it doesn't solve your basis problem of notvl quite getting the picture of what you're trying to accomplish. In almost 500 posts in this thread, you're no closer to understanding a kit display, let alone how to tell time time to drive it.
 
Last edited:
Perhaps this article will explain what we have been unable to. It uses Charleplexing – but that's not important – how the time is displayed is what you need to understand.

 
He don’t want use ws2812 less the pic it’s a pain now esp32 it’s simple. The pic it’s basically the chip you pick the fast ones lots of registers to setup
 
MrDEB can't figure out shift registers where you shift out 1 BIT per LED using existing software modules to do so.

Do you really expect him to be able to figure out how to "roll his own" solution to send 3 BYTES per LED where timing is critical?

Why complicate a thread that is already 20 fricken pages long?!?
 
MrDEB can't figure out shift registers where you shift out 1 BIT per LED using existing software modules to do so.

Do you really expect him to be able to figure out how to "roll his own" solution to send 3 BYTES per LED where timing is critical?

Why complicate a thread that is already 20 fricken pages long?!?
You know you enjoy it
 

Latest threads

New Articles From Microcontroller Tips

Back
Top