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
en:extensions:exti2csensor [2018/02/20 11:48]
kniwwelino [Programming the i2c Sensors]
en:extensions:exti2csensor [2018/10/10 08:50] (current)
kniwwelino [ADPS9960]
Line 21: Line 21:
  
 ===== Supported Sensors ===== ===== Supported Sensors =====
 +If you add your own I2C sensors, please note that the LED matrix chip is using the address 0x70.
 ==== BME-280 ==== ==== BME-280 ====
   * ** Available Values:​**  ​   * ** Available Values:​**  ​
Line 29: Line 29:
     * Height in m     * Height in m
   * **Used Library:** Adafruit BME280 Library 1.0.7 https://​github.com/​adafruit/​Adafruit_BME280_Library   * **Used Library:** Adafruit BME280 Library 1.0.7 https://​github.com/​adafruit/​Adafruit_BME280_Library
-  * **I2C Address:** 0x76+  * **I2C Address:** **0x76** [0x76, 0x77]
  
 ==== BME-680 ==== ==== BME-680 ====
Line 39: Line 39:
     * Gas: volatile organic compounds (VOC) in Ohm     * Gas: volatile organic compounds (VOC) in Ohm
   * **Used Library:** Adafruit BME680 Library 1.0.5 https://​github.com/​adafruit/​Adafruit_BME680   * **Used Library:** Adafruit BME680 Library 1.0.5 https://​github.com/​adafruit/​Adafruit_BME680
-  * **I2C Address:** 0x77+  * **I2C Address:** **0x77** [0x76, 0x77]
   *    * 
 ==== SHT-30 ==== ==== SHT-30 ====
Line 46: Line 46:
     * Humidity in %     * Humidity in %
   * **Used Library:** Modified WEMOS SHT30 library: https://​github.com/​derFrickler/​WEMOS_SHT3x_Arduino_Library   * **Used Library:** Modified WEMOS SHT30 library: https://​github.com/​derFrickler/​WEMOS_SHT3x_Arduino_Library
-  * **I2C Address:** 0x45+  * **I2C Address:** **0x45**  [0x44, 0x45]
   *    * 
 ==== BH1750 ==== ==== BH1750 ====
   * ** Available Values:​**  ​   * ** Available Values:​**  ​
-    * Light Level in lux+    * Light Level in lux [0-65535]
   * **Used Library:** BH1750 Library 1.1.3 https://​github.com/​claws/​BH1750   * **Used Library:** BH1750 Library 1.1.3 https://​github.com/​claws/​BH1750
-  * **I2C Address:** 0x23+  * **I2C Address:** **0x23** [0x23, 0x5c]
  
 ==== ADPS9960 ==== ==== ADPS9960 ====
   * ** Available Values:​**  ​   * ** Available Values:​**  ​
-    * Proximity 0=far to 255=near +    * Proximity: numeric value, ​0=far to 255=near 
-    * Gesture ​UP=DOWN=2 LEFT=3 RIGHT=4 +    * Gesture: numeric value, ​1=UP 2=DOWN 3=LEFT 4=RIGHT 
-    * Light Components for White Red Green Blue+    * Light Components for White Red Green Blue: numeric value, 0-65536 but mostly in the range of 0-100
   * **Used Library:** Modified Adafruit_APDS9960 library: https://​github.com/​derFrickler/​Adafruit_APDS9960   * **Used Library:** Modified Adafruit_APDS9960 library: https://​github.com/​derFrickler/​Adafruit_APDS9960
-  * **I2C Address:** 0x39+  * **I2C Address:** **0x39**
  
 ===== Programming the i2c Sensors ===== ===== Programming the i2c Sensors =====
Line 76: Line 76:
  
 Choose the block with the same reference number as your sensor, and select the value you want to read. Choose the block with the same reference number as your sensor, and select the value you want to read.
 +
 +For example, to read the temperature with the SHT30 Sensor every 5 seconds, and display it on the matrix, you would use the following blocks:
 +
 +{{:​en:​extensions:​sensors_example.png|}}