Pages: [1]   Go Down
Author Topic: Horizontal Sensor  (Read 1214 times)
0 Members and 1 Guest are viewing this topic.
Port Elizabeth, South Africa
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi: New to the forum and would like help to find a simple sensor to measure horizontal level i.e.
Side to Side and Front to Back.
any suggestions from the learned members. smiley-confuse
Logged

0
Offline Offline
Faraday Member
**
Karma: 16
Posts: 2857
ruggedcircuits.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It sounds like you are looking for an accelerometer. When still, the accelerometer gives you X, Y, and Z components of the force of gravity. So when perfectly level, Z will be 1g (well.... -1g since it's pointing down) and X/Y should be 0g. When tilted, the X/Y components will increase.

If this sounds like it would work for your application then Googling for accelerometers to work with Arduino will lead to lots of information.

--
The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, speaker, microphone, light sensor, potentiometer, pushbuttons
Logged

Port Elizabeth, South Africa
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the suggestion. I will do some reading on accelerometers.
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I made a music box on the same principle, The box uses an accelerometer to sense which side is up.

http://liudr.wordpress.com/2011/01/24/music-box/
Logged


Pages: [1]   Go Up
Jump to: