User Tools

Site Tools


power_switch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
power_switch [2014/01/12 11:25]
breaker27 [Partlist (in buildup order)]
power_switch [2015/11/15 20:59] (current)
breaker27 [Modification of RFM12 power pin (PCB < V1.1)]
Line 1: Line 1:
-====== UNDER WORK! DON'T USE THIS YET!! ====== 
- 
- 
- 
 ====== Building up a Power Switch ====== ====== Building up a Power Switch ======
  
 ===== Needed Parts and PCB ===== ===== Needed Parts and PCB =====
  
-You need a **PCB**. You may use the layout from [[https://​github.com/​breaker27/​smarthomatic/​tree/​master/​hardware/​power_switch_1|Github]] and etch it yourself or [[https://​www.smarthomatic.com/​shop/​|order]] the PCB or a complete kit.+You need a **PCB**. You may use the layout from [[https://​github.com/​breaker27/​smarthomatic/​tree/​develop/​hardware/​power_switch_1|Github]] and etch it yourself or [[https://​www.smarthomatic.org/​shop/​|order]] the PCB or a complete kit.
  
 ==== Partlist (in buildup order) ==== ==== Partlist (in buildup order) ====
  
-^  Amount ​ ^               ​Part ​                     ^  Placing ​  ​^ ​            ​Picture ​                  ​+^  Amount ​ ^               ​Part ​                     ^  Placing ​  ​^ ​            ​Picture ​                   
-|    1     | PCB Power Switch 1                      |            |  {{ parts:​pcb_power_switch.jpg }}     ​+|    1     | PCB Power Switch 1                      |            |  {{ parts:​pcb_power_switch.jpg }}      
-|    ​    | Diode 1N4148 ​                           | D1, D2     ​| ​ {{ parts:​diode_1n4148.jpg }}         ​| +|    ​    | Diode 1N4148 ​                           | D1, D2     ​| ​ {{ parts:​diode_1n4148.jpg }}          
- +|    ​    | Resistor 560R green-blue-brown ​         | R1, R2     |  {{ parts:​resistor_560r.jpg }}         ​
- +|    1     | Resistor ​1M brown-black-green           | R3         ​| ​ {{ parts:resistor_1m.jpg }}           ​
- +|    1     ​| ​IC holder ​                              IC1        ​|  {{ parts:ic_holder.jpg }}             ​
-|    ​    | Resistor 560R green-blue-brown ​         | R1         ​|  {{ parts:​resistor_560r.jpg }}        +|    1     ​| ​Voltage regulator LP2950Z ​              | IC3        ​| ​ {{ parts:ic_lp2950z.jpg }}            
-|    1     | Resistor ​150k 0,1% brown-green-black ​   | R2         ​| ​ {{ parts:​resistor_150k_0p1.jpg }}    | +|    1     ​| ​Transistor BC547C ​                      T1         |  {{ parts:transistor_bc547c.jpg }}     ​
-|    1     | Resistor 330k 0,1% orange-orange-black  ​| R3         ​| ​ {{ parts:resistor_330k_0p1.jpg }}    +|    1     ​| ​LED 2mA                                 LED1       |  {{ parts:led_yellow.jpg }}            | 
-|    1     ​| ​Resistor 1M brown-black-green ​          R4         |  {{ parts:resistor_1m.jpg }}          +|    1     ​| ​Connector AVR ISP 6pin angled ​          JP1        ​|  {{ parts:connector_isp_angled.jpg }}  
-|    1     ​| ​Resistor 100k brown-black-yellow ​       | R5         |  {{ parts:resistor_100k.jpg }}        +|    1     | Connector ​Switched Output 3pin          ​X1         |  {{ parts:connector_clamp_3pin.jpg }}  
-|    1     ​| ​Resistor 10k brown-black-orange ​        R6         |  {{ parts:resistor_10k.jpg }}         ​+|    1     | Connector 1 pin header (for serial TX debugging)  | JP5        ​| ​ {{ parts:​connector_pinheader.jpg }}   ​
-|    1     ​| ​IC holder ​                              IC1        ​|  {{ parts:ic_holder.jpg }}            | +|    1     | Capacitor 10µF                          | C1         |  {{ parts:​capacitor_10uf.jpg }}        
-|    1     ​| ​LED 2mA                                 LED1       |  {{ parts:led_yellow.jpg }}           ​+|    1     ​| ​Capacitor 1µF                           C2         |  {{ parts:capacitor_220nf.jpg }}       | 
-|    1     | Connector ​AVR ISP 6pin                  ​JP1        ​|  {{ parts:connector_isp.jpg }}        +|    1     | IC ATMega328 ​                           | IC1        |  {{ parts:​atmega.jpg }}                | 
-|    1     | Connector 1 pin header (for serial TX)  | PD1        ​| ​ {{ parts:​connector_pinheader.jpg }}  +|    1     | Relay FTR-K1C (230V, 16A)               ​| K1         ​| ​ {{ parts:​relay_ftr_k1c.jpg }}         
-|    1     | Capacitor 10µF                          | C3         |  {{ parts:​capacitor_10uf.jpg }}       ​+|    1     | Transceiver PCB RFM12B ​                 | IC2        |  {{ parts:​ic_rfm12b.jpg }}             ​
-|    1     ​| ​Battery Holder 2xAAA                    ​           |  {{ parts:battery_holder.jpg }}       | +|    1     | Antenna (82,2mm wire)                   ​| ​           |  {{ parts:​antenna.jpg }}               ​|
-|    1     | IC ATMega168 ​                           | IC1        |  {{ parts:​atmega.jpg }}               | +
-|    1     | Transceiver PCB RFM12B ​                 | IC2        |  {{ parts:​ic_rfm12b.jpg }}            +
-|    1     | Antenna (82,2mm wire)                   ​| ​           |  {{ parts:​antenna.jpg }}              |+
  
 maybe extra pins, at your opinion. maybe extra pins, at your opinion.
Line 45: Line 38:
   * **ISP Connector:​** The notch points to the side of the PCB (towards the voltage regulator).   * **ISP Connector:​** The notch points to the side of the PCB (towards the voltage regulator).
   * **10 uF Capacitor:​** The marked line is -, which points to the LED. On the PCB, + is labelled.   * **10 uF Capacitor:​** The marked line is -, which points to the LED. On the PCB, + is labelled.
-  * **Battery holder:** + is the pin towards the middle of the PCB. 
   * **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. 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]].   * **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.
  
-{{https://​raw.github.com/​breaker27/​smarthomatic/​master/hardware/generic_midi_1/​placing.png?​500}}+{{https://​raw.github.com/​breaker27/​smarthomatic/​develop/hardware/power_switch_1/​placing.png?​500}}
  
 //(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!)//
Line 57: Line 50:
 If you have a new ATMega where nothing is flashed onto, [[http://​www.smarthomatic.org/​builds/​builds.html|download a prebuilt binary package]] or [[build your own firmware|build your own firmware]]. If you bought a hardware kit, the ATMega should already be flashed. If you have a new ATMega where nothing is flashed onto, [[http://​www.smarthomatic.org/​builds/​builds.html|download a prebuilt binary package]] or [[build your own firmware|build your own firmware]]. If you bought a hardware kit, the ATMega should already be flashed.
  
-You can leave the batteries inserted all the timeno matter if you're currently flashing or using the device.+After flashing and switching ​the power onyour power switch should blink three times slowly. If you haven't flashed working EEPROM settings, it flashed quickly endlessly.
  
-To make a "​reset"​take one battery shortly out of its holder. +In normal operationthe LED shows the status ​of the relayIf a timeout is counting down, it flashed very shortly once a second to indicate this.
- +
-After flashing and switching ​the power on, your temp sensor should blink quickly for some secondsAfter that, it only flashes ​shortly once whenever ​temperature data packet is sent (>5 min).+
  
 ===== Integrate it into a housing ===== ===== Integrate it into a housing =====
  
 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).
 +
 +Make sure you don't create a short circuit and cut the traces correctly. Use a multimeter to check this.
 +
 +
 +{{:​powerswitch_v1_mod.jpg?​500|}}
power_switch.1389522311.txt.gz · Last modified: 2014/01/12 11:25 by breaker27