User Tools

Site Tools


dimmer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dimmer [2014/05/31 16:33] – [Partlist (in buildup order)] breaker27dimmer [2015/02/08 19:23] (current) – [Integrate it into a housing] breaker27
Line 11: Line 11:
 ^  Amount  ^               Part                      ^  Placing               Picture                    ^ ^  Amount  ^               Part                      ^  Placing               Picture                    ^
 |    1     | PCB Dimmer                              |            |  {{ parts:pcb_dimmer.jpg }}            | |    1     | PCB Dimmer                              |            |  {{ parts:pcb_dimmer.jpg }}            |
-|        | Diode 1N4148                            | D1-D6       {{ parts:diode_1n4148.jpg }}          |+|        | Diode 1N4148                            | D1-D7       {{ parts:diode_1n4148.jpg }}          |
 |    1     | Resistor 680R blue-gray-brown           | R1          {{ parts:resistor_680r.jpg }}         | |    1     | Resistor 680R blue-gray-brown           | R1          {{ parts:resistor_680r.jpg }}         |
 |    2     | Resistor 1k brown-black-red             | R2, R6      {{ parts:resistor_1k.jpg }}           | |    2     | Resistor 1k brown-black-red             | R2, R6      {{ parts:resistor_1k.jpg }}           |
Line 18: Line 18:
 |    1     | Resistor 100R 0,1% brown-black-black-black | R5      |  {{ parts:resistor_100r_0p1.jpg }}     | |    1     | Resistor 100R 0,1% brown-black-black-black | R5      |  {{ parts:resistor_100r_0p1.jpg }}     |
 |    1     | IC holder                               | IC1        |  {{ parts:ic_holder.jpg }}             | |    1     | IC holder                               | IC1        |  {{ parts:ic_holder.jpg }}             |
-|    1     | Voltage regulator 7812L                 | IC3        |  {{ parts:ic_7812l.jpg }}              |+|    1     | Voltage regulator 78L12                 | IC3        |  {{ parts:ic_78l12.jpg }}              |
 |    1     | Voltage regulator LP2950Z               | IC4        |  {{ parts:ic_lp2950z.jpg }}            | |    1     | Voltage regulator LP2950Z               | IC4        |  {{ parts:ic_lp2950z.jpg }}            |
 |    2     | Transistor BC547C                       | T1, T2      {{ parts:transistor_bc547c.jpg }}     | |    2     | Transistor BC547C                       | T1, T2      {{ parts:transistor_bc547c.jpg }}     |
 |    1     | LED 2mA                                 | LED1        {{ parts:led_yellow.jpg }}            | |    1     | LED 2mA                                 | LED1        {{ parts:led_yellow.jpg }}            |
-|        | Connector AVR ISP 6pin angled           JP1        |  {{ parts:connector_isp_angled.jpg }}  | +|        | Capacitor 220nF                         C5C6     |  {{ parts:capacitor_220nf.jpg }}        |
-|    3     | Connector 2pin                          | X1X2, X3    {{ parts:connector_clamp_2pin.jpg }}  | +
-|    1     | Connector 1 pin header (for serial TX debugging)  | JP2, JP3   |  {{ parts:connector_pinheader.jpg }}   |+
 |    2     | Capacitor 10µF                          | C1, C4      {{ parts:capacitor_10uf.jpg }}        | |    2     | Capacitor 10µF                          | C1, C4      {{ parts:capacitor_10uf.jpg }}        |
 |    2     | Capacitor 100µF                         | C2, C3      {{ parts:capacitor_100uf.jpg }}       | |    2     | Capacitor 100µF                         | C2, C3      {{ parts:capacitor_100uf.jpg }}       |
 +|    1     | Connector AVR ISP 6pin                  | JP1        |  {{ parts:connector_isp.jpg }}         |
 +|    3     | High Voltage Connector 2pin             | X1, X2, X3    {{ parts:connector_clamp_2pin.jpg }}  |
 +|    1     | Connector 1 pin header (for power + serial TX debugging)  | JP2, JP3    {{ parts:connector_pinheader.jpg }}   |
 |    1     | IC ATMega328                            | IC1        |  {{ parts:atmega.jpg }}                | |    1     | IC ATMega328                            | IC1        |  {{ parts:atmega.jpg }}                |
-|    1     | Fuse holder                             | F1          {{ parts:fuse_holder.jpg}}            | +|    1     | Fuse holder                             | F1          {{ parts:fuse_holder.jpg }}            | 
-|    1     | Fuse 50mA T                             | F1          {{ parts:fuse.jpg}}                   | +|    1     | Fuse 50mA T                             | F1          {{ parts:fuse.jpg }}                   | 
-|    1     | Relay G5LE (12V)                        | K1          {{ parts:relay_g5le.jpg }}            | +|    1     | Relay Omron G6D (12V)                   | K1          {{ parts:relay_g6d.jpg }}            | 
-|    1     | Transformer 12V                         | TR1        |  {{ parts:transformer_12v.jpg}}        |+|    1     | Transformer 15V                         | TR1        |  {{ parts:transformer_15v.jpg }}        |
 |    1     | Transceiver PCB RFM12B                  | IC2        |  {{ parts:ic_rfm12b.jpg }}             | |    1     | Transceiver PCB RFM12B                  | IC2        |  {{ parts:ic_rfm12b.jpg }}             |
 |    1     | Antenna (82,2mm wire)                              |  {{ parts:antenna.jpg }}               | |    1     | Antenna (82,2mm wire)                              |  {{ parts:antenna.jpg }}               |
Line 42: Line 43:
  
   * **IC holder:** Look at the notch and place it in the right direction.   * **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 [[LED_soldering|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.   * **LED:** Solder it to a wire if you want to place the PCB in a housing later. Read the instructions on how to [[LED_soldering|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 points to the side of the PCB (towards the voltage regulator)+  * **ISP Connector:** The notch is marked on the PCB and points to the smarthomatic logo
-  * **Capacitors:** The marked line is -. On the PCB, + is labelled.+  * **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.   * **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 [[rfm12b_soldering|the RFM12B mounting instructions]].   * **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 [[rfm12b_soldering|the RFM12B mounting instructions]].
  
-{{https://raw.github.com/breaker27/smarthomatic/develop/hardware/dimmer/placing.png?500}}+{{https://raw.github.com/breaker27/smarthomatic/develop/hardware/dimmer/placing.png?850}}
  
 //(Image directly loaded from external GitHub source. If it doesn't work, fix link in wiki!)// //(Image directly loaded from external GitHub source. If it doesn't work, fix link in wiki!)//
 +
 +===== Bringing the device into operation =====
 +
 +{{danger.gif}} **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 ===== ===== Flashing the firmware =====
Line 57: Line 63:
  
 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. 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 ===== ===== Integrate it into a housing =====
  
-describe it...+You can either use an extra housing or integrate the device directly into the housing of a CFL lampSee the  [[http://www.smarthomatic.org/devices/dimmer.html|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.
dimmer.1401546811.txt.gz · Last modified: 2014/05/31 16:33 by breaker27