Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Don't forget the reverse-biased back-emf protection diode to suppress the voltage spike which the relay coil generates at switch-off.I am also going to use a transistor to switch a coil on a relay.
danadak just to clarify I'm not switching 500mA, that was the max allowed for both the transistor base and mcu GPIO according to the datasheets.
So if the base is max'ed @ 500mA how much should I allow for the base?
danadak if I understand correctly, I have a relay that according to the datasheet operates @ 200mW which is 40mA I only need 4 mA for the transistor baseIf you are driving a relay than whatever that current is / 10 to drive into base for a bipolar.
Maybe I do not understand your question.
Regards, Dana.
Les Jones I went back and looked at the datasheet and you are correct, thanks for catching thatThe bottom transistor will NOT drive the DP LEDs as they need to be pulled towards ground to turn the LEDs on. It's collector would need to be connected to the DP via a current limiting resistor and it's emitter connected to the negative rail. This transistor would need a current limiting resistor in the base for this configuration.
Les.
Excellent, so base R just needs to supply 4 mA from GPIO pin.danadak if I understand correctly, I have a relay that according to the datasheet operates @ 200mW which is 40mA I only need 4 mA for the transistor base
danadak if I understand correctly, I have a relay that according to the datasheet operates @ 200mW which is 40mA I only need 4 mA for the transistor base
Nigel Goodwin you have given me some information to ponder and been doing some research on the use of transistorsYou're using the transistors as linear devices, not switches - which is why most designs would use PNP transistors for the top switches. No disrespect, but it's a poor design choice - often found in on-line designs, by people who don't really know what they are doing, and greatly increases heat in the transistors.
Nigel Goodwin you have given me some information to ponder and been doing some research on the use of transistors
I am using some transistors to "switch" the relays and switching those to PNP type.
Here is the display section schematic I'm using for a multipurpose clock I'm working on. It might be a bit more clear than the bus nomenclature of the datasheet.
The only weirdness I have here is that the 3rd digit is rotated 180° so I can use the decimal points as a colon for the time. I remap it in hardware so I don't have to mess with it in software.
If you use a multiplexed 4 digit display, the connections are simpler. Eight wires for the segments and 4 for the digit commons.
I'm trying to find the top of my bench so I can get some boards assembled. I'm sure it's down there somewhere
View attachment 140596