|
@@ -1,5 +1,4 @@
|
|
# WiFi-connected Lux-sensor
|
|
# WiFi-connected Lux-sensor
|
|
-
|
|
|
|
This project is for building a WiFi-connected Lux-sensor for the garage. The sensor reads the lux-value once every 10 seconds, and sends the value to the server once a minute.
|
|
This project is for building a WiFi-connected Lux-sensor for the garage. The sensor reads the lux-value once every 10 seconds, and sends the value to the server once a minute.
|
|
|
|
|
|
The sensor used is Adafruit TSL2561 with I2C-Id: 0x39
|
|
The sensor used is Adafruit TSL2561 with I2C-Id: 0x39
|
|
@@ -9,13 +8,14 @@ WiFi ssid and password are stored in a file called config.h, which is not commit
|
|
#define WIFI_SSID "WiFi-ssid"
|
|
#define WIFI_SSID "WiFi-ssid"
|
|
#define WIFI_PASSWORD "password"
|
|
#define WIFI_PASSWORD "password"
|
|
```
|
|
```
|
|
-#### Sensor connections:
|
|
|
|
-| Colour | ESP8266 | Sensor |
|
|
|
|
-| ------------- |-------------| -----|
|
|
|
|
-| Red | +3.3V | +3.3V |
|
|
|
|
-| Black | GND | GND |
|
|
|
|
-| Yellow | GPIO4 | SDA |
|
|
|
|
-| Blue | GPIO5 | SCL |
|
|
|
|
|
|
+#### Sensor connections:
|
|
|
|
+
|
|
|
|
+|Colour |ESP8266 |Sensor |
|
|
|
|
+|---------------|-------------------|---------|
|
|
|
|
+|Red |+3.3V |+3.3V |
|
|
|
|
+|Black |GND |GND |
|
|
|
|
+|Yellow |GPIO4 |SDA |
|
|
|
|
+|Blue |GPIO5 |SCL |
|
|
|
|
|
|
|
|
|
|
#### Useful links:
|
|
#### Useful links:
|