Many of articles on this site might look trivial. So they are. But this is the result of my personal experience: I got tired catching myself re-inventing the wheel again and again. Thus I decided to post whatever proved to be useful for me at least once, in the hope that it might save some time to myself and others in the future.The industry makes it all for you. One can purchase a Solid State Relay (SSR) that would fulfill virtually any imaginable requirements. The only question is money: a decent device capable of handling mains power load of few hundred Watts would cost as from $10 and up. While if we lower the bar and look for an SSR capable of switching say 100mA - it would be possible to get one for less than a dollar.Here is a very simplistic (and relatively inexpensive) SSR implementation that is capable of managing heavy loads. It uses a TRIACas the main power switch and a "telephony" SSR controlling it.
|Shadow Constant-Current Source a.k.a. "Compliant CCS" by John Broskie|