[DEV] RGB ambient light sensor test app (no root required)

Rc-Blob

Member
May 31, 2006
41
12
0
Aberdeen, UK
Hi all,

As some of you may know, the I9300 has an RGB ambient light sensor. I made a little app to show off the capabilities of the sensor. It's very basic at the moment since I just finished it but I though I'd share it with you guys and gals before heading to bed.

The sensor in the phone reports raw values, which haven't been adjusted to take into account the different sensitivity the human eye has to different colours. The app compensates a bit, by scaling the raw sensor values according to the CIE response curve. However I have not yet taken the non-linearity of intensity into account.

At the moment the app works best for strong colours.

To use the app:

Launch.
Done.


On the top left are the values reported by the sensor. The bottom square shows the colour after scaling/processing. If you tap the coloured square you can pause/unpause the measurement.

The attached pictures are what I get when I test my monitor. If I hold the phone next to the screen they look almost identical. So I can conclude my laptop screen is ****e :)

I have only tested this on the international version. So all you US folks, feel free to try it and let me know if it works.

-rcblob
 

Attachments

Last edited:

Taifuuni89

Senior Member
Nov 16, 2008
155
31
0
Very nice! I'm just thinking that is there anyway we could turn this to an pc monitor calibration tool. Is the sensor accurate enough? Just thinking of the possibilities...
 

Ramalama

Senior Member
Jun 9, 2009
432
224
0
Nice app, i never knowed, that there are an rgb sensor:))

Will be very cool if someone make something usefull with that:))

Thank you for the show possibilities:)

Cheers:)

Sent from my GT-I9300 using xda premium
 

JF-GINO

Senior Member
Apr 30, 2011
339
112
0
Toronto
Thanks for the support.

I'm stuck on what to actually do with this, so if anyone has any ideas/features feel free to throw them out there. :)
This could be an awesome app for people who want to 'Colour Pick' from swatches, Eg: Paint matching, fabric matching etc...
You could also refine this to tweak & calibrate monitors (LCD/Plasma) just like thos $200.00 sensors you can buy at Photo stores.
For us photographers and cinematographers out there, it could be refined further to become an incident light meter...
Could also be used within a game where sensed colours could match a result of some kind..... endless possibilities..

Anyway, This is a very cool app indeed! I cant stop playing with it, Thanks for this!
 

maicon

New member
Jan 29, 2010
1
0
0
Hi all,

As some of you may know, the I9300 has an RGB ambient light sensor. I made a little app to show off the capabilities of the sensor. It's very basic at the moment since I just finished it but I though I'd share it with you guys and gals before heading to bed.

The sensor in the phone reports raw values, which haven't been adjusted to take into account the different sensitivity the human eye has to different colours. The app compensates a bit, by scaling the raw sensor values according to the CIE response curve. However I have not yet taken the non-linearity of intensity into account.

At the moment the app works best for strong colours.

To use the app:

Launch.
Done.


On the top left are the values reported by the sensor. The bottom square shows the colour after scaling/processing. If you tap the coloured square you can pause/unpause the measurement.

The attached pictures are what I get when I test my monitor. If I hold the phone next to the screen they look almost identical. So I can conclude my laptop screen is ****e :)

I have only tested this on the international version. So all you US folks, feel free to try it and let me know if it works.

-rcblob
:good:
Great!!! Could you show us how did you get the values? Thanks in advance!