Imran Haque

Imran Haque

Data scientist, computational biologist, and the guy who runs this site. See more about me.

Latest Posts

PeloMon: The Code (Part IV)

TL;DR - How to implement a cycling speed+cadence+power meter over Bluetooth LE, and some other small software tricks on the PeloMon.

Fourth in a series. See the project GitHub, to be updated through the series.

PeloMon: Hardware (Part III)

TL;DR - Hardware selection (microcontroller, power delivery, signaling) and board layouts for the PeloMon.

Fourth in a series. See the project GitHub, to be updated through the series.

Emulating the Peloton (PeloMon, Part II)

TL;DR - How long it takes the Bike to respond to its head unit, building event-driven and hardware timing-accurate emulators of the Peloton Bike to assist in development, and a Peloton decoder library in C.

Third in a series. See the project GitHub, to be updated through the series.

How does the Peloton compute speed? (PeloMon, Part Ib)

TL;DR - Speed on the Peloton Bike is a pure function of power and can be accurately regressed with a two-piece polynomial fit. Code is available at the project GitHub repo.

Second in a series. See the project GitHub, to be updated through the series.

Decoding the Peloton (PeloMon, Part I)

TL;DR - I’ve decoded (most of) the protocol that the Peloton bike uses to communicate with its head unit tablet and built a device, the PeloMon, that takes that data during a ride, without interfering with the Peloton software, to broadcast it over Bluetooth LE to whatever devices you …