SensorExamples

A collection of examples on how to interface sensors to Arduino microcontrollers

View the Project on GitHub tigoe/SensorExamples

Spectral Sensors

A group of multi-channel light sensors. The ones covered as of this writing are all from AMS-Osram, who make a wide range of light-based sensors. Their spectral sensing family of sensors includes sensors for tristimulus XYZ color sensing as well as multi-channel spectral sensors in both visible and near-infrared ranges. This page covers the AS7262/3 6-channel spectral sensors, the AS7265x sensors, which provide 18 channels together, and the AS7341 sensor, which provides 11 channels of spectral sensing. For more examples of how to use the AS7341 sensor, see this repository.

Of the lot, the AS7265x and the AS7341 seem to offer the most value for money, in terms of general use. The former supports 18 channels of sensing, and the latter 11. The AS7262/3 are limited to six channels each, and the AS7262 is no longer recommended for use by AMS. The AS7261 looks interesting as well, as it is designed to give results in the CIE XY colorspace.

What do the Readings Mean?

The AS726xx sensors’ results are all returned in counts/μW/cm2. One lux = 0.14641 μW/cm2. Therefore, one count on any of these sensors is 6.8301 lx in illuminance terms. (check my math please). Here is a Units converter for common physical properties that I used for this math.

TODO: work out similar results for AS7341.

AS7262/3 6-Channel Sensors

These two 6-channel spectral sensors from AMS have more or less the same interface, but differing ranges of sensitivity. The AS7262 reads in the visual range from 450nm (violet) to 650nm (red), and the AS7263 reads from 610nm (red) to 860nm (infrared). These sensors have both an I2C and a UART interface. Sparkfun’s Hookup Guide to both sensors is a good summary of the sensor’s capabilities and their library functions. Adafruit’s guide to the AS7272 is not bad either.

Breakout boards:

Libraries:

AS7262 Consumer Grade Smart 6-Channel VIS Sensor

Current status on AMS’ site: not recommended for new designs.

(colors shown are approximate, and taken from John Cook’s Wavelength to RGB Converter)

Channels:

AS7263 6-Channel NIR Spectral_ID Sensor

Channels:

AS7265x 18-Channel VIS to NIR Spectral_ID 3-Sensor Chipset

This is a set of three 6-channel spectral sensors from AMS, covering a range from violet to infrared. Used together, as in the Sparkfun board, they cover a range of frequencies greater than the 726x sensors.

Channels:

AS72651:

AS75652:

AS72653:

Breakout boards:

Libraries:

AS7341 11-Channel Multi-Spectral Digital Sensor

Channels:

Breakout boards:

Libraries:

Background Reading

See the main Light Sensors page