Hi All,
I'm working on a project in which I need to keep count of the rotations that a big rod will make. To do so I can only attach one sensor box to the rod (so no separate parts next to the box).
The rod is really big and heavy, so the size of the sensor/solution does not really matter. The rod will not change the angle of the axis around which it rotates relative to the ground.
It does however need to work for several years unattended (so battery life is also a concern).
I was initially planning on making use of a combination of a magnetometer and accelerometer to track the rotation. However, this sensor box will be used outside and thus experience fairly big temperature changes.
So I'm worried that the accelerometer will start to show offsets that might trick my software into thinking that it is rotating. I could perhaps use the magnetometer to help eliminate this, but there will also be a lot of cast iron nearby so I don't fully trust that this would work out.
Another possible solution would be to make use of simple tilt sensors (the ones with a metal ball inside). I suppose I could use two of them mounted with 90 degrees offset relative to each other. But I worry that they might not survive years of rotations and I worry that the ball might bounce around too much.
Lastly, I could use a hall effect angle sensor, and mount a magnet that can freely rotate with some type of offset weight added to it so that it will rotate if the sensor box is rotated. This would probably work well but does require a lot of extra hardware (I couldn't find any parts that integrate all of this into one package). I'm planning on making tens of these, so assembly time and costs do matter.
What solution(s) would you guys pick? Or do you have other solutions?
Thanks!