対応プラットフォーム
o ATMEGA328P
o Raspberry Pi
明るさを測ることができます。
Download Sensor datasheet
Download ADC datasheet
Main component :
KDT00030 - 光量センサー
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 for Arduino IDE
mille-feuile_LightSensor.ino
Libフォルダの中身を、サンプルコードと同じフォルダにコピペしてからお使いください。
Sample program
LightSensorTest.py
* functions *
import LightSensor
def getInfo(Number) : デバイスボードの情報を取得します
Number : 接続するベースボードのコネクタ番号を指定します
def read(milModClass) : フォトセンサー電圧取得
milModClass : モジュールのインスタンス
return : 0x000 から 0xFFF の 12 bit データdata from 0x000 to 0xFFF.