power_switch
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
power_switch [2013/10/04 18:56] – external edit 127.0.0.1 | power_switch [2015/11/15 20:57] – [Integrate it into a housing] breaker27 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Building up a Power Switch ====== | ||
+ | |||
===== Needed Parts and PCB ===== | ===== Needed Parts and PCB ===== | ||
- | describe | + | You need a **PCB**. You may use the layout from [[https:// |
- | ===== Preparation of parts ===== | + | ==== Partlist (in buildup order) |
- | describe it... | + | ^ Amount |
+ | | 1 | PCB Power Switch 1 | | {{ parts: | ||
+ | | 2 | Diode 1N4148 | ||
+ | | 2 | Resistor 560R green-blue-brown | ||
+ | | 1 | Resistor 1M brown-black-green | ||
+ | | 1 | IC holder | ||
+ | | 1 | Voltage regulator LP2950Z | ||
+ | | 1 | Transistor BC547C | ||
+ | | 1 | LED 2mA | LED1 | ||
+ | | 1 | Connector AVR ISP 6pin angled | ||
+ | | 1 | Connector Switched Output 3pin | X1 | ||
+ | | 1 | Connector 1 pin header (for serial TX debugging) | ||
+ | | 1 | Capacitor 10µF | C1 | ||
+ | | 1 | Capacitor 1µF | C2 | ||
+ | | 1 | IC ATMega328 | ||
+ | | 1 | Relay FTR-K1C (230V, 16A) | K1 | ||
+ | | 1 | Transceiver PCB RFM12B | ||
+ | | 1 | Antenna (82,2mm wire) | ||
+ | |||
+ | maybe extra pins, at your opinion. | ||
===== Buildup of PCB ===== | ===== Buildup of PCB ===== | ||
- | describe it... | + | As always: start from flat to high. Go through the partlist and solder the parts from the top ones to the last ones. |
- | ===== Connecting external | + | For some parts, you have to consider something special: |
- | describe | + | * **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 [[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: | ||
+ | * **10 uF Capacitor: | ||
+ | * **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. | ||
+ | * **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]]. | ||
+ | * **Relais:** If you want to switch high currents, especially at high voltages, it is recommended to solder the wires directly to the relais pins on the bottom of the PCB. | ||
- | ===== Integrate | + | {{https:// |
+ | |||
+ | //(Image directly loaded from external GitHub source. If it doesn' | ||
+ | |||
+ | ===== Flashing the firmware ===== | ||
+ | |||
+ | If you have a new ATMega where nothing is flashed onto, [[http:// | ||
+ | |||
+ | After flashing and switching the power on, your power switch should blink three times slowly. If you haven' | ||
+ | |||
+ | 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 | ||
describe it... | 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). | ||
+ | |||
+ | |||
+ | {{: |
power_switch.txt · Last modified: 2015/11/15 20:59 by breaker27