Not every week is about the algorithm. Today's changes are about living with the sensor day to day: charging it, leaving it in a bag, updating it and setting one up from scratch.

Two battery bugs, on every sensor

Both of these were present on every unit built so far.

  • Charging was slower than it should be. The board can charge at two currents, chosen by one pin. The board's software left that pin unset, so the battery charged at the lower current, about 50 mA. The firmware now selects 100 mA, and the setting holds while the sensor is switched off too. That should roughly halve the charging time. We haven't timed it yet, so we're not giving a number.
  • The battery drained while the sensor was off. In deep sleep the motion sensor stayed powered and kept sampling. Going by its datasheet, that is about 1 mA, which would empty the battery in a few weeks. We estimated that figure and haven't measured it. The firmware now cuts the motion sensor's power before going to sleep.

Lodovico tested the update on a sensor, with switching off and back on, and both worked as expected. Measuring the real current draw when off and the real charging time is still on our list.

Updates that recover

In testing on an iPhone, a firmware update stopped at 81 %. The cause was simple: the screen locked, the phone suspended the app, and the transfer stopped. The iOS app is not published yet, but the same problem could hit anyone, so the latest app now:

  • keeps the screen on during an update;
  • notices when a transfer stalls and tries again;
  • shows "Update not finished" with a Retry button if it still fails;
  • recognises a sensor left halfway through an update and offers FINISH UPDATE straight from the Bluetooth search.

We tried it on an iPhone and on an Android tablet. One thing is still open: letting an update continue with the screen locked needs background Bluetooth on iOS, and we haven't added it yet.

A five-step software install

The old instructions assumed you had the Arduino IDE and could reach the board's reset button. The new install guide ↗ is one path in five steps. A short command over USB puts the update-ready bootloader on the board, without the reset button. The app then installs the firmware over Bluetooth. You only need the Arduino IDE if you want to change the firmware yourself.

We tested it on a brand-new bare board with no reset button pressed, the same situation as a closed sensor, on macOS. Not tested yet: Windows, Linux, and a sensor that already has the ODKI firmware on it. If you try one of those, please tell us how it went in Discussions ↗.

The assembly guide ↗ is reordered to match. Wire the switch first, install the software over USB with no battery attached, and solder the battery last, with USB unplugged and the switch off. That way a soldered battery can't get shorted while you work.

Downloads you can find

The Android app and the firmware packages now live in the repository's Releases ↗, with a fixed link that always points to the latest app.