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.
 
Since MrDEB doesn't seem to understand what I'm talking about in his current schematic, here's a picture.


Schematic_crap_2024-08-27.png
 
here is my correct schematic hopefully. After looking over my older schematic (8/27/24) I discovered my mistake.
Have researched and putting the 10K resistor directly connected to the gate allows faster turn on/off. In post#81 it is listed as voltage divider. NOTE I discovered my mistake before view post#81
Thanks for saving me some money before ordering boards.
After working on this seahawk project, I decided to redo the mess I produced with the Christmas stars a few years ago. NOTE the stars work great but the LEDs are connected wrong. Two LEDs in parelle one resistor.
 

Attachments

  • Schematic_smd-seahawk_2024-08-28.pdf
    311.2 KB · Views: 49
L
I discovered my mistake.

You "DISCOVERED" your mistake? Perhaps posts 76, 78, 80 AND 81 had something to do with that truly remarkable discovery?


I shall look forward to more of your discoverys as you copy&paste[tm] your way to working code. I'm sure you'll have no trouble at all, since the code I provided you way back in post #4 was my first Swordfish Basic program. Unfortunately, I shan't be participating any further on you epic journey of discovery.

download (2).jpeg
 
To save some money on shipping I decided to create a Christmas ornament and order the seahawk clock and Christmas tree ornament in the same order.
This 8 x 16 matrix may look familiar as the schematic is the same as the TETRIS project from Digital-diy site.
a few minor changes.
Hopefully, JLCPBC can assemble the matrix. The chat/help ine is not open yet (5 am west coast).
 

Attachments

  • Schematic_tree-christmas_2024-08-31.pdf
    245.4 KB · Views: 47
a few minor changes.

FATAL ERROR – ULN2308 is wired incorrectly.

I am loath to give you any more help, but I couldn't in good conscious ignore this.
 
Well after spending lots of time attempting to get the pcb laid out as per the schematic in post#82 all I ended up with is garbage, so I redrew the schematic it seems to work out well. Then discovered post #82 has no crystal.
Here is my revised schematic. Yes, only one resistor per port/led. No reason for more than one blue LED (minutes) or more than one green LED (hours)
 

Attachments

  • Schematic_smd-clock_2024-09-10.pdf
    231.2 KB · Views: 27
You (and he) obviously forgot all about his intended use of an external I2C clock module DS1302 or whatever, so non-crystal would be fine. However, as usual it's going just as well as all of his previous threads.

No. I quickly recognized the futility of MrDEB attempting to use an I2C interface – we've been down that path before.

Below is the method I used for my first "major" Swordfish Basic project so many years ago (which is somewhat after MrDEB began torturing PIC18F devices). This method has a chance of success without more than the usual number of pages of forum posts.
There may be an easier way for you to accomplish this. The attached pdfs discuss what I did for the servo clock. The method used is basically counting seconds, and converting that count into hours and minutes. Maybe this will help.

This is based on Soft RTC - 4 Methods For A Precision PIC Time Clock from the Swordfish Basic website.

Sorry for my distractions in this thread about making a large clock out of four 150mm × 150mm pcbs (2 copies of the same board) (or nine 100mm ×100mm boards of three types) to make the stated 300mm diameter clock without the substantial increase in cost for a board that size. The idea would work very well, but without a good understanding of the issues involved allows no room for "re-engineering".
 
Well after dealing with bugs in EASYEDA I finally got a pcb designed.
I was placing vias and the net kept changing (found out it had 2 vias together.
Add in the fact that I had traces that decided to move by themselves.
Going to double-check the design etc before ordering boards.
If anyone wants the Gerber files, will be happy to share
 
dang it the silk screen layer wasn't supposed to be there

You know you can edit posts, delete the wrong image and add a new one, right?

(If there is a time limit, it's hours if not days.)
 
Last edited:
Only for a limited period though?, unless you're a mod - unless things have changed?.

Does not seem to be the case @nigel– this edit was done about 10 hours after I posted my comment, and I'm pretty sure I've edited posts days after I made them when I notice a typo. See quote below with edited comment added.

I have edited many times when I see a graphic isn't quite what I had planned on, sometimes several times when the computer gods weren't smiling upon me.

You know you can edit posts, delete the wrong image and add a new one, right?

(If there is a time limit, it's hours if not days.)
 

Latest threads

New Articles From Microcontroller Tips

Back
Top