The ANT is my friend, it's blowing in the wind#
Sat, 06 Mar 2021 14:46:16 +0000
A few weeks ago I won some bike rollers on Ebay, and once I'd mastered the basic skills (pedalling without falling over, stopping without falling over, starting without falling over without holding onto the door jamb), I started looking for some way to measure what I was doing. Another Ebay purchase later and I was the owner of a Garmin GSC10 speed/cadence sensor. (There are two standards for wireless fitness equipment: ANT+, which is the older one, and probably obsolescent, and Bluetooth Low Energy, which is newer but is based on Bluetooth, therefore probably unreliable. Also, in terms of what I could find on Ebay, BTLE is double the price for any brand I'd heard of.)
But the sensor is only half of the solution: I also need something to display the values, and as I already have a handlebar mount for my phone I decided that an Android app would be the thing.
There is more than one route to persuading an Android phone to receive ANT readings: you can
- use a USB OTG adaptor and an ANT+ USB stick, if you don't mind having lumps of daisychained plastic hanging off the bottom of your phone. Probably reserve this for indoor use - or dry days - only
- make your own micro-USB ANT stick which is conceptually simple but practically fiddly, and a good way to level-up your soldering skills. Remove the case from a miniature ANT+ stick, solder four wires to the traces (comparatively easy) and then solder onto a micro-usb connector (comparatively not easy). Connect pin 4 of the MicroUSB conector to ground to make it act in Host mode.
- use a phone that has an ANT+ transceiver built in, and acquire or build a version of Android with drivers that support it. This might not be the one it was shipped with! Using a Moto G5 Plus, I had to build my own (it took several attenpts)
Then I needed an app.
As a cyclist I want speed and cadence displayed in big numbers So I can see them even when the wind is making my eyes water and the sun is shining on the phone display
Apps for ANT+ sensors also seem to be comparatively thin on the ground. IpBike seems to be the de facto standard, but after trying it a few times I was struck by acute NIH, and decided it would be more fun to write my own than to figure out whether I could configure it for my needs ...
Three weeks later I'm not sure it is more fun, but it's certainly a learning experience. https://github.com/telent/biscuit