avi singh vinay revankar varun kutirakulam isl29125 rgb arjun … · 2018-11-25 · the rbgthf bit...

Post on 12-Aug-2020

2 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

ISL29125 RGB Color Light Sensor

Arjun ArunasalamVarun Kutirakulam

Vinay RevankarAvi Singh

1

Contents1. Overview2. Camera vs. Color Sensor3. Real World Applications4. How we’re using it5. Electrical Characteristics6. Registers7. Protocols and Operations8. Conclusion

2

SparkFun RGB Light Sensor (ISL29125)

3

Camera vs. Color Sensor- Cameras

- More Versatile - More expensive - Color Profiling

- Color Sensor- Cheaper- Can be calibrated to be more accurate and tune out external light- Generally more reliable (depends on application)

4

Applications● Smart phones, PDAs, GPS, tablet PCs, LCD-TVs, digital picture frames,

digital cameras● Industrial/commercial LED lighting color management● Dynamic display color balancing● Printer color enhancement● Industrial Sorting or Matching

5[https://learn.adafruit.com/adafruit-color-sensors/overview]

Use Case - Tron light cycle game- Utilize the RGB data that the color sensor provides- Compare it against the marker color detected - Deduct health points from that vehicle based on

comparison results

6[https://www.topbestalternatives.com/encom-tron/psp/]

[https://www.lifehack.org/articles/featured/10-things-to-do-with-dry-erase-markers.html]

Electrical Characteristics● Sensing Ranges

○ 5.7 mlux to 375 lux○ 0.152 lux to 10,000 lux

● ADC Resolutions○ 12 bits○ 16 bits

● ADC Conversion Time○ Inversely proportional to

the resolution

● I2C Clock○ 500 kHz

● Active IR Compensation

7

Spectral Response

8

9

Registers (Configuration and Status)

10

Registers (RGB Data)

11

Write Transaction

Signals From Receiver

2 bytes of data is written

1 byte for the address of data , 1 byte for data you want to store in register

Example of Write Transaction

12

Signals From Receiver

0x01

0 1 00 00

0x02

13

Read Transaction

Signals From Receiver

14

Read Transaction

0x09 0x00 - 0xFF

Signals From Receiver

15

Read and Burst Read Transactions

Signals From Receiver

Signals From Receiver

16

Read and Burst Read Transactions

Signals From Receiver

Signals From Receiver

17

Read Transaction

18

Signals From Receiver

Interrupt FunctionAn interrupt can be generated on INT whenever the value from either the red, green, or blue light sensor crosses either a minimum or maximum threshold.

19

When the value crosses one of the two thresholds, the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW.

● User can configure which light sensor (RGB) will generate interrupt, but interrupt can only be configured to one color.

● User can choose to throw an interrupt after threshold is crossed multiple times, not every single instance.

Interrupt Function

20

Configuring the interrupt

21

Conclusion● More optimal than camera for simple applications

○ Works well in our project

● Uses I2C bus protocol● Has a convenient interrupt function● Straightforward and understandable configurations

22

DocumentationData sheet (https://cdn.sparkfun.com/datasheets/Sensors/LightImaging/isl29125.pdf)

Note: All Images taken from datasheet unless otherwise specified

23

Any Questions?

24

top related