You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A CircuitPython driver for the AMS AS7343 14-channel spectral sensor. This device provides high-resolution spectral measurements across the visible and near-infrared spectrum, making it ideal for:
Color measurement and classification
LED spectrum analysis
Environmental light sensing
Low-cost lab and educational tools
Description
The AMS AS7343 is a spectral sensor offering readings from approximately 380nm to 1000nm. It includes:
14 photodiode channels: F1–F8, FZ, FY, FXL, NIR, and CLR
Adjustable gain (0.5x to 2048x)
Integration time in microseconds
Internal SMUX (sensor multiplexer) to cycle through photodiode sets
I2C interface (address 0x39)
This driver provides methods to set gain/integration time, select SMUX modes, perform full or partial scans, and manage power settings.
Features
Full 14-channel spectral measurement using read_all()
SMUX mode selection for visible, NIR, and extended bands
Low-power mode and sleep-after-interrupt (SAI)
Saturation threshold checking
Compatible with CircuitPython and Adafruit BusDevice