env_sensor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
env_sensor [2014/08/23 17:37] – [Firmware > v0.6.0] breaker27 | env_sensor [2018/02/18 19:39] (current) – [Partlist (in buildup order)] breaker27 | ||
---|---|---|---|
Line 12: | Line 12: | ||
| 1 | PCB Generic Midi 1 | | | 1 | PCB Generic Midi 1 | | ||
| 1 | Resistor 560R green-blue-brown | | 1 | Resistor 560R green-blue-brown | ||
- | | 1 | Resistor 150k 0,1% brown-green-black | + | | 1 | Resistor 150k 0,1% brown-green-black |
- | | 1 | Resistor 330k 0,1% orange-orange-black | + | | 1 | Resistor 330k 0,1% orange-orange-black |
| 1 | Resistor 1M brown-black-green | | 1 | Resistor 1M brown-black-green | ||
- | | 1 | Resistor 100k brown-black-yellow | + | | 1 | Resistor 100k brown-black-yellow |
- | | 1 | Resistor 10k brown-black-orange | + | | 1 | Resistor 10k brown-black-orange |
+ | | 1 | Resistor 4k7 yellow-violet-red | ||
| 1 | IC holder | | 1 | IC holder | ||
| 1 | LED 2mA | LED1 | {{ parts: | | 1 | LED 2mA | LED1 | {{ parts: | ||
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) ===== |
{{: | {{: | ||
- | 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 |
< | < | ||
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**, | ||
+ | * 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 87: | Line 96: | ||
==== PCB Rev. <= 1.1 ==== | ==== PCB Rev. <= 1.1 ==== | ||
- | {{: | + | {{: |
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. | ||
Line 99: | Line 108: | ||
< | < | ||
+ | ===== 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? | ||
+ | |||
+ | < | ||
===== Connect a DS7505 ===== | ===== Connect a DS7505 ===== | ||
Line 108: | Line 128: | ||
{{ds7505_connection.png? | {{ds7505_connection.png? | ||
+ | |||
+ | < | ||
+ | ===== Connect a DHT11 ===== | ||
+ | |||
+ | //describe it ...// | ||
+ | |||
+ | The four pins of the DHT11 are //GND//, //Unused//, //DATA// and //VCC//. Connect //DATA// to // | ||
+ | The sensor works when EnvSensor is powered by two AA batteries (90 Percent charge). | ||
< | < | ||
Line 138: | 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... | + | |
+ | ====== | ||
+ | // | ||
+ | describe it...// |
env_sensor.1408808260.txt.gz · Last modified: 2014/08/23 17:37 by breaker27