There are a couple ways you can do this, and since it is late at night, I'm gonna post a very general response, let you google some stuff, and then reply to any further questions. Most people that are DIYing their own dimmer circuits, are using wall warts in conjunction with a simple POT...