ESP8266-Based project that reads lux-sensor (I2C) and sends data over WiFi.
|
há 8 anos atrás | |
---|---|---|
Adafruit_Sensor.h | há 8 anos atrás | |
Adafruit_TSL2561_U.cpp | há 8 anos atrás | |
Adafruit_TSL2561_U.h | há 8 anos atrás | |
README.md | há 8 anos atrás | |
makefile | há 8 anos atrás | |
wifi_lux_sensor.cpp | há 8 anos atrás |
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
WiFi ssid and password are stored in a file called config.h, which is not commited to git but looks like this:
#define WIFI_SSID "WiFi-ssid"
#define WIFI_PASSWORD "password"
Colour | ESP8266 | Sensor |
---|---|---|
Red | +3.3V | +3.3V |
Black | GND | GND |
Yellow | GPIO4 | SDA |
Blue | GPIO5 | SCL |
http://blog.abarbanell.de/arduino-esp8266/iot/i2c/
https://github.com/esp8266/Arduino#documentation
https://github.com/adafruit/Adafruit_TSL2561