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

24
ISL29125 RGB Color Light Sensor Arjun Arunasalam Varun Kutirakulam Vinay Revankar Avi Singh 1

Upload: others

Post on 12-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

ISL29125 RGB Color Light Sensor

Arjun ArunasalamVarun Kutirakulam

Vinay RevankarAvi Singh

1

Page 2: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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

2

Page 3: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

SparkFun RGB Light Sensor (ISL29125)

3

Page 4: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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

Page 5: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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]

Page 6: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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]

Page 7: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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

Page 8: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

Spectral Response

8

Page 9: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

9

Registers (Configuration and Status)

Page 10: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

10

Registers (RGB Data)

Page 11: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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

Page 12: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

Example of Write Transaction

12

Signals From Receiver

0x01

0 1 00 00

0x02

Page 13: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

13

Read Transaction

Signals From Receiver

Page 14: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

14

Read Transaction

0x09 0x00 - 0xFF

Signals From Receiver

Page 15: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

15

Read and Burst Read Transactions

Signals From Receiver

Signals From Receiver

Page 16: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

16

Read and Burst Read Transactions

Signals From Receiver

Signals From Receiver

Page 17: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

17

Read Transaction

Page 18: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

18

Signals From Receiver

Page 19: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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.

Page 20: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

Interrupt Function

20

Page 21: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

Configuring the interrupt

21

Page 22: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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

Page 23: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

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

Note: All Images taken from datasheet unless otherwise specified

23

Page 24: Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit in register 0x08 is asserted to HIGH and the INT pin goes LOW. User can configure

Any Questions?

24