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.
 
Here is my Python code to Get the Time, Decode the Hours and Minutes, and create the 20 BYTE data string sent over MQTT back to the Clock.

Updated MQTT video showing actual clock in operation rolling over from 12:59 to 1:00
Be sure and open the descriptions using the three dots on the video link.
 

Attachments

  • python code.txt
    3.7 KB · Views: 35
Last edited:
Well, I have the board all wired, but not doing what it is supposed to do.
The MOSFETs/ LEDs are turning on when they are supposed to be OFF.
In this simple schematic, if I turn on Netport3 then ONLY led 2 should be ON
but led 4 comes ON even when I make sure netport4 is OFF
Thinking base resistor is wrong value or ??




















n
 

Attachments

  • Schematic_mosfet-set-up_2024-10-08.pdf
    33 KB · Views: 50
I very much doubt the mosfets will turn on at all you have P channel.. I would get hold of some N channel hexfets as these work on a 5 volt level... P channel's need VDD - 10v to switch..
 
The question must be asked.

What mosfets does MrDEB actually have? MrDEB is never a stickler for details. The schematic symbol is a p-channel mosfet but the part number RQ5E040AJ is an n-channel mosfet. What he actually has soldered to the board is anybody's guess.

MrDEB is using EasyEDA, which has proper symbols for a billizian parts, including the RQ5E040AJ, so it's a mystery why he has the wrong symbol.

The "simple schematic" is also dubious, as it doesn't show any series resistors for the LEDs. Its relationship with reality in any form is doubtful.
1728392345395.png
 
Last edited:
as per post #125, the symbol is an N channel
I went back and double-checked the symbol as well as the easy symbol.

Negatory on that space cowboy. Your schematic schematic features a p-channel symbol. Kind of hard to screw that up if you searched for the part in EasyEDA as was shown in post #126.

Soooo, you have a hardware problem. Or a software problem. Or both.


Screenshot_20241008_082608_Dropbox.jpg
 
I don’t know exactly what part you're using, but it looks like you have the fet connected wrong... the body diode is always going to conduct. Check the source and drain connections.
 
Oops. Color me embarrassed. As tumbleweed said, it's not the wrong symbol – it's just flipped over, and installed incorrectly.
 
The gate threshold voltage is spec's at 1.5v max, so IF it's installed "right side up" it should handle the job at hand.

Who knows what's actually on the board.
 

Latest threads

New Articles From Microcontroller Tips

Back
Top