- Tue Dec 24, 2013 8:06 am
#166820
Hi, I want to build a tilt sensor which can measure the angle of an object relative to a plane underneath it.
First I was thinking of using an accelerometer, but the problem is that the plane is not necessarily horizontal and can move, so I don't think that would work. So now my idea is to measure the distance between three points (arranged in a triangle) and the plane, and calculate the angle from this information. Then my first idea was to use optical range finders, but I don't think I can get them accurate enough (the object will be only ~0.5 to 1.5 cm above the plane and the triangle of points will probably fit in a circle of about 6cm diameter), and they'd probably also be fairly expensive and big.
So my current idea is to use some kind of "analog buttons" to determine the distance. Basically, they would touch the plane, and depending on how far the buttons are pushed in, I could determine the distance. Essentially I'm thinking of some kind of potentiometers which you don't turn to manipulate, but push. I'm completely new to this, so I have no idea if such a thing exists (although it seems useful and simple enough that it should).
Any advice on where to find such sensors? Or other ways in which I could realise the same task?
First I was thinking of using an accelerometer, but the problem is that the plane is not necessarily horizontal and can move, so I don't think that would work. So now my idea is to measure the distance between three points (arranged in a triangle) and the plane, and calculate the angle from this information. Then my first idea was to use optical range finders, but I don't think I can get them accurate enough (the object will be only ~0.5 to 1.5 cm above the plane and the triangle of points will probably fit in a circle of about 6cm diameter), and they'd probably also be fairly expensive and big.
So my current idea is to use some kind of "analog buttons" to determine the distance. Basically, they would touch the plane, and depending on how far the buttons are pushed in, I could determine the distance. Essentially I'm thinking of some kind of potentiometers which you don't turn to manipulate, but push. I'm completely new to this, so I have no idea if such a thing exists (although it seems useful and simple enough that it should).
Any advice on where to find such sensors? Or other ways in which I could realise the same task?