Instructables

help with installing a doorbell transformer?

i just bought a doorbell transformer and i know how to do everything but install the transformer.. i know it could be hooked up to a junction box i just dont know how. it has three wires on the back, and a junction box i looked at had four different colors of wires in it. i do not know how to install it. please help me.. thanks