Wolframore
- Joined Jan 21, 2019
- 2,619
Don't think so. Assuming a 5.0 V output from the Arduino (which it is not), the base current would be 4.4 mA at 1 K, and less than 0.5 mA at 9 K. The 1 K current is ok, but the 9 K current is way too low to assure firm saturation at 50 mA collector current.R1 can be higher 4.7k to about 9k.
The datasheet specifies full enhancement at Vgs = 10 V, so even though it behaves very well at Vgs = 5 V, it is not a true logic level part.I was thinking maybe a logic level MOSFET... 2N7000?
Not super old, just small. There is a big difference in internal construction between a 0.20 A FET and a 20.0 A FET.I have some 2N7000 - are these super old? Their RDS is pretty high.
Just use a transistor to drive the relay.I'll use Arduino+PC817C+Omron G5V relay. any suggestions please.
Logic level shifter. The same chip is used on a dozen modules available through as many distributors. Nice feature is bi-directional. That assumes you only want to go from 3.3 volts to 5.0 volts or 5.0 volts to 3.3 volts.
Ron
The first picture is driving the relay low side and the other is driving high side. The second is not a desirable configuration. You'd normally use a PNP transistor so you don't lose a diode drop for the coil voltage. Wherever you found the second circuit, I'd suggest avoiding them in the future.I got a question about what's the deference of the pictures below:
Thanks.The first picture is driving the relay low side and the other is driving high side. The second is not a desirable configuration. You'd normally use a PNP transistor so you don't lose a diode drop for the coil voltage. Wherever you found the second circuit, I'd suggest avoiding them in the future.
The output of GPIO is not enough current to drive the relay coil, AnalogKid already mentioned in #9.Put two or three rectifier diodes in series with the relay coil to drop the voltage.
Plus, 40mA is a maximum. Designs usually only provide 20mA per pin.The output of GPIO is not enough current to drive the relay coil, AnalogKid already mentioned in #9.
The Aduino only could provide 40mA for each pin, otherwise it will be more easier, it just needs a resistor to limits the current for relay coil.
That’s it! This thread went off the rails a long time ago. It’s easy to forget the original problem (I did, although my last post did provide important general information).