Light Flicker Meter
from KEUWLSOFT
Privacy Policy for Light Flicker Meter
Currently not available on app stores. Can be downloaded at Buy Me a Coffee (coffee optional).
Supporters on Patreon can find the app here .
Currently not available on app stores. Can be downloaded at Buy Me a Coffee (coffee optional).
Supporters on Patreon can find the app here .
Light Flicker Meter
Turn your device into an light flicker meter by using its light sensor. Also measures the illuminance and the RMS (Root Mean Square) of the illuminance.
Flicker refers to the amount the illuminance of a light source moves (or flickers) about its average value. Excess flicker can cause headaches or dizziness. Flicker measuring capability depends on the resolution and sampling speed capability of your light sensor.
Features:
• Fast Fourier Transform (FFT) to obtain the frequency spectrum.
• Select between lux (lumens per meter squared) or foot candles for the illuminance unit.
• The upper display shows a gauge with the flicker value, or Max, Min and average values of flicker illuminance and rms illuminance.
• Lower display shows a graph of the data vs time or a FFT of measured illuminance.
• Peak indicator for the frequency spectrum.
• Save graph data to file.
Light sensors will vary in sampling speed, resolution and accuracy from one device to the next. For indication only.
This app is designed for indication and educational purposes only. Always use a suitable calibrated more accurate device appropriate to the situation when required.
Some Screenshots:
Max, Mins, Time Graph |
Fast Fourier Transform |
User Guide
Requires a suitable light sensor in your device. If one has been detected, its specifications will be shown in the info screen.
IMPORTANT: Pay attention to the sampling frequency, as a few hundred Hz will be required to measure mains lighting flicker. For other situations, consider what your measuring and if the frequency is sufficient. Remember this app is for indication only.
Flicker refers to the amount the illuminance of a light source moves (or flickers) about its average value. At intermediate frequencies flicker can be harmful and cause headaches and dizziness. At higher frequencies, say 300Hz and above, flicker is barely perceivable by the eye.
Flicker in its simplest, can be calculated from the maximum and minimum values of illuminance over a cycle, Thus flicker would be 100% x (Max-Min)/(Max+Min). However such a calculation does not take into account the waveform shape, or frequency distribution of the flicker which might not be at a single wavelength.
As such, in this app we calculate the Flicker as the Root Mean Square (RMS) of the Illuminance divided by the average Illuminance. This will then not need a fixed wavelength to measure over and allows for irregular or multiple frequencies of flicker. For a single frequency square wave flicker, this will reduce back to give the same value as the simpler method above. For a less harsh single frequency sine wave, it will be 1/√2 of it.
The sampling frequency of your device's light sensor is important to what flicker can be detected. the sampling frequency should be over double the frequencies under investigation (i.e. Nyquist frequency).
Room lighting will often flicker at twice the mains frequency (100/120Hz). Video playback of a TV might update at 30Hz. A flashing bicycle light might be just a few Hz. Pulse Width Modulation (PWM) used for light dimming will typically be over 300Hz. Check the measured sampling speed of your sensor (shown in sensor details on info page in app) to give you an idea of what you will be able to measure. And remember this app is for Indication only.
The specified reporting mode of the light sensor is usually configured as continuous or on change. If the light sensor only reports a value when it changes, then the measured sampling frequency given on the info page may underestimate the sampling speed you will actually get with a continuously changing light level.
Light sensor resolution and measurement frequency are often low, since their primary purpose is just to detect low light conditions and adjust screen brightness accordingly. Hopefully the manufacture of your device has used a good sensor.
The app also measures the illuminance and RMS illuminance (AC component of the illuminance).
The light sensor returns illuminance values in lux, where 1 lux = 1 lumen per square meter. You can also select units of foot candles (lumens per square foot) in the settings. 1 foot-candle = 10.7639 lux.
Since frequency is important to the understanding of a flicker, a Fast Fourier Transform (FFT) is performed on the measured illuminance data.
App uses include comparing lights and identifying faulty lighting and educational/scientific investigations.
Note that light sensors will vary in sampling speed, resolution and accuracy from one device to the next. Therefore this app is for indication only.
Max, Min, Average
Pressing the Max-Min button will show the maximum and minimums and the average of the Flicker, illuminance and RMS illuminance values since the last time zero was pressed.The zero button resets averaging and clears the graphs.
The pause button pauses measurement until it is pressed again.
Flicker, Illuminance and RMS Graphs
These graphs shows the corresponding measured values versus time. It is auto scaling by default and scrolls once filled.The y-Axis of the graph can be set to be logarithmic or linear in the settings.
The graph y axis is auto scaling by default. When paused or not in autoscale mode, double touching and stretching or pinching will scale the graph. Single touch panning will move the y-Axis scale up or down, or allow scrolling back to see earlier data on the x-axis.
The update speed of these graphs can be changed to one of three preset values in the settings.
FFT Graph
The Frequency Spectrum is selected with the FFT graph button at the bottom right.In addition to the most recent FFT, an average of all the FFTs done since the FFT settings were changed or zero was pressed is also shown as a thicker trace. The number of averaged traces is shown in the top right of the graph.
The largest detected peak in the averaged data will be indicated with an arrow and its values shown above the graph.
The FFT is not shown until at least sufficient data to fill the time series is obtained. This will depend on the sampling speed and FFT size. The time required to obtain this data is equal to the FFT size divided by the sample rate. Whilst the initial data is being gathered, a progress screen will be displayed instead of the FFT.
The measurement frequency can be changed in the settings between 12 preset values (0.5 Hz, 1 Hz, 2 Hz, 5 Hz, 10 Hz, 20 Hz, 50 Hz, 100 Hz, 200 Hz, 500 Hz, 1 kHz and 2 kHz). The data is re-sampled for these frequencies, so going above the speed capability of your device will just result in multiple samples with the same reading. Sampling above the sensor's max measurement speed will also result in FFT traces becoming grey at above half the sensor's max sampling speed indicating that the data should probably be ignored. The measured sensor sampling speed is shown along with other sensor details at the top of this page.
Both the axes can be either on logarithmic or linear scales as selected in the settings. The graph is by default auto scaling, but when this is off or the sampling is paused, the graph can be scaled or panned as with the other graphs.
Settings
Clicking the cogs button at the top left of the screen brings up a settings menu:Illuminance Units – The illuminance can shown in either lux (lumens/m²) or foot candles.
Stay awake – Check this option to stop the device from sleeping.
Sound On – Button presses will make a click sound if this is enabled.
Vibrate – Button presses will vibrate the device if this is enabled.
Reset to defaults – Resets all preferences back to their default values and clears the graph data.
Graph Y-Axis Scaling - The Y-Axis of the flicker/illuminance/RMS time graph can be logarithmic or linear.
Auto scale graph Y-Axis - The Y-Axis of the graph will be auto scaled when not paused. Otherwise panning or pinching on the graph can change the axis scales.
Graph Update Speed - The update speed of the flicker/illuminance/RMS graphs can be changed to one of three preset values.
Save Flicker, Illuminance, RMS Graph Data - Saves a comma separated text file containing the data from the Flicker, Illuminance and RMS graphs. Files are saved in the documents folder in a 'keuwlsoft\light_flicker_meter' sub directory.
FFT Graph X-Axis Scaling - The Frequency Axis of the FFT graph can be set to be a logarithmic or linear scale.
FFT Graph Y-Axis Scaling - The Y-Axis of the FFT graph can be set to be a logarithmic or linear scale.
Auto scale FFT graph Y-Axis - Both axes of the FFT graph will be auto scaled when not paused. Otherwise panning or pinching on the graph can change the axis scales.
Coupling for FFT data Select between AC and DC coupling. AC coupling applies a high pass filter to the raw data, thus removing its DC component. For example, without AC coupling a DC offset might overwhelm the FFT spectrum at the low frequency end.
FFT Update Speed - Once sufficient data has been received for the initial FFT, the FFT will be redone at one of three intervals determined by this setting.
FFT Size Select how many data points to use in the fast Fourier transform. The smaller the size, the faster the FFT becomes, but with lower frequency resolution. The number of data points in the frequency spectrum will be half the FFT size.
FFT Sampling Frequency Choose between 12 preset values(0.5 Hz, 1 Hz, 2 Hz, 5 Hz, 10 Hz, 20 Hz, 50 Hz, 100 Hz, 200 Hz, 500 Hz, 1 kHz and 2 kHz) for gathering the time series data used for generating the FFT.
Save FFT Graph Data - Saves the frequency spectrum data from the FFT graph. Files are saved in the documents folder in a 'light_flicker_meter' sub directory.
Preferences are stored for the next time the app is run.
