Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Arduino + Accelerometer: Tilt Detection

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,123
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 25, 2009

A small arduino project I put together that detects tilt using an ADXL330 accelerometer...

code can be found here:
@eliott82

Look here:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235613861/0

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (Kosha2905)

  • Please sir can you post the code for this project.. i need it for my senior project please...

    Thanks in advance....

  • @eliott82 check the info for the link

  • 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 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

  • what the acclerometer be digital or analog output?

  • @dodgedart74 analog - it's the adxl335

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • @cKlutcHJ21

    LOL... It was so easy you r right... I got an A+ on it :) Thank you.

  • @eliott82

    Tsk tsk... if you're already on your senior project, you should be able to do this simple code by yourself.

  • @Kosha2905

    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

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more