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.
 
Go to thinking about Jons's comment. Duh, I hadn't finished the schematic and failed to include any 500ohm resistors for the LEDs

What comment are you referring to? The one where I posted the table from the datasheet showing THE MAXIMUM CURRENT IS 1 mA? Apparently not that comment. Or maybe the comment where I suggested CHECKING HOW MUCH CURRENT THE CD4017B CAN SOURCE OR SINK?? Apparently not that comment either.
 
Screenshot_20241204_064705_Edge.jpg
 
My apologies. I forgot to include the picture. At Vdd = 5v, the maximum source or sink current is 1 mA. If Vdd = 15v, the maximum current is 6.8 mA. Nowhere does the datasheet claim 10mA.

I'll say no more.

SmartSelect_20241203_142216_Dropbox.jpg
 
Well I hope this cascading schematic of 74hc595 is correct. Have to figure out what to do when the last LED is enabled. Still need to do the green LEDs.
 

Attachments

  • Schematic_PICTURE-CLOCK-1_2024-12-06.pdf
    282.9 KB · Views: 26
I did this before I saw your schematic. Please do it this way. Use the Swordfish SHIFT module.

ALL of the LEDs, including the 7-segment displays should be operated from the same data stream, clock and latch lines. Set up an array of bytes equal to the number of 74595s. When the display is to be updated, update the needed array elements and shift out ALL of the data then pulse the latch high.

The output enable pins may be used to dim the displays. I have separated the clock LEDs from the display LEDs so each section can be controlled independently.

You have a high chance of success using this circuit and it will be easy to route.

Shift Register LED Driver.png
 

Attachments

  • Shift Register LED Driver.pdf
    253.7 KB · Views: 28
Some time in the past in this thread or maybe one of the numerous other ones you mentioned a 7 segment display. It's easy enough to add if you want it or leave it out. Sorry, I'm old – I can't keep track of all your permutations.

Screenshot_20241206_121618_Edge.jpg
 
When the data is shifted out, each place there is a high, the LED will be on. Each place there is a low, the LED will be off.

Code:
% 1  0  0  1  1  0  0  0

  ●  ○  ○  ●  ●  ○  ○  ○
 
You have the patience of a saint.

Mike.

I think mentally deranged is the term you were looking for!

Already on page 10 and we're not even through the opening act!
 

New Articles From Microcontroller Tips

Back
Top