Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino Wearable Projects

You're reading from   Arduino Wearable Projects Design, code, and build exciting wearable projects using Arduino tools

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781785283307
Length 218 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Tony Effe A Olsson Tony Effe A Olsson
Author Profile Icon Tony Effe A Olsson
Tony Effe A Olsson
Arrow right icon
View More author details
Toc

Trying out the TSL2561

Since the TSL2561 sensor is an advanced digital sensor, we will need to communicate with over I2C, since we can't read it as an analog sensor. Unlike other simpler light sensors, the TSL2561 chip measures both infrared and visible light to better approximate the response of our own eyes. As many of the components used in this book, the TSL2561 breakout board we will be using is from Adafruit, which also supplies a library for this sensor. This makes communicating with the sensor a bit easier. You can find the library on their GitHub: https://github.com/adafruit/Adafruit_TSL2561.

Download and install the library into you Arduino library folder. If you don't remember how to do this or if it is your first time installing a library, please take a look at Chapter 2, Working with Sensors where we explained the processes.

Once you have your library installed, its time to connect the TSL2561 sensor to you FLORA board. For testing the TSL2561 sensor, we will use alligator...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime