ADXL345 accelerometer + Arduino and Processing language

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,433
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 27, 2009

Finally I've managed to make my adxl345 work with Arduino! I've written a small Processing app to make the idea clearer.

The adxl communicates with the Arduino using the I2C protocol, and the Arduino routes the data to the Processing application (the 3D app on the screen) through a serial port.
See details on wiring and programming at:
http://codeyoung.blogspot.com/2009/11/adxl345-accelerometer-breakout-board.html

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (MeLightk)

  • Hello.

    Please tell me if can i use this accelerometer with arduino mega 1280 or 2560 for calculate and display my car real speed.

    Thank you very very much.

  • @taoloo897 You can not measure speed with an accelerometer. Accelerometer can only measure acceleration - acceleration is a change in speed. If your speed is constant, the accelerometer will show no data. Hope that helped

  • Love the setup! I've got a question actually. Currently I'm using one of these for a project, and I don't really know how to interpret the values I read in. what is the output format of the accel. Like how can I take the resulting int from the two bits and convert to G's or is it already converted? Any help would be awesome

  • @luxsato I have a post describing the setup in details. The link is in the video description :) Send me a pm if you need further help

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • @taoloo897 yes you can, v = v0 + a * t

    v = velocity in m/s, v0 is the starting velocity (v0 = v; at the end of the loop)

    a = acceleration in m/s^2, you'll need to convert from G's to that

    t = time in seconds, but only the interval between reads

  • thx for sharing!

  • Thank you so much for the description in your blog!

    It would take me ages to sort everything out by myself.

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