Table of Contents
Building up a Dimmer
Please note that this dimmer is for CLF lamp power supplies only that support 1-10V input (Osram DIM interface) as described on the homepage. It is not for connecting lamps directly to it.
Needed Parts and PCB
You need a PCB. You may use the layout from Github and etch it yourself or order the PCB or a complete kit.
Partlist (in buildup order)
Buildup of PCB
As always: start from flat to high. Go through the partlist and solder the parts from the top ones to the last ones.
For some parts, you have to consider something special:
- IC holder: Look at the notch and place it in the right direction.
- Transistors and voltage regulators: I suggest soldering the pins after one another only after a pause of about half a minute to let the part cool down. If you stick all transistors and regulators through the PCB, you could solder only one pin of each part, then cut the overlapping wire and then continue to solder the next pin of each part.
- LED: Solder it to a wire if you want to place the PCB in a housing later. Read the instructions on how to solder the LED to a cable. The longer wire of the LED is +. It goes into the hole more in the middle of the PCB.
- ISP Connector: The notch is marked on the PCB and points to the smarthomatic logo.
- Capacitors: The marked side on the capacitor is -. On the PCB, + is labelled.
- ATMega: Before inserting it, you may want to check the voltage levels when switching the power on. Pin7 should have VCC (3.3V) against pin8 (ground). If you have different voltages: don't panic, nothing is broken, nothing is fried. Search your error. To insert the ATMega, bend the pins at 90 degreed by placing the ATMega on the table and bending it carefully. Then insert it into the IC holder. Be sure that you are not charged with electricity (ESD!) when touching the IC pins.
- RFM12B: You should also check the voltages first before soldering the module. At the place for the radio module the pad beside the antenna and at the opposite side the third pad should read about 3.3 V. For soldering, read the RFM12B mounting instructions.
(Image directly loaded from external GitHub source. If it doesn't work, fix link in wiki!)
Bringing the device into operation
Don't power the circuit immediately by the 230V transformer. It is highly recommended to connect only a DC power supply to JP2 at 14.5 to 20V at the beginning. You can then safely set up and test everything without using dangerous high voltages.
Flashing the firmware
If you have a new ATMega where nothing is flashed onto, download a prebuilt binary package or build your own firmware. If you bought a hardware kit, the ATMega should already be flashed.
After flashing and switching the power on, the LED flashes several times. The relay stays off. If you switch the dimmer on with a switch at JP4 (near the LED), the relay should switch on.
Integrate it into a housing
You can either use an extra housing or integrate the device directly into the housing of a CFL lamp. See the picture on the website for an example.
It is very important to use shielded cables for the 1-10V control voltage. If you use unshielded cables and they are near the high voltage cables, interferences can crash your microcontroller when you switch on the lamp.