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 revisionPrevious revision
Next revision
Previous revision
env_sensor [2018/02/18 19:37] – [Partlist (in buildup order)] breaker27env_sensor [2024/05/22 13:12] (current) – [Connect I2C sensors] breaker27
Line 15: Line 15:
 |    1     | Resistor 330k 0,1% orange-orange-black  | R3 \\ (firmware < 0.9) \\ (PCB < 1.4)    {{ 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 (for light sensor)    |  {{ parts:resistor_100k.jpg }}        |
 |    1     | Resistor 10k brown-black-orange         | R6 (for SHT15), \\ R7 + R8 (for I2C) |  {{ 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     | Resistor 4k7 yellow-violet-red          | R9 (for 1-wire) |  {{ parts:resistor_4k7.jpg }}     |
Line 62: Line 62:
 {{: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 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. +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> +
 ====== Connecting specific sensors ====== ====== Connecting specific sensors ======
  
Line 90: Line 88:
 {{:sht15_connection.jpg?nolink |}} Connect the SHT15 sensor to a ribbon cable by soldering the four pins shown on the picture. **The SHT15 is very sensitive to heat.** I suggest soldering one pin, wait a minute or two and then solder the next! {{:sht15_connection.jpg?nolink |}} Connect the SHT15 sensor to a ribbon cable by soldering the four pins shown on the picture. **The SHT15 is very sensitive to heat.** I suggest soldering one pin, wait a minute or two and then solder the next!
  
-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. +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.\\\ 
- +\\
-<clear> +
 ==== PCB Rev. <= 1.1 ==== ==== PCB Rev. <= 1.1 ====
  
 {{: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. {{: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.\\\ 
- +\\
-<clear> +
 ===== Connect I2C sensors ===== ===== Connect I2C sensors =====
  
-{{i2c_connection.jpg?nolink |}} The pin layout for all I2C sensors in general is like shown here. Besides power and ground, they use a clock (SCL) and a data (SDA) line. +{{i2c_connection.jpg?nolink |}} The pin layout for all I2C sensors in general is like shown here. Besides power and ground, they use a clock (SCL) and a data (SDA) line.\\\ 
- +\\
-<clear> +
 ===== Connect a SHT21 / SHT25 ===== ===== Connect a SHT21 / SHT25 =====
  
Line 118: Line 110:
 {{sht25_size.jpg?nolink |}}{{sht25_pinout.jpg?nolink |}}{{sht25_mounted.jpg?nolink |}} {{sht25_size.jpg?nolink |}}{{sht25_pinout.jpg?nolink |}}{{sht25_mounted.jpg?nolink |}}
  
-<clear>+\\\ 
 +\\
 ===== Connect a DS7505 ===== ===== Connect a DS7505 =====
  
Line 125: Line 118:
 If you want to connect other I2C sensors, you can wire them in parallel to the DS7505 as I did with a BMP085. That's why you can see two pairs of wires in the picture. If you want to connect other I2C sensors, you can wire them in parallel to the DS7505 as I did with a BMP085. That's why you can see two pairs of wires in the picture.
  
-<clear>+\\\ 
 +\\
  
 {{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 ===== ===== Connect a DHT11 =====
  
Line 140: Line 135:
 ===== Connect a BMP085 ===== ===== Connect a BMP085 =====
  
-{{bmp085.jpg?nolink |}} A BMP085 barometric pressure sensor is often available on small PCB. You can connect the pins (VCC, GND, SDA, SCL) the same way as described above for the DS7505. +{{bmp085.jpg?nolink |}} A BMP085 barometric pressure sensor is often available on small PCB. You can connect the pins (VCC, GND, SDA, SCL) the same way as described above for the DS7505. \\\ 
-<clear>+\\
  
 ===== Connect a SRF02 ===== ===== Connect a SRF02 =====
  
-{{srf02.jpg?nolink | }} The SRF02 can be connected just like other I2C sensors to SDA, SCL, GND and VCC. Please note that the SRF02 needs 5V input voltage. +{{srf02.jpg?nolink | }} The SRF02 can be connected just like other I2C sensors to SDA, SCL, GND and VCC. Please note that the SRF02 needs 5V input voltage.\\\ 
- +\\
-<clear> +
 You have two options for the power supply: You have two options for the power supply:
   - Use a 5V power supply. Connect the 5V to the SRF02 and create 3V/3.3V for the SHC PCB with a simple voltage regulator (7803).   - Use a 5V power supply. Connect the 5V to the SRF02 and create 3V/3.3V for the SHC PCB with a simple voltage regulator (7803).
env_sensor.1518979057.txt.gz · Last modified: 2018/02/18 19:37 by breaker27