Hi All!
Anyone know of a simple 2-axis tilt sensor that will show the angle? Thanks, Ed
Printable View
Hi All!
Anyone know of a simple 2-axis tilt sensor that will show the angle? Thanks, Ed
These are fun to play with and includes an extra axis but really small to work with: MMA8453Q
Or skip the build and buy this guy: Digital level
This might be an impractical suggestion in this context, but here's my 2 cents worth..
I've been getting increasingly impressed with the hardware that goes into even the cheapest of Android phones (of your interest here, the accelerometers, orientation, gyroscope, even gps?) and the relative ease with which you can pull out that data and transmit it via bluetooth. Its getting to a point where the cheap lesser known brand phones (in my country costing less than 100 US), could be considered as black boxes for the basis of a number of dedicated applications, I think.
Thanks again to Dave (M) and Dave (H) for pointing me towards B4A, BTW!
Attachment 6493
Check out the 5th line. Orientation values for all 3 axes.
Thanks Guys!
Both are great ideas! The intended purpose will be to display pitch and roll for my submarine using a on-screen display. Best, ed
Here is a tilt solution for the MMA7260 3 axis accelerometer. It uses an Olimex PIC-LCD-3310 development board.
Tilt project code: http://www.picbasic.co.uk/forum/cont...-axis-g-sensor
Hardware used: http://www.olimex.com/dev/pic-lcd3310.html
Interesting! What is your opinion / knowledge of the tilt sensors that output a square wave with a duration based upon angle?
Hey Ardhuru,
How did you display that sensor information on your android?? Is that an app?
Or just a built in information page? I have the Motorola Droid2 and have never seen that info.
thanks
dwight
Yes, Jerson is right, of course, but this one came as a sample app created with B4A.
http://www.basic4ppc.com/forum/basic...html#post38780
The above screen-grab was an actual run on my LG Optimus.
I could send you the compiled .apk if you are interested. Alternatively, you could download the source code on the above page and the trial version of B4A and compile it yourself.
Anand
Hi Guys!
I was wondering if anyone has written code for the Memsic 2125 sensor? I looked at some code for Stamps and ended up with more questions than answers. Thanks, Ed