TinyShield Ambient Light Sensor Tutorial

by TinyCircuits Staff February 15, 2016

TinyShield Ambient Light Sensor Tutorial


Overview

The Ambient Light TinyShield provides ambient light sensing (ALS) that approximates human eye response to light intensity under a variety of lighting conditions. this TinyShield is based around the AMS TAOS TSL2572 Ambient Light Sensor.


Powering the System

The AMS TAOS TSL2572 is a very low power ambient light sensor IC, drawing only 200 uA during full operation and supports several sleep modes. Due to the low power, a coin cell battery is sufficient to run this board. The Ambient Light TinyShield includes a local voltage regulator and level-shifters, so your TinyDuino system can operate from 3 to 5 Volts safely.


Using the Ambient Light TinyShield

The Ambient Light TinyShield uses the I2C bus to communicate between the TinyDuino Processor and the AMS TAOS TSL2572 ambient light sensor. 

Here is a link to a sample sketch (zip) for the Ambient Light TinyShield.  If you're new to using Arduino or TinyCircuits, click here for how to set up the Arduino IDE to upload the sketch.  

Plug in your TinyDuino to your computer with the USB TinyShield and the Ambient Light TinyShield attached.

Open the Arduino IDE and open up the example sketch that you have downloaded.  Then upload it to the TinyDuino.

Open up the Serial Monitor (at 9600 baud) and you should see the data being read from the ambient light sensor 10 times per second.  Place the sensor near light, or cover it up with your finger and you'll see it change with the intensity of the light.  



TinyCircuits Staff
TinyCircuits Staff

Author



Also in Learn

New Tiny Arcade - Assembly Instructions (With Rev5 Boards)
New Tiny Arcade - Assembly Instructions (With Rev5 Boards)

by TinyCircuits Staff July 27, 2017

We are super excited to release our latest version of the beloved Tiny Arcade kit! This assembly tutorial features our...

View full article →

New Tiny Arcade - Assembly Instructions
New Tiny Arcade - Assembly Instructions

by TinyCircuits Staff July 25, 2017

We are super excited to release our latest version of the beloved Tiny Arcade kit! We've updated the design for...

View full article →

TinySaber Reprogramming - A How-To Guide
TinySaber Reprogramming - A How-To Guide

by TinyCircuits Staff July 18, 2017

This tutorial will walk you through how to reprogram your TinySaber to include custom POV text, special colors, lighting effects,...

View full article →