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.
 
I was trying to use 74hc595's but the math is not correct
60(seconds) X 8 (# of outputs) = 56 so we have 4 unused outputs
12(hours) / 8 (outputs) = 1.5
was contemplating counting DATA pulses so every DATA pulses (one every minute) would advance the shift register 1 bit.
 
I am using 10 PCB segments ... each Segment has 12 LEDs. 6 for minutes and 6 for hours...

1749840091919.png
 
MrDEB,

It is abundantly clear that despite hundreds of messages about using the shift registers you are still clueless about what they do.

You claim to have one shift register working with 8 LEDs. I challenge you to do the following exercise to help you understand. Each step here is only 2 lines of code. Post your code if you can make this simple exercise work. If you can't do this simple exercise, give up on using shift registers entirely.

Exercise: Light up the LEDs in the pattern shown, wait 5 seconds and move on to the next.

●○○○○○○○
○○○○○○○●
○○○●●○○○
●○●○○●●○
○○○○○○○○
○○○○●●●●
●●●●○○○○
●●●●●●●●
●○○○○○○○
●●○○○○○○
●●●○○○○○
●●●●○○○○
●●●●●○○○
●●●●●●○○
●●●●●●●○
●●●●●●●●
○●●●●●●●
○○●●●●●●
○○○●●●●●
○○○○●●●●
○○○○○●●●
○○○○○○●●
○○○○○○○●
○○○○○○●○
○○○○○●○○
○○○○●○○○
○○○●○○○○
○○●○○○○○
○●○○○○○○
●○○○○○○○
 

Latest threads

New Articles From Microcontroller Tips

Back
Top