Ken Webster says:
Low cost option:
- Pic output through 2.2k to base of 2N3904
- 2N3904 emitter to GND
- 2N3904 collector to relay coil and annode of diode (1N4148 or 1N4001 or similar .. whatever is cheap and/or readily available)
- other side of relay coil and cathode of diode to +9V
To turn relay on: raise output to logic "1", Vdd
To turn relay off: drop output to logic "0", GND
The diode shunts voltage overshoot from the coil's inductance when the transistor is switched off and prevents damage to the transistor.
You can substitute similar transistors for 2N3904 if available or cheaper: 2N2222 is a close substitute
+24 | |---------, relay ^ coil diode |---------' drain +5 --- gate N Channel Hexfet control source | GND
Select an enhancement-mode N-channel MOSFET or HEXFET which completely turns on at 5 volts (such devices are often referred to as "logic level" FETs). Choose current and voltage ratings larger than your relay coil requires. An inexpensive device capable of driving 1A at 100V is the IRLD110.
Add a reverse biased diode across the relay coil to protect the driver. Any diode with a current rating higher than the current of the coil and a voltage rating higher than the voltage of the coil may be used. 1N4001 is a low-cost diode suitable for most applications.
|file: /Techref/io/relay/smallHV.htm, 2KB, , updated: 2009/1/26 15:10, local time: 2020/7/10 14:16,
|©2020 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://piclist.com/techref/io/relay/smallHV.htm"> Relay driver, Solenoid driver, relay, solenoid, IO</A>
|Did you find what you needed?|
PICList 2020 contributors:
o List host: MIT, Site host massmind.org, Top posters @20200710 RussellMc, Jason White, Bob Blick, Neil, David C Brown, madscientistatlarge, Sean Breheny, Harold Hallikainen, Allen Mulvey, James Cameron,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to piclist.com!