ESP8266-Based project that reads lux-sensor (I2C) and sends data over WiFi.

Thomas Chef 27c3c5c24f Added send to Mickes HTTP-server. il y a 8 ans
Adafruit_Sensor.h 73161a98a7 Added files from AdaFruit-lib for TSL2561 il y a 8 ans
Adafruit_TSL2561_U.cpp e64fac8e26 Changed to the correct TSL2561-driver. And it works. il y a 8 ans
Adafruit_TSL2561_U.h e64fac8e26 Changed to the correct TSL2561-driver. And it works. il y a 8 ans
README.md cdb5ac4db9 Readme change il y a 8 ans
makefile 4071a0d28e Reading average of 6, sending every minute. il y a 8 ans
wifi_lux_sensor.cpp 27c3c5c24f Added send to Mickes HTTP-server. il y a 8 ans

README.md

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.

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"

Sensor connections:

Colour ESP8266 Sensor
Red +3.3V +3.3V
Black GND GND
Yellow GPIO4 SDA
Blue GPIO5 SCL

Useful links:

http://blog.abarbanell.de/arduino-esp8266/iot/i2c/
https://github.com/esp8266/Arduino#documentation
https://github.com/adafruit/Adafruit_TSL2561