Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit...
Transcript of Avi Singh Vinay Revankar Varun Kutirakulam ISL29125 RGB Arjun … · 2018-11-25 · the RBGTHF bit...
![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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/1.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/2.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/3.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/4.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/5.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/6.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/7.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/8.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/9.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/10.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/11.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/12.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/13.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/14.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/15.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/16.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/17.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/18.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/19.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/20.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/21.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/22.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/23.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022050604/5fab586985d87d1df445c5ad/html5/thumbnails/24.jpg)
Any Questions?
24