User Tools

Site Tools


controller

Building up the Controller

Needed Parts and PCB

You need a PCB. You may use the layout from Github and etch it yourself / let it be produced at a factory creating PCBs.

Partlist (in buildup order)

Amount Part Placing Picture
1 PCB Controller pcb_controller.jpg
1 Diode 1N4148 D1 diode_1n4148.jpg
3 Zener Diode 3,3V D2, D3, D4 diode_3_3v.jpg
1 Resistor 1k5 brown-green-red R1 resistor_1k5.jpg
4 Resistor 560R green-blue-brown R2, R9, R11, R12 resistor_560r.jpg
1 Resistor 47k XXXXXXXXXXXXXXXXX R3 resistor_47k.jpg
3 Resistor 1k brown-black-red R4, R5, R6 resistor_1k.jpg
1 Resistor 4k7 yellow-violet-red R7 resistor_4k7.jpg
1 Resistor 1M brown-black-green R10 resistor_1m.jpg
1 Resistor 10R (LED Backlight) R15 resistor_10r.jpg
2 Resistor 10k brown-black-red R17, R19 resistor_10k.jpg
1 Inductor 10µH L1 inductor_10uh.jpg
1 Quarz / Crystal 20 MHz Q1 crystal_20mhz.jpg
2 Capacitor 22pF C1, C2 capacitor_22pf.jpg
1 Capacitor 1µF C3 capacitor_1uf.jpg
1 Capacitor 10µF C5, C6 capacitor_10uf.jpg
2 Capacitor 100nF C7, C8 capacitor_100nf.jpg
1 Capacitor 220nF C4 capacitor_220nf.jpg
1 Button/Switch S1 button.jpg
4 Transistor BC337 T1-T4 transistor_bc337.jpg
1 Transistor BC327 Q2 transistor_bc327.jpg
1 FET Transistor 2N7000 Q4 transistor_2n7000.jpg
1 Voltage regulator LP2950Z IC3 ic_lp2950z.jpg
1 Trimmer Potentiometer 200R R8 tr_poti_200r.jpg
1 Trimmer Potentiometer 20k R18 tr_poti_20k.jpg
1 IC holder IC4 ic_holder_48pin.jpg
1 IC ATMega644-20PU IC4 atmega644.jpg
1 LED 2mA LED1/JP13 led_yellow.jpg
1 Connector AVR ISP 6pin JP1 connector_isp.jpg
1 Transceiver PCB RFM12B IC2 ic_rfm12b.jpg
1 Antenna (82,2mm wire) JP2 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 description about recommended values.

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.
  • 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 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.
  • 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 the RFM12B mounting instructions.

(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.txt · Last modified: 2023/03/06 20:55 by breaker27