Will the Teensy 2 drive 40mA directly or do I need a transistor/driver?

Status
Not open for further replies.
I want to drive a small Omron G6C relay, that lists in technical data 40mA drive current, 125 Ohms coil resistance at 5V. Can I drive it directly from a Teensy 2 digital output or will I need a transistor? I assume if I need a transistor, I can use the USB power from the teensy to drive the transistor?
 
I want to drive a small Omron G6C relay, that lists in technical data 40mA drive current, 125 Ohms coil resistance at 5V. Can I drive it directly from a Teensy 2 digital output or will I need a transistor? I assume if I need a transistor, I can use the USB power from the teensy to drive the transistor?

I would suggest it just to be safe, remember to include a flyback diode when powering inductive loads
 

Attachments

  • Schem relay.PNG
    Schem relay.PNG
    7.5 KB · Views: 649
The CPU on the Teensy 2.0 is only spec'ed to run about 10 mA -- it might actually drive the relay, but would not be reliable. You can use the above circuit -- use nearly any NPN transistor (e.g. 2N2222 or 2N3904), and also nearly any diode you can find. You actually don't need the resistor if you ensure that the collector of the transistor is connected to the same supply as the Teensy.
 
On the topic of off the shelf relay products: What I always wondered was: Why does none of the vendors in the Arduino/Teensy/Raspberry Pi-universe (like Adafruit, Sparkfun ..) make a small box that safely encloses all the high voltage mains stuff, and that can be driven from an output directly. Yes, there are these radio controlled sockets, but driving stuff directly from a pin is something different. Of course at least two different versions (EU, US) would be necessary, but nevertheless I think there is a huge market for this (especially for children, schools, etc.). An open relay board really does not cut it in these situations.
 
Status
Not open for further replies.
Back
Top