Table of Contents

Building up a Power Switch

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)

Amount Part Placing Picture
1 PCB Power Switch 1 pcb_power_switch.jpg
2 Diode 1N4148 D1, D2 diode_1n4148.jpg
2 Resistor 560R green-blue-brown R1, R2 resistor_560r.jpg
1 Resistor 1M brown-black-green R3 resistor_1m.jpg
1 IC holder IC1 ic_holder.jpg
1 Voltage regulator LP2950Z IC3 ic_lp2950z.jpg
1 Transistor BC547C T1 transistor_bc547c.jpg
1 LED 2mA LED1 led_yellow.jpg
1 Connector AVR ISP 6pin angled JP1 connector_isp_angled.jpg
1 Connector Switched Output 3pin X1 connector_clamp_3pin.jpg
1 Connector 1 pin header (for serial TX debugging) JP5 connector_pinheader.jpg
1 Capacitor 10µF C1 capacitor_10uf.jpg
1 Capacitor 1µF C2 capacitor_220nf.jpg
1 IC ATMega328 IC1 atmega.jpg
1 Relay FTR-K1C (230V, 16A) K1 relay_ftr_k1c.jpg
1 Transceiver PCB RFM12B IC2 ic_rfm12b.jpg
1 Antenna (82,2mm wire) antenna.jpg

maybe extra pins, at your opinion.

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:

(Image directly loaded from external GitHub source. If it doesn't work, fix link in wiki!)

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, your power switch should blink three times slowly. If you haven't flashed working EEPROM settings, it flashed quickly endlessly.

In normal operation, the LED shows the status of the relay. If a timeout is counting down, it flashed very shortly once a second to indicate this.

Integrate it into a housing

describe it…

Modification of RFM12 power pin (PCB < V1.1)

In PCBs >= V1.1, the RFM12 power pin is connected to an ATMega I/O pin to make it possible to restart the transceiver if communication fails.

If you want to modify your old PCB version to have this feature as well, cut two traces carefully (marked red in the picture) and connect two pins of the RFM transceiver to the ATMega (marked green in the picture).

Make sure you don't create a short circuit and cut the traces correctly. Use a multimeter to check this.