User Tools

Site Tools


controller

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
controller [2023/02/28 20:16] breaker27controller [2023/03/06 20:55] (current) – [Modification of PCB rev. 1.0] breaker27
Line 1: Line 1:
-====== Building up an RGB Dimmer ======+====== Building up the Controller ======
  
 ===== Needed Parts and PCB ===== ===== Needed Parts and PCB =====
Line 7: Line 7:
 ==== Partlist (in buildup order) ==== ==== Partlist (in buildup order) ====
  
-^  Amount               Part                      ^  Placing               Picture                    +^  Amount            Part            ^  Placing               Picture              
-       | PCB Controller                                     |  {{ parts:pcb_controller.jpg }}  | +  | PCB Controller                                   |  {{ parts:pcb_controller.jpg }}  | 
-       Capacitor 22p                           C1+C2      |  {{ parts:capacitor_22p.jpg}}    | + 1  Diode 1N4148                    D1               |  {{ parts:diode_1n4148.jpg }}    | 
-       | Diode 1N4148                            D1         |  {{ parts:diode_1n4148.jpg }}          + 3  Zener Diode 3,3V                D2, D3, D4       |  {{ parts:diode_3_3v.jpg }}      
-|    4     | Resistor 560R green-blue-brown          R1-R4      |  {{ parts:resistor_560r.jpg }}         +  | Resistor 1k5 brown-green-red    | R1                {{ parts:resistor_1k5.jpg }}    | 
-|    1     | Resistor 1M brown-black-green           R5         |  {{ parts:resistor_1m.jpg }}           +|   | Resistor 560R green-blue-brown  R2, R9, R11, R12 |  {{ parts:resistor_560r.jpg }}   | 
-       IC holder                               IC1        |  {{ parts:ic_holder.jpg }}             +|  1  | Resistor 47k XXXXXXXXXXXXXXXXX  | R3                {{ parts:resistor_47k.jpg }}    | 
-|    1     Voltage regulator LP2950Z               | IC3        |  {{ parts:ic_lp2950z.jpg }}            +|  3  | Resistor 1k brown-black-red     R4, R5, R6       |  {{ parts:resistor_1k.jpg }}     
-       | Transistor BC337                        | T1-T3      |  {{ parts:transistor_bc547c.jpg }}     +  | Resistor 4k7 yellow-violet-red  | R7                {{ parts:resistor_4k7.jpg }}    
-       LED 2mA                                 LED1       |  {{ parts:led_yellow.jpg }}            +|   | Resistor 1M brown-black-green   R10              |  {{ parts:resistor_1m.jpg }}     
-       Connector AVR ISP 6pin                  JP1        |  {{ parts:connector_isp.jpg }}         +  Resistor 10R (LED Backlight)    R15              |  {{ parts:resistor_10r.jpg }}    
-       Connector pin header (for serial TX debugging etc. JPx   |  {{ parts:connector_pinheader.jpg }}   +  | Resistor 10k brown-black-red    | R17, R19          {{ parts:resistor_10k.jpg }}    | 
-   1     Capacitor 10µF                          C1         |  {{ parts:capacitor_10uf.jpg }}        +|   Inductor 10µH                   | L1               |  {{ parts:inductor_10µH.jpg }}   | 
-       Capacitor 100µF                         C2         |  {{ parts:capacitor_100uf.jpg }}       | +|  1  | Quarz / Crystal 20 MHz          | Q1               |  {{ parts:crystal_20mhz.jpg }}   
-       IC ATMega328                            IC1         {{ parts:atmega.jpg }}                +  | Capacitor 22pF                  | C1, C2            {{ parts:capacitor_22pf.jpg }}  | 
-       | Transceiver PCB RFM12B                  | IC2        |  {{ parts:ic_rfm12b.jpg }}             +|  1  | Capacitor 1µF                   | C3                {{ parts:capacitor_1uf.jpg }}   | 
-       | Antenna (82,2mm wire)                              |  {{ parts:antenna.jpg }}               | +|  1  | Capacitor 10µF                  | C5, C6            {{ parts:capacitor_10uf.jpg }}  | 
- +|  2  | Capacitor 100nF                 | C7, C8            {{ parts:capacitor_100nf.jpg }} | 
-You have to decide on the LEDs you want to use. Depending on the type, you have to use different resistors R6, R7, R8 for the LEDs. See further down for a recommended one. +|  1  | Capacitor 220nF                 | C4                {{ parts:capacitor_220nf.jpg }}  | 
- +|  1  | Button/Switch                   | S1                {{ parts:button.jpg }}          | 
-The capacitor C2 is only to buffer the input voltage in case you connect LEDs that draw much power and you want to avoid problems with some programmers that may have problems flahing when the voltage changes much.+|  4  | Transistor BC337                | T1-T4            |  {{ parts:transistor_bc337.jpg }}  
 +  Transistor BC327                Q2               |  {{ parts:transistor_bc327.jpg }}  
 +  FET Transistor 2N7000           Q4               |  {{ parts:transistor_2N7000.jpg }}  
 +  Voltage regulator LP2950Z       | IC3              |  {{ parts:ic_lp2950z.jpg }}      | 
 +|  1  Trimmer Potentiometer 200R      | R8               |  {{ parts:tr_poti_200r.jpg }}    
 +  | Trimmer Potentiometer 20k       | R18              |  {{ parts:tr_poti_20k.jpg }}     | 
 +  | IC holder                       | IC4              |  {{ parts:ic_holder_48pin.jpg }}  
 +  IC ATMega644-20PU               IC4              |  {{ parts:atmega644.jpg }}       | 
 +  LED 2mA                         LED1/JP13         {{ parts:led_yellow.jpg }}      
 +  | Connector AVR ISP 6pin          | JP1              |  {{ parts:connector_isp.jpg }}   | 
 +|  1  | Transceiver PCB RFM12B          | IC2              |  {{ parts:ic_rfm12b.jpg }}       
 +  | Antenna (82,2mm wire)           JP2              |  {{ parts:antenna.jpg }}         |
  
 +You have to decide on the LEDs you want to use. Depending on the type, you have to use different resistors **R13, R14, R16** for the LEDs. See the corresponding part in the [[rgb_dimmer|RGB Dimmer]] description about recommended values.
 ===== Buildup of PCB ===== ===== Buildup of PCB =====
  
Line 39: Line 51:
   * **ISP Connector:** The notch points to the side of the PCB.   * **ISP Connector:** The notch points to the side of the PCB.
   * **10 uF Capacitor:** The marked line is -, which points to the mid of the PCB. On the PCB, + is labelled.   * **10 uF Capacitor:** The marked line is -, which points to the mid of the PCB. 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 (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. Pin10 should have VCC (5V) against pin11 (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/controller/placing.png?500}}+{{https://raw.github.com/breaker27/smarthomatic/develop/hardware/controller/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!)//
 +
 +===== Modification of PCB rev. 1.0 =====
 +
 +In the initial PCB, the blue LED channel is connected to PD7 (OC2A, pin21). To use the same code as for the RGB Dimmer, this needs to be rewired to PD6 (OC2B, pin20). Cut the connection at the bottom of the PCB and make the new connection with a wire.
 +
 +The status LED has to be rewired from initial PB2 (pin3) to PD7 (pin21), also to use the same code as in all other devices for the status LED. This can be done easiest by connecting the resistor R1 to a wire and connecting the wire to PD7.
 +
 +In future PCB versions, this shall be changed in the schematic and layout.
 +
 +To perform the modification, cut the PCB tracks on the marked positions and connect them to the other pins with patch cables.
 +
 +{{ controller_mod1.jpg }}
 +{{ controller_mod2.jpg }}
 +
  
controller.1677611810.txt.gz · Last modified: 2023/02/28 20:16 by breaker27