Arduino Library for the SparkFun Spectral Sensor - AS7343 (QWIIC)
This library provides full access to the functions of the AS7343 Spectral Sensor through an I2C connection using the SparkFun Qwiic connectors and cables. Interrupt features can also be utilized by soldering tot he INT pin on the 0.1-inch PTH headers.
This library is intended for use with the following SparkFun Product - available at www.sparkfun.com.
Product | Description |
---|---|
SparkFun Spectral Sensor - AS7343 (Qwiic) | The SparkFun AS7343 Qwiic Spectral Sensor enables users to measure 14 channels of spectral data including both the visible spectrum (VIS) and near-infrared (NIR) ranges, all on a single IC in a compact package. The AS7343 exhibits exceptional sensitivity across its sensing spectrum (~380nm to 1000nm) and operates reliably in low-light environments, including when measuring through tinted glass. |
Reference | Description |
---|---|
Library Documentation | The full documentation and API for this Arduino library |
SparkFun Spectral Sensor - AS7343 (Qwiic) | Hardware GitHub Repository |
Hook Up Guide - SparkFun Spectral Sensor - AS7343 (Qwiic) | Hardware Overview and Quick Start for the SparkFun Spectral Sensor - AS7343 (Qwiic) |
AS7343 Datasheet | Datasheet for the AS7343 IC |
Installing an Arduino Library Guide | Basic information on how to install an Arduino library |
The following examples are provided with the library
Example | Description |
---|---|
Basic Readings | Take basic readings from the sensor (reg/green/blue) and print them to the terminal. |
All Channels | Take readings of all channels of data from the sensor and print them to the terminal. |
Gain | Demonstrates how to adjust the gain of the sensor (making it more or less sensitive). |
Interrupt | Shows how to set up a threshold and trigger an interrupt when the light reading crosses that threshold. |
Flicker Detection | Demonstrates how to setup and use flicker detection. Prints status of detection to terminal. |
Sleep | Shows how to put the sensor into sleep while not taking a reading to save power. |
Web Terminal Bar Graphs | Outputs data in CSV to match nicely with the SparkFun WebSerialPlotter tool. |
This product is open source!
This product is licensed using the MIT Open Source License.