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:23] – [Partlist (in buildup order)] 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 13: Line 13:
 |  1  | Resistor 1k5 brown-green-red    | R1                {{ parts:resistor_1k5.jpg }}    | |  1  | Resistor 1k5 brown-green-red    | R1                {{ parts:resistor_1k5.jpg }}    |
 |  4  | Resistor 560R green-blue-brown  | R2, R9, R11, R12 |  {{ parts:resistor_560r.jpg }}   | |  4  | Resistor 560R green-blue-brown  | R2, R9, R11, R12 |  {{ parts:resistor_560r.jpg }}   |
 +|  1  | Resistor 47k XXXXXXXXXXXXXXXXX  | R3                {{ parts:resistor_47k.jpg }}    |
 |  3  | Resistor 1k brown-black-red     | R4, R5, R6        {{ parts:resistor_1k.jpg }}     | |  3  | Resistor 1k brown-black-red     | R4, R5, R6        {{ parts:resistor_1k.jpg }}     |
 +|  1  | Resistor 4k7 yellow-violet-red  | R7                {{ parts:resistor_4k7.jpg }}    |
 |  1  | Resistor 1M brown-black-green   | R10              |  {{ parts:resistor_1m.jpg }}     | |  1  | Resistor 1M brown-black-green   | R10              |  {{ parts:resistor_1m.jpg }}     |
 +|  1  | Resistor 10R (LED Backlight)    | R15              |  {{ parts:resistor_10r.jpg }}    |
 +|  2  | Resistor 10k brown-black-red    | R17, R19          {{ parts:resistor_10k.jpg }}    |
 +|  1  | Inductor 10µH                   | L1                {{ parts:inductor_10µH.jpg }}   |
 |  1  | Quarz / Crystal 20 MHz          | Q1                {{ parts:crystal_20mhz.jpg }}   | |  1  | Quarz / Crystal 20 MHz          | Q1                {{ parts:crystal_20mhz.jpg }}   |
 |  2  | Capacitor 22pF                  | C1, C2            {{ parts:capacitor_22pf.jpg }}  | |  2  | Capacitor 22pF                  | C1, C2            {{ parts:capacitor_22pf.jpg }}  |
 +|  1  | Capacitor 1µF                   | C3                {{ parts:capacitor_1uf.jpg }}   |
 +|  1  | Capacitor 10µF                  | C5, C6            {{ parts:capacitor_10uf.jpg }}  |
 +|  2  | Capacitor 100nF                 | C7, C8            {{ parts:capacitor_100nf.jpg }} |
 +|  1  | Capacitor 220nF                 | C4                {{ parts:capacitor_220nf.jpg }}  |
 |  1  | Button/Switch                   | S1                {{ parts:button.jpg }}          | |  1  | Button/Switch                   | S1                {{ parts:button.jpg }}          |
-|  1  | IC holder                       IC1              |  {{ parts:ic_holder.jpg }}       |+|  4  | Transistor BC337                | T1-T4            |  {{ parts:transistor_bc337.jpg }}  | 
 +|  1  | Transistor BC327                Q2               |  {{ parts:transistor_bc327.jpg }}  | 
 +|  1  | FET Transistor 2N7000           | Q4                {{ parts:transistor_2N7000.jpg }}  |
 |  1  | Voltage regulator LP2950Z       | IC3              |  {{ parts:ic_lp2950z.jpg }}      | |  1  | Voltage regulator LP2950Z       | IC3              |  {{ parts:ic_lp2950z.jpg }}      |
-|  1  | LED 2mA                         | LED1             |  {{ parts:led_yellow.jpg }}      |+|  1  | Trimmer Potentiometer 200R      | R8                {{ parts:tr_poti_200r.jpg }}    | 
 +|  1  | Trimmer Potentiometer 20k       | R18              |  {{ parts:tr_poti_20k.jpg }}     | 
 +|  1  | IC holder                       | IC4              |  {{ parts:ic_holder_48pin.jpg }}  | 
 +|  1  | IC ATMega644-20PU               | IC4              |  {{ parts:atmega644.jpg }}       | 
 +|  1  | LED 2mA                         | LED1/JP13        |  {{ parts:led_yellow.jpg }}      |
 |  1  | Connector AVR ISP 6pin          | JP1              |  {{ parts:connector_isp.jpg }}   | |  1  | Connector AVR ISP 6pin          | JP1              |  {{ parts:connector_isp.jpg }}   |
-|  2  | Capacitor 10µF                  | C5, C6            {{ parts:capacitor_10uf.jpg }}  | 
-|  1  | IC ATMega328                    | IC1              |  {{ parts:atmega.jpg }}          | 
 |  1  | Transceiver PCB RFM12B          | IC2              |  {{ parts:ic_rfm12b.jpg }}       | |  1  | Transceiver PCB RFM12B          | IC2              |  {{ parts:ic_rfm12b.jpg }}       |
 |  1  | Antenna (82,2mm wire)           | JP2              |  {{ parts:antenna.jpg }}         | |  1  | 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 R6R7R8 for the LEDs. See further down for a recommended one. +You have to decide on the LEDs you want to use. Depending on the type, you have to use different resistors **R13R14R16** for the LEDs. See the corresponding part in the [[rgb_dimmer|RGB Dimmer]] description about recommended values.
- +
-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. +
 ===== Buildup of PCB ===== ===== Buildup of PCB =====
  
Line 42: 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.1677612215.txt.gz · Last modified: 2023/02/28 20:23 by breaker27