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 GNDPaul 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?
Also:
See also:
| file: /Techref/io/relay/IsoHV.htm, 1KB, , updated: 2009/1/26 15:04, local time: 2012/5/22 20:29,
38.107.179.234:LOG IN |
| ©2012 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.ecomorder.com/techref/io/relay/IsoHV.htm"> Relay / Solenoid IO Driver:</A> |
| Did you find what you needed? |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.