Ambient Light Sensor
The ambient light sensor uses a phototransistor and amplifier circuit to detect intensity of light. The chip itself is considered
a Peripheral Module interface, or PMOD, which is an open standard defined by Digilent Inc for pre-built circuits with a
standard 6-pin interface. The sensor communicates light intensity data using a common communication protocol called
the Serial Peripheral Interface (SPI). Per the SPI protocol, the pinout includes a chip select, data line, clock line power, and
ground.
Learn more:
• Specifications: http://store.digilentinc.com/pmodals-ambient-light-sensor/
• Project Essentials Guide, chapter 24: http://www.ni.com/tutorial/14621/en/
Ambient Light Sensor Input Port
The ambient light sensor input port of the motor controller board is a direct breakout of the myRIO SPI pins.
Pin (from left to right based on the
image above)
MXP Pin Number Name in Software (based on MXP A)
CS 11 A/DIO4
NC Not connected Not connected
SDA 23 A/SPI.MISO
SCL 21 A/SPI.CLK
GND 30 n/a
+3.3 VCC 33 n/a
1x
Digilent
Ambient Light
Sensor 41146
38 Electronics Overview and Specications
Back to Contents page