Here's a Basic outline of the dimmer and triac.

Go here for loads more links .