DC or AC? Shure, with DC, a MOSFET does the job, but it ties the mc power circuitry to the bulb circuitry. Using an opto driven driver triac and a load triac lets you use AC and you do not have to worry about cooling the rectifier etc... see this Arduino forum link: https://forum.arduino.cc/index.php?topic=460187.0 and also the attached datasheet for the MOC302X series of opto driven (driver) triacs.
© Espruino, powered by microcosm.
Report a problem