12 Nov 2017
The technical development of Grimlight is pretty much finished, our current work has mostly been with trying to get the word out (the technical challenge is much easier than the marketing one). Now the time has finally come to announce the coming launch of a kickstarter campaign to finance this and make it possible for everyone to get access to Grimlights! November 21 is the date for the kickstarter launch. If you want to be notified, make sure to sign up for our newsletter or follow us on facebook!
15 Oct 2017
Some more work done on the code, check video.
Now the Grimlight has functionality to change lighting effect. The light is switched on and off by holding a magnet close for a short time. If a magnet is present for about 10 seconds on the other hand it changes effect. Currently three effects are implemented, flickering, steady and pulsing.
The controller remembers current state while in sleep, so it is possible to configure with the effect you want only once (if battery is changed state is lost thought).
08 Oct 2017
tl;dr. Changes done to increase stand-by time, should be about one and a half year before the battery is drained now.
Upon measuring the power consumption behaviour in sleep-mode it looked like there were some room for improvements after changing the code to deal with the issue with the turn on time for the sensor.
In that implementation the behaviour was to wake from sleep, turn on the sensor, do nothing for about 100 ms, check the sensor and finally go back to sleep if no magnet is present. The power consumption during these 100 ms not spent sleeping had large impact on current draw. The average consumption at 3 V was 11.5 µA during one wake-check-sleep cycle.
Changing the code so the behaviour was, wake, activate sensor and then go back to sleep for 64 ms to make sure the sensor has time to be activated improved matters some but not much. On a hunch we tried removing the decoupling capacitor (100 nF) for the hall sensor, removing this had a huge impact. It seems that during each cycle the capacitor was charged and discharged wasting power.
Removing the capacitor didn’t seem to affect stability. That change together with putting the MCU in sleep instead of just waiting brought the stand-by power consumption down to about 1.5 µA!
Also, see the Sample gallery for new images!
07 Sep 2017
We have had an issue with units automaticly waking from sleep when using code that switch off the Hall sensor when in sleep to save power. Today I took some time to investigate this instead of just using a workaround (not disabling the sensor while sleeping).
I had an idea that it might be that it takes some time for the sensor to output the correct value after getting power. This turned out to be correct but not in the way I expected. When the circuit is fed power at over about 3.1 V there is no delay for reading correct state of sensor. When the voltage drops to 3.1 V or under on the other hand it takes about 70 ms for it to output correct value.
In the below figures, C1 is the level at the Vs pin of the Hall sensor and C2 is at the output. Decreasing the voltage down all the way to 2.4 V (minimum working voltage for the sensor) there is no change in time to turn on.
21 Aug 2017
The PCBs for the final prototypes have arrived and been assembled, here are some picutres. Some footprints for parts need minor adjustment but otherwise this should be the final version. The circuit measures 21 mm in diameter and 2.5 mm at the thickest part (this will be reduced by 0.2 mm for the production version due to changing from 0.6 mm thick PCB to 0.4 mm thick).