Spectrometer Click Board™
Product Code: MIKROE-4165
How Does The Spectrometer Click Board™ Work? The Spectrometer Click Board™ is based on the AS7341 IC, 11-Channel Spectral Sensor Frontend from AMS-AG. This IC features 6 independent optical channels with a dedicated 16-bit light-to-frequency converter. Gain and integration time of the 6 channels can be adjusted with the serial interface. Wait time can be programmed to automatically set a delay between two consecutive spectral measurements and to reduce overall power consumption. The other available channels can be accessed by a multiplexer (SMUX) connecting them to one of the internal ADCs. Also features a 4x4-photodiode array. On top and below the photodiode array there are two photodiodes with dedicated functions such as flicker detection and near-infrared response. The Spectrometer Click Board™includes an LDO AP7331 to provide the 1.8 V supply voltage for the AS7341 and 3 N-Channel MOSFET BSS138 for voltage level translation. The AS7341, interrupt-driven IC, is controlled and monitored by registers accessed through the I²C serial interface.
These registers provide device control functions and can be read to determine device status and acquire device data. The device supports 7-bit chip addressing and both standard and full-speed clock frequency modes. It possesses 8 optical channels distributed over the visible spectral range, plus clear and NIR channel to accurately measure and match colors, and configurable sleep mode. The device also integrates a dedicated channel to detect 50Hz or 60Hz ambient light flicker. The flicker detection engine can also buffer data for calculating other flicker frequencies externally.
Upon power-up, the Spectrometer Click Board™ initializes. During initialization (typically 200μs), the device will deterministically send NAK on I²C and cannot accept I²C transactions. All communication with the device must be delayed and all outputs from the device must be ignored including interrupts. After initialization, the device enters the SLEEP state (the internal oscillator and other circuitry are not active resulting in ultra-low power consumption). Once the Power ON bit is enabled, the device enters the IDLE state in which the internal oscillator and attendant circuitry are active, but power consumption remains low. Whenever the spectral measurement is enabled the device enters the ACTIVE state. If the spectral measurement is disabled the device returns to the IDLE state.
The Spectrometer Click Board™ can be supplied and interfaced with both 3.3V and 5V supply voltages. The onboard SMD jumper labelled as VCC SEL allows voltage selection for interfacing with both 3.3V and 5V microcontrollers. More information about the AS7341 can be found in the attached datasheet. However, this Click board™ comes equipped with a library that contains easy to use functions and a usage example that may be used as a reference for the development.
SPECIFICATIONS
Type
Optical
Applications
The Spectrometer Click Board™ can be used for spectral measurement, ambient light measurement, color measurement, display management.
On-board modules
AS7341
Key Features
11-Channel Spectral Sensor, 350nm to 1000nm spectral response, 50Hz or 60Hz ambient light flicker, 16-bit light-to-frequency converter
Interface
GPIO,I2C
Compatibility
mikroBUS
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
PINOUT DIAGRAM
This table shows how the pinout of the Spectrometer Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes
Pin
Pin
Notes
NC
1
AN
PWM
16
NC
NC
2
RST
INT
15
INT
Interrupt
NC
3
CS
RX
14
NC
NC
4
SCK
TX
13
NC
NC
5
MISO
SCL
12
SCL
I2C Clock
NC
6
MOSI
SDA
11
CDA
I2C Data
Power Supply
3.3V
7
3.3V
5V
10
5V
Power Supply
Ground
GND
8
GND
GND
9
GND
Visit the Debug Store website for more information on Spectrometer Click Board™