ESP8266-Based project that reads lux-sensor (I2C) and sends data over WiFi.
|
hace 8 años | |
---|---|---|
Adafruit_Sensor.h | hace 8 años | |
Adafruit_TSL2591.cpp | hace 8 años | |
Adafruit_TSL2591.h | hace 8 años | |
README.md | hace 8 años | |
lux_sensor.h | hace 8 años | |
makefile | hace 8 años | |
wifi_lux_sensor.cpp | hace 8 años |
#WiFi-connected Lux-sensor
This project is for building a WiFi-connected Lux-sensor for the garage.
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 but looks like this:
#define WIFI_SSID "WiFi-ssid"
#define WIFI_PASSWORD "password"
Cable-connection to sensor:
Red: +3.3V
Black: GND
Yellow: SDA -> GPIO4
Blue: SCL -> GPIO5
Useful links:
http://blog.abarbanell.de/arduino-esp8266/iot/i2c/
https://github.com/esp8266/Arduino#documentation