for 5HUB models including: TSL25911, Ambient Light Sensor
TSL25911
Purpose of the The purpose of this document is to explain the TSL25911 ambient light sensor board. This document contains the features of TSL25911 sensor board and how to use it to detect ambient light.
File Info : application/pdf, 8 Pages, 615.46KB
DocumentDocumentTSL25911 AMBIENT LIGHT SENSOR TSL25911 Board User Manual TSL25911 Board v1.0 Copyright © 5GHUB.US 1 Purpose of the Document The purpose of this document is to explain the TSL25911 ambient light sensor board. This document contains the features of TSL25911 sensor board and how to use it to detect ambient light. Document History Version Author A 5G HUB Date 06.27.2021 Description Initial Document TSL25911 Board v1.0 Copyright © 5GHUB.US 2 Table of Contents Purpose of the Document .......................................................................................................................... 2 Document History ...................................................................................................................................... 2 1 Package Contents........................................................................................................................... 4 1.1 TSL25911 Sensor board.................................................................................................................. 4 1.2 Download ....................................................................................................................................... 4 2 Introduction ................................................................................................................................... 5 3 Typical Applications ....................................................................................................................... 5 4 Hardware Board and Case Diagram ............................................................................................... 6 5 Connecting using the I2C ............................................................................................................... 6 6 Working with Arduino.................................................................................................................... 8 TSL25911 Board v1.0 Copyright © 5GHUB.US 3 1 Package Contents 1.1 TSL25911 Sensor board · TSL25911 sensor board 1.2 Download Arduino sketches for the TSL25911 can be downloaded from the following website: https://github.com/5ghub/5G-NB-IoT/tree/master/KitSketches To use the board with Arduino IDE and starts running Arduino projects and sketches, install the following software: Install Arduino IDE for Windows from the following website: https://www.arduino.cc/en/Main/Software Download and install Arduino library (5G-NB-IoT_Arduino.zip) here: https://github.com/5ghub/5G-NB-IoT TSL25911 Board v1.0 Copyright © 5GHUB.US 4 2 Introduction The TSL25911 ambient light sensor board is a compact board that sense light intensity. The board is based on TSL25911 module which is a highly sensitive light-to-digital converter that transforms light intensity into a digital signal. The board provides digital ambient light sensing (ALS) that approximates human eye response to light intensity. It enables accurate ALS measurements when exposed to very low light such as when operating behind light-attenuating materials. It provides accurate ALS measurements across a wide range of light intensities due to its ultra-high sensitivity, wide dynamic range, and ability to operate in bright sunlight. Feature Highlights · High light-detecting sensitivity which is ideally suited for operation behind spectrally distorting material · Enables low-light (377 uLux) to bright sunlight operation · Dual Diode: o Broadband photodiode visible & IR light o Infrared photodiode IR light · Programmable analog gain and integration time · 600M:1 dynamic range · Two internal Interrupt sources · Programmable upper and lower thresholds · Interrupt includes programmable persistence filter 3 Typical Applications · Ambient Light Sensing (ALS) · Digital signage · White goods · Medical and industrial instrumentation · Keyboard illumination control · Solid-state and general lighting control · Printer paper detection · Internet of things TSL25911 Board v1.0 Copyright © 5GHUB.US 5 4 Hardware Board and Case Diagram Pin # 1 2 3 4 5 6 Feature VCC 3V3 GND SCL SDA INT Description Input voltage (3.6V-5V) Output 3.3V Ground Clock for I2C Data for I2C Interrupt, Open-drain output (active LOW) 5 Connecting using the I2C I2C uses only two wires; SCL and SDA. The sensor board can be interfaced using these two wires only as depicted in this figure. Make sure to connect VCC and GND of the board to a source of 5V and GND. TSL25911 Board v1.0 Copyright © 5GHUB.US 6 TSL25911 Board v1.0 Copyright © 5GHUB.US 7 6 Working with Arduino The sensor board can work with the 5G NB-IoT board or any other Arduino board. Simply connect VCC and GND to the sensor board and wire the two I2C wires between the Arduino board and sensor board. Run Arduino sketch, and you will see all readings from the TSL25911 ambient light sensor. The following shows the Arduino sketch for TSL25911 sensor board sensing light. TSL25911 Board v1.0 Copyright © 5GHUB.US 8