Terry Allen Steen, EE of Marina Power says:
The easiest way I have found is to drive the LED half of an optoisolator. Connect the output side to the relay and its source. I use the H11G2 (just because I have them around).+-------+ PIC OUT---| |--+--RELAY--+- High voltage | | | | | H11G2 | '--DIODE>-' ,--| |--, | | | | \|/ +-------+ \|/ GND GND
Paul B. Webster says:And you *did* mean to put a resistor in series with the opto input, did you not? And the diode across the relay?
|file: /Techref/io/relay/IsoHV.htm, 1KB, , updated: 2009/1/26 14:04, local time: 2018/11/21 00:55,
|©2018 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://www.piclist.com/techref/io/relay/IsoHV.htm"> Relay / Solenoid IO Driver:</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20181121 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Isaac M. Bavaresco, Bob Blick, Neil, Manu Abraham, John Gardner, AB Pearce - UKRI STFC,
* 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 www.piclist.com!