User Tools

Site Tools


env_sensor

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
Last revision Both sides next revision
env_sensor [2014/08/23 17:36]
breaker27 [Firmware <= v0.6.0]
env_sensor [2018/02/18 19:37]
breaker27 [Partlist (in buildup order)]
Line 12: Line 12:
 |    1     | PCB Generic Midi 1                      |             ​| ​ {{ parts:​pcb_maxi_speed.jpg }}       | |    1     | PCB Generic Midi 1                      |             ​| ​ {{ parts:​pcb_maxi_speed.jpg }}       |
 |    1     | Resistor 560R green-blue-brown ​         | R1          |  {{ parts:​resistor_560r.jpg }}        | |    1     | Resistor 560R green-blue-brown ​         | R1          |  {{ parts:​resistor_560r.jpg }}        |
-|    1     | Resistor 150k 0,1% brown-green-black ​   | R2          |  {{ parts:​resistor_150k_0p1.jpg }}    | +|    1     | Resistor 150k 0,1% brown-green-black ​   | R2 \\ (firmware < 0.9) \\ (PCB < 1.4)   |  {{ parts:​resistor_150k_0p1.jpg }}    | 
-|    1     | Resistor 330k 0,1% orange-orange-black ​ | R3          |  {{ parts:​resistor_330k_0p1.jpg }}    |+|    1     | Resistor 330k 0,1% orange-orange-black ​ | R3 \\ (firmware < 0.9) \\ (PCB < 1.4)   |  {{ parts:​resistor_330k_0p1.jpg }}    |
 |    1     | Resistor 1M brown-black-green ​          | R4          |  {{ parts:​resistor_1m.jpg }}          | |    1     | Resistor 1M brown-black-green ​          | R4          |  {{ parts:​resistor_1m.jpg }}          |
 |    1     | Resistor 100k brown-black-yellow ​       | R5          |  {{ parts:​resistor_100k.jpg }}        | |    1     | Resistor 100k brown-black-yellow ​       | R5          |  {{ parts:​resistor_100k.jpg }}        |
-|    1     | Resistor 10k brown-black-orange ​        | R6, R7R8  |  {{ parts:​resistor_10k.jpg }}         |+|    1     | Resistor 10k brown-black-orange ​        | R6 (for SHT15)\\ R7 R8 (for I2C) |  {{ parts:​resistor_10k.jpg }}         
 +|    1     | Resistor 4k7 yellow-violet-red ​         | R9 (for 1-wire) |  {{ parts:​resistor_4k7.jpg }}     |
 |    1     | IC holder ​                              | IC1         ​| ​ {{ parts:​ic_holder.jpg }}            | |    1     | IC holder ​                              | IC1         ​| ​ {{ parts:​ic_holder.jpg }}            |
 |    1     | LED 2mA                                 | LED1        |  {{ parts:​led_yellow.jpg }}           | |    1     | LED 2mA                                 | LED1        |  {{ parts:​led_yellow.jpg }}           |
Line 28: Line 29:
  
 maybe extra pins, at your opinion. maybe extra pins, at your opinion.
- 
 ===== Buildup of PCB ===== ===== Buildup of PCB =====
  
Line 58: Line 58:
 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).
  
-===== Improve idle power consumption (PCB < v0.2) =====+===== Improve idle power consumption (PCB Rev. 1.2) =====
  
 {{:​voltage_divisor_improvement.jpg?​nolink |}}  Battery voltage and brightness are measured using two voltage divisors each consisting of two resistors. The idle power consumption can be improved (down to about 21µA) by connecting the one end of them (see both left red ovals at **R3** and **R5**) to **PB6** (pin 9, the other red oval), which is only switched on when the device is actively measuring. {{:​voltage_divisor_improvement.jpg?​nolink |}}  Battery voltage and brightness are measured using two voltage divisors each consisting of two resistors. The idle power consumption can be improved (down to about 21µA) by connecting the one end of them (see both left red ovals at **R3** and **R5**) to **PB6** (pin 9, the other red oval), which is only switched on when the device is actively measuring.
  
-You only need this with a PCB version < 1.2. The advantage in power consumption is not so big if you don't have a photocell connected. To use this feature, you need also a firmware >= v0.7.0 or develop build from 06/17/2014 or later.+You only need this modification ​with a PCB version ​Rev. < 1.2, where the resistors were not connected to the I/O pins. The advantage in power consumption is not so big if you don't have a photocell connected. To use this feature, you need also a firmware >= v0.7.0 or develop build from 06/17/2014 or later.
  
 <​clear>​ <​clear>​
Line 71: Line 71:
  
 Even if the SHT15 uses partly the same pins as the I2C sensors, they can be connected and used in parallel! Even if the SHT15 uses partly the same pins as the I2C sensors, they can be connected and used in parallel!
 +
 +===== Connect a button or switch =====
 +
 +You can use any of the available I/O pins as a digital input. You have different options regarding the pull-up resistor and therefore the power consumption. The behaviour can be configured with the EEPROM editor.
 +
 +  - If you want to measure the state **only cyclic** after the RFM12 wake-up timeout, it's recommended to use the **internal pull-up resistor** and connect the button / switch against ground. The pull-up is only switched on a very short time when the device is on and therefore draws much less power than connecting a physical pull-up which is connected all the time.
 +  - If you want to detect the botton / switch / pin state **immediately**,​ you need some sort of **permanent pull-up resistor** (assuming the button/... is connected against ground again). **Please note that the pull-up resistor only draws current if the button/... is currently active (pulling the level to low).**
 +    * If you use the internal resistor with its resistance of around 22 kOhm, it would draw about 135µA, which is a lot. This is only recommended if you power your device with a power supply (not batteries).
 +    * The second option is to connect an external (physical) pull-up resistor of 1 MOhm to 10 MOhm. One 1 MOhm pull-up (for one I/O pin) would draw around 3µA (at 3V battery voltage), so this is also noticeable compared to the sleep power consumption of around 1,2µA. Depending on your batteries, amount of I/O pins used as digital input and the percentage of the pin being pulled down by the button/..., you may try a risistor with a higher value like 10 MOhm.
  
 ===== Connect a SHT15 ===== ===== Connect a SHT15 =====
Line 85: Line 94:
 <​clear>​ <​clear>​
  
-==== Firmware > v0.6.====+==== PCB Rev<= 1.====
  
-{{:​sht15_connection_patch.jpg?​nolink |}} If you have the original ​PCB version ​and use a firmware > 0.6.0 (that means develop builds going into release v0.7.0 and up), you have to patch the SCK wire to the PC2 pin instead ​of PC4, which is the fourth pin of the ATMega counting from the PCB border. The remapping was done to avoid conflicts with I2C that may be connected in parallel.+{{:​sht15_connection_patch.jpg?​nolink |}} If you have an older PCB version you have to patch the SCK wire to the PC2 pin on the bottom side of the PCB. It is the fourth pin of the ATMega counting from the PCB border.
  
 If you look at the back of the PCB, you have to solder the wires as shown on the picture. If you look at the back of the PCB, you have to solder the wires as shown on the picture.
- 
-A future PCB version will most probably have a 6-pin I/O header to connect the SCK pin of the SHT15 directly to the I/O port. 
  
 <​clear>​ <​clear>​
Line 101: Line 108:
 <​clear>​ <​clear>​
  
 +===== Connect a SHT21 / SHT25 =====
 +
 +You can connect these sensors either the same way as the SHT15 (with the Sensirion specific protocol) or connect it as a I2C device. Configure the E2P accordingly.
 +
 +In principle, you can solder the sensor directly to cables. But the sensor is very tiny, so you should have some experience when trying to do that. Make sure to solder only one cable at a time and let the solder cool off to not overheat the sensor!
 +
 +I recommend to mount the sensor + cables to something to make sure the solder joints don't break off.
 +
 +{{sht25_size.jpg?​nolink |}}{{sht25_pinout.jpg?​nolink |}}{{sht25_mounted.jpg?​nolink |}}
 +
 +<​clear>​
 ===== Connect a DS7505 ===== ===== Connect a DS7505 =====
  
Line 110: Line 128:
  
 {{ds7505_connection.png?​nolink |}} The pins have to be wired as shown here. You need 4k7/10k pull-up resistors as specified by the I2C standard. If you have a Generic Midi PCB Rev. 1.1 and up, just solder R7+R8 to the PCB. If you have an older PCB revision, you have to solder the resistors as shown in the picture. {{ds7505_connection.png?​nolink |}} The pins have to be wired as shown here. You need 4k7/10k pull-up resistors as specified by the I2C standard. If you have a Generic Midi PCB Rev. 1.1 and up, just solder R7+R8 to the PCB. If you have an older PCB revision, you have to solder the resistors as shown in the picture.
 +
 +<​clear>​
 +===== Connect a DHT11 =====
 +
 +//describe it ...//
 +
 +The four pins of the DHT11 are //GND//, //Unused//, //DATA// and //VCC//. Connect //DATA// to //​PC2//​. ​
 +The sensor works when EnvSensor is powered by two AA batteries (90 Percent charge).
  
 <​clear>​ <​clear>​
Line 140: Line 166:
  
 You should use at least AA cells for the environment sensor when using the SRF02 and the voltage converter, because one SRF02 measurement takes about 0.015 mAh, which results in ~800 days battery lifetime at AA cells (2800 mAh) when you make one measurement every 7 minutes. You should use at least AA cells for the environment sensor when using the SRF02 and the voltage converter, because one SRF02 measurement takes about 0.015 mAh, which results in ~800 days battery lifetime at AA cells (2800 mAh) when you make one measurement every 7 minutes.
-===== Integrate it into a housing ===== 
  
-describe it...+ 
 +====== ​ Integrate it into a housing ======  
 +// 
 +describe it...//
env_sensor.txt · Last modified: 2018/02/18 19:39 by breaker27