https://www.hardware.com.br/comunidade/dimmer-fazer/1337368
Como fazer um Dimmer (regulador de tensão) digital?