User Tools

Site Tools


temp_sensor

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
Last revisionBoth sides next revision
temp_sensor [2013/10/05 11:12] breaker27temp_sensor [2014/04/15 21:22] – [Building up a Temeprature and Humidity Sensor] breaker27
Line 1: Line 1:
-====== Building up a Temeprature and Humidity Sensor ======+====== Building up an Environment Sensor ======
  
 ===== 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/generic_midi_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/master/hardware/generic_midi_1|Github]] and etch it yourself or [[https://www.smarthomatic.org/shop/|order]] the PCB or a complete kit.
  
 The temp sensor is designed to run 24/7 on two alcaline batteries with an estimated battery lifetime of > 5 years. The temp sensor is designed to run 24/7 on two alcaline batteries with an estimated battery lifetime of > 5 years.
Line 21: Line 21:
 |    1     | Connector AVR ISP 6pin                  | JP1        |  {{ parts:connector_isp.jpg }}        | |    1     | Connector AVR ISP 6pin                  | JP1        |  {{ parts:connector_isp.jpg }}        |
 |    1     | Connector 1 pin header (for serial TX)  | PD1        |  {{ parts:connector_pinheader.jpg }}  | |    1     | Connector 1 pin header (for serial TX)  | PD1        |  {{ parts:connector_pinheader.jpg }}  |
-|    1     | Capacitor 10uF                          | C3          {{ parts:capacitor_10uf.jpg }}       |+|    1     | Capacitor 10µF                          | C3          {{ parts:capacitor_10uf.jpg }}       |
 |    1     | Battery Holder 2xAAA                    |            |  {{ parts:battery_holder.jpg }}       | |    1     | Battery Holder 2xAAA                    |            |  {{ parts:battery_holder.jpg }}       |
 |    1     | IC ATMega168                            | IC1        |  {{ parts:atmega.jpg }}               | |    1     | IC ATMega168                            | IC1        |  {{ parts:atmega.jpg }}               |
Line 35: Line 35:
 For some parts, you have to consider something special: For some parts, you have to consider something special:
  
-  * **Diodes:** Look at the marked ring. This has to match the line / the top of the arrow on the PCB. 
   * **IC holder:** Look at the notch and place it in the right direction.   * **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.   * **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:** The notch points to the side of the PCB (towards the voltage regulator)+  * **ISP Connector:** The notch points to the side of the PCB. 
-  * **10 uF Capacitor:** The marked line is -, which is more in the middle of the PCB for both capacitors. On the PCB, + is labelled. +  * **10 uF Capacitor:** The marked line is -, which points to the LED. 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 (3,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.+  * **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.
   * **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/master/hardware/generic_midi_1/placing.png?500 }}+{{https://raw.github.com/breaker27/smarthomatic/master/hardware/generic_midi_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 55: Line 56:
  
 After flashing and switching the power on, your temp sensor should blink quickly for some seconds. After that, it only flashes shortly once whenever a temperature data packet is sent (>5 min). After flashing and switching the power on, your temp sensor should blink quickly for some seconds. After that, it only flashes shortly once whenever a temperature data packet is sent (>5 min).
 +
 +===== Connect the SHT15 =====
 +
 +{{:sht15_connection.jpg?nolink |}} Connect the SHT15 sensor to a ribbon cable by soldering the four pins shown on the picture.
 +
 +After that, solder the other end of the wires to the PCB. The picture is from the top side of the PCB. The border of the PCB is at the bottom of the picture.
 +
  
 ===== Integrate it into a housing ===== ===== Integrate it into a housing =====
  
 describe it... describe it...