I start this thread because in the UF-1504 group buy thread it was suggested that a smart phone could be succesfully used as a luxmeter and I was pedantic enough to point out the theory why this could never be anything near accurate. I realised that one thing I found dissatisfying on the other forum is that upon posting stuff you get to hear all about why your methods could be flawed, according to theory (which in itself is a good thing, appreciate that a lot) but then it stops, the wiseguy does not take the effort to do the experiment to check your method, it is up to you to prove every detail. So this is an attempt not to be like that :-)
This is the third attempt to start a topic on how to get a smartphone to work properly as a luxmeter. Pulsar started a thread about it a few years ago (I can not find the link, sorry), Ryansoh3 again two years ago, and now me.
First thing I did was just installing a boat-load of lightmeter apps on my Xperia Z3 Compact and see how they work. It appeared that almost all of them simply read out the inbuilt ambient light sensor (ALS) of the phone, and present the read-out in a more or less convenient way. So technically these apps are all the same. A few apps use one of the camera's to measure the light, and some even give you the rgb ratios of the collected image.
Using the ambient light sensor is actually my favourite approach because these sensors claim to have a wavelength sensitivity spectrum that approaches that of the human eye and thus should be able to produce actual lux-values, something that a camera can not easily achieve. I did some reading into this, later more about that.
First I did some basic tests and quickly realised that the erratic readings I got all the time calmed down a lot by adding a diffuser in front of the ALS-sensor. I tried a piece of milky plastic I had around, but later found out that a small piece of copierpaper with some cellotape over it did the trick just as well. It is the same trick as when you buy a 'Luxi', a kickstarter project in which you buy (30 dollar!) a plastic diffuser and use it together with a dedicated app (a pretty crappy app IMO, there's better ones out there).
Like this, the read-out numbers actually began to make sense, although they were way off the real value, not the least because the diffuser reduces the amount of light reaching the sensor a lot. For the plastic diffuser I checked the values with some flashlights with known throw numbers at different set distances. Nothing overly accurate, bad set-up, just to get a feeling for it. And it worked quite well. A few apps let you correct the value with a multiplier (instead of just between a factor 0.5 and 2), like beeCam Lightmeter (1-Ap Light Sensor is even nicer but it crashes on my phone), and with the multiplier at 36, I get recognisable lux-numbers for flashlights with widely varying throw numbers. And with the piece of plastic in position I can measure up to 1 million lux, so there is some leeway for future projects :evil: . I have not done real accurate testing yet, like checking this improvised luxmeter side-by-side with my quality luxmeter.
None of the apps provide all the display features that I would like to see for flashlight throw measurements. If these tests work out well enough, it could be nice if a combined app-builder/flashlight enthousiast would make a BLF-luxmeter-app. One that allows calibration with a multiplier, the calibration is saved when closing the app, with the read-out in huge numbers in the underside of the screen (the upper side is probably blinded by your flashlight), and a graph on the upper side showing the course of the values, and giving maxiumum values as well.
Back to theory.
Your smart phone luxmeter is as good as your ambient light sensor. I spent some time on the internet trying to find out which ALS-sensor is in my Sony and could not find it. But one of the apps ('Lux Light Meter') appeared just to dig it up somewhere in my phone and display it, the ALS is a Avago APDG-9930, and there's a datasheet for it. This is the thing (it is combined with the proximity sensor, thus the two lenses):
Some highlights from the specsheet:
Wow, can you believe that they build a device with a 16-bit resolution just to adjust the brightness of your phone-screen??? And that they go to lengths to match the sensitivity of the human eye to get it right, even using a second infrared sensor for correction? And this all while we know here at BLF that one thing we humans are particularly bad at is perceiving accurate brightness!
I was pretty amazed about the double sensor, but quickly realised that the primary reason the infrared sensor probably is there is because it is also part of the proximity sensor (together with a infrared led that is also build in). It has a second use for correcting the visible light detector.
Now on to the 'approximates human eye response' part. Here's on the left the spectral response of the ALS of my phone. and next to it the CIE1931 photopic luminosity curve, which is the official curve describing the human eye sensitivity (in normal light conditions) on which the lux is based:
That must have been one h*ll of an 'empirical formula' to get anything near the correct 'human eye response' with this sensor !!! The truth is that they can't. And let's hope that all that uv-light that this sensor is sensitive for is filtered out a bit by the glass cover of your phone! They can substract some infra-red based on the infra-red sensor and for the rest it is an approximation. But because the usual light we measure is white, which is a quite constant mixture of wavelengths (even though the colour temperature can vary), the results they apparently get compared to a real luxmeter (according to the datasheet, that is) is not so bad:
I found a spectral response of a Vishay version of the Ambient light sensor/Proximity Sensor (probably found in some phones too) as well, the Vishay VCNL4040:
This is a way way better spectral response than the Avago one (and probably better than my chinese luxmeters!), narrow, not sensitive to uv or infrared, with the peak sensitivity pretty close to the 555nm where it should be. If this specsheet is correct, I want this sensor in my phone!! Which phone has this one? This thing is good
Back to one more experiment, can I see the uv and ir sensitivity of my -as it appears relatively crappy- Avago ambient light sensor? I blasted three flashlights at the sensor: my EDC-light at low setting, a 365nm uv light (ledengin LZ1), and a ir light (850nm oslon black). The answer is: oh yes you can:
http://www.youtube.com/embed/_hHF9JZrt7o
These are my findings sofar, if anyone has more info to share on this subject, feel free to post in this thread. I may update with more findings when time allows to do more tests.