i want to know how to make a device that uses 16vdc and be controlled by a dimmer switch from mains power, but instead of reducing the volts i want to have it turn transistors on or off at different voltage levels. would this require a micro-controller or just caps and resistors? and the output of the transistors would be a 5vdc regulated supply