Arduino + Accelerometer: Tilt Detection
Uploader Comments (Kosha2905)
All Comments (20)
-
LOL... It was so easy you r right... I got an A+ on it :) Thank you.
-
Tsk tsk... if you're already on your senior project, you should be able to do this simple code by yourself.
-
Thanks for uploading the video and the code. Just out of curiosity, how do you determine which pin corresponded to the input of the arduino board. I, also, am trying to do this for a design project
Thanks in advance.
The code I was referring to was :
int forwardPin = 9;
int backPin = 10;
int leftPin = 11;
int rightPin = 12;
int centerPin = 8;
-
does this work with a lilypad accelerometer?
-
would it be easy to make the light intensity transfer between leds smoothly. Coz that would make your creation really cool!
-
@Kosha2905 Thank you for your courtesy. I have since completed what I needed. If you get bored it can be seen in my videos.
Kindest regards
Please sir can you post the code for this project.. i need it for my senior project please...
Thanks in advance....
eliott82 1 year ago
@eliott82 check the info for the link
Kosha2905 1 year ago
Have you posted your code anywhere? I was doing a similar experiment and would like to know if you came across any non-linearities from the accelerometer. Were you able to output an accurate tilting angle?
confusedntwisted 1 year ago
@confusedntwisted Nah, it was nothing that complex. No filtering or conversion to degrees - just a couple of if statements. The code's linked to in the video's info if you want to see it
Kosha2905 1 year ago
what the acclerometer be digital or analog output?
dodgedart74 1 year ago
@dodgedart74 analog - it's the adxl335
Kosha2905 1 year ago