This utility simplifies the process of tuning the BlinkUp receiver circuit for your imp-based device.
BlinkUp™ uses light and dark pulses, typically from a smartphone screen or an LED, to convey WiFi credentials and provisioning information to an imp. Light levels are detected with a simple circuit which uses a phototransistor and gain resistor to translate light level into a voltage signal. The value of the gain resistor must be carefully selected to acheive the best possibile BlinkUp reliability given your phototransistor and mechanical design.
This utility collects hardware.lightlevel() samples during BlinkUp and produces a graph, which can be used to determine how the gain resistor should be adjusted to optimize BlinkUp. See How to Tune Your BlinkUp Circuit in the Electric Imp Dev Center.
Create a new model, then copy and run the code in the example directory. For more information, see How to Tune Your BlinkUp Circuit.
The BlinkUpTuner library is licensed under the MIT License.