Github repo
Github repo
Photos
Spark Core, Sparkfun TSL2561 and PushingBox
A beginner level sample application to retrieve sensor value from Sparkfun TSL2561. The TSL2561 is light sensor which outputs illumination in lux. This sample application retrieve the illumination value and if it is less than a particular value then send push notification using PushingBox. The lower limit is configurable using a Spark Function.
This sample uses TSL256 code from TSL2561 hookup guide from Sparkfun, PushingBox code from this link and @bko's Web Page.
Wiring
- TSL2561 Vcc to 3.3V
- TSL2561 GND to GND
- TSL2561 SCL to D1
- TSL2561 SDA to D0
How to run the application
Load the sample application into the Spark Core. Open the Web Page in an editor and replace the tokens deviceid and access token with actual values. Open the web page in a browser and press Connect Button. Open the tsl2561.ino file and replace the deviceid token with your PushingBox device id.
Comments
Please log in or sign up to comment.