Download Sensor datasheet
Download ADC datasheet
Main component :
KDT00030 - Phototransistor Photo Detector
ADC121S021 - Single-Channel, 50- to 200-ksps, 12-Bit A/D Converter
• Spectral response close to human eye
• Good output linearity across wide illumination range
• Small footprint: 1.7mm x 0.8mm
• Low profile: 0.6mm
• Phototransistor with filter technology
• Specified Over a Range of Sample Rates
• Variable Power Management
• Single Power Supply With 2.7-V to 5.25-V Range
• Compatible With the SPI, QSPI, MICROWIRE,and DSP
• Key Specifications:
– DNL: 0.45 and –0.25 LSB (Typical)
– INL: 0.45 and –0.4 LSB (Typical)
– SNR: 72.3 dB (Typical)
– Power Consumption
– 3.6-V Supply: 1.5 mW (Typical)
Sample program
LightSensorTest.py
* functions *
import LightSensor
def getInfo(Number) : Getting hardware information of device board
Number : connector number of baseboard
def Read(milModClass) : Read Photo sensor voltage.
milModClass : module instance
return : 12 bit data from 0x000 to 0xFFF.