iSpindle: Calculation methodology - Beer, Wine, Mead, & Cider Brewing Discussion Community.

Help Support Homebrew Talk:


New Member
May 9, 2016
Reaction score
Hello all.

I have been trying to replicate the iSpindle "Tilt" calculation. At this link:

I have an accelerometer at home that I can calculate the "pitch" and "roll" but not sure what methodology is used to get the single "tilt" value.

Something like this link seems like it would work; but I am not sure how iSpindle does it.

Any help is great; I am planning on ordering parts soon; and would like to use my existing accelerometer instead of buying a new MPU6050 if possible. I have been looking through a lot of the github documentation but can't find the exact calculations.