Figure 1 – Dimmer using a triac
The capacitor value depends on the ac power line, and the triac is chosen according to the load current. Any diac can be used in this project. In some cases, the diac can be replaced with a neon lamp.
The triac must be mounted on a hetsink. The circuit also can be powered from 220/240 V AC power lines, but replacing the capacitor to a 220 nF unit.