Hi. I want to make an if statement that says: if gyroscope is flat (doesn't have to be exactly flat)...then serial print :flat
However...I don't know how to see if the gyroscope if flat. Can someone please help? Thanks. ![]()
Hi. I want to make an if statement that says: if gyroscope is flat (doesn't have to be exactly flat)...then serial print :flat
However...I don't know how to see if the gyroscope if flat. Can someone please help? Thanks. ![]()
Did you mean accelerometer?
Yeah
You could learn how to use the accelerometer as a tilt meter.
Hint: tilt=0 means that it is level.
Hi,
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Have you written any code reading an accelerometer?
What model accelerometer and what model Arduino?
Thanks.. Tom.. ![]()
Oh....Thanks guys...you helped me a lot. ![]()