Accelerometer

Das Accelerometer ADXL335 (Produkt bei Amazon) ist als Breakout Board für die Verwendung mit Arduino perfekt geeignet. Es verfügt über den 3-Achsen Accelerometer-IC ADXL335 von Analog Devices. Es hat eine extrem geringe Stromaufnahme (320uA) und einen Messbereich von +/- 3g.

Die drei Achsen lassen sich einfach an die analogen Inputs des Arduinos anschließen und auslesen.

Achtung! Das Board hat eine Betriebsspannung von 1,8 V to 3,6 V. Es muss also an den 3,3V-Pin des Arduinos angeschlossen werden, da es sonst zerstört wird.

Schaltung

In der Schaltung ist das Accelerometer ADXL335 mit dem 3,3V und dem GND-Pin des Arduinos verbunden. Die drei Achsen sind jeweils an drei analogen Inputs angeschlossen.

Arduino Accelerometer Einfach

Grafik mit Fritzing gemacht

Code

Im Code-Beispiel werden die drei ausgelesenen Werte einfach per Serieller Schnittstelle an den Computer gesendet. Um die anzuzeigen, muss der Serielle Monitor in der Arduino-Software eingeschaltet werden (Werkzeuge > Serieller Monitor).

Accelerometer Projekt Beispiel

Bei diesem Beispiel handelt es sich um einen Sabotage-Alarm. Er ist ein Beispiel aus der Fritzing-Software.

In der Schaltung sind neben dem Accelerometer drei LEDs, ein Taster und ein Potentiometer verbaut.

Arduino Accelerometer Alarm

Grafik mit Fritzing gemacht

Code

Im Setup werden die drei Achsen ausgelesen. Diese Werte dienen der Kalibrierung beim Programmstart. Das Potentiometer dient der Einstellung der Empfindlichkeit des Alarmsystems. Die Funktion senseAcceleration() prüft ständig den Beschleunigungssensor. Wird der Alarm ausgelöst, blinken die beiden viereckigen LEDs abwechselnd. Der Alarm kann mit dem Taster wieder abgeschaltet werden.

Anwendung

Diese Art der Low-Power-Accelerometer werden z.B. in Mobiltelefonen verwendet. Sie werden darin genutzt, um die Ausrichtung von Fotos zu ändern, wenn das Gerät gedreht wird.

Woher bekomme ich so ein tolles Gerät?
Am liebsten natürlich über meinen Partner-Amazon:
Beschleunigungssensor bei Amazon

Ansonsten natürlich bei den üblichen Verdächtigen: Sparkfun.com, Adafruit, Watterott, EXP-Tech, etc. …

281 Comments

  1. Magnificent beat ! I wish to apprentice while you amend your site, how could i subscribe for
    a blog web site? The account helped me a acceptable deal.

    I had been tiny bit acquainted of this your broadcast provided bright clear concept

  2. Have you ever considered publishing an ebook or guest authoring on other sites? I have a blog centered on the same topics you discuss and would love to have you share some staotes/infrrmoiion. I know my subscribers would enjoy your work. If you are even remotely interested, feel free to send me an e mail.

  3. … [Trackback]

    […] Find More on|Find More|Find More Infos here|Here you can find 32457 additional Infos|Infos to that Topic: arduino-tutorial.de/accelerometer/ […]

  4. lesbian sex toys

    […]Wonderful story, reckoned we could combine several unrelated data, nevertheless really worth taking a appear, whoa did a single master about Mid East has got extra problerms too […]

  5. Rocks-Off Rapture Massager

    […]Wonderful story, reckoned we could combine several unrelated information, nevertheless seriously really worth taking a appear, whoa did a single study about Mid East has got a lot more problerms also […]

  6. hosting

    […]Wonderful story, reckoned we could combine a few unrelated information, nonetheless seriously really worth taking a search, whoa did a single master about Mid East has got additional problerms also […]

  7. اسکوتر

    We totally adore your blog and find almost all of your post’s to be what precisely I’m seeking for. Does one particular supply visitor writers to publish articles for you? I wouldn’t thoughts creating a publish or elaborating on a great deal of the sub…

  8. تبلیغ در گوگل ادوردز

    Appreciating the time and work you set into your blog and thorough details you provide. It’s wonderful to occur throughout a website each as soon as in a while that is not the exact same unwelcome rehashed data. Fantastic study! I have saved your site…

  9. iPhone Cable

    […]that will be the end of this report. Right here you’ll obtain some web-sites that we think you’ll enjoy, just click the links over[…]

  10. iPhone 8 Charger

    […]Wonderful story, reckoned we could combine a handful of unrelated data, nevertheless really really worth taking a appear, whoa did one particular master about Mid East has got additional problerms as well […]

  11. دوربین

    Wonderful website! Is your theme custom made or did you download it from someplace? A design like yours with a few simple adjustements would genuinely make my weblog stand out. Remember to allow me know exactly where you obtained your layout. Bless you

  12. Samsung

    […]Every as soon as inside a whilst we pick blogs that we study. Listed below are the most current web pages that we choose […]

  13. تعمیر

    I’m truly loving the theme/design and style of your net site. Do you ever operate into any world wide web browser compatibility issues? A little quantity of my blog viewers have complained about my site not operating accurately in Explorer but looks gr…

  14. free pc games download

    […]although internet websites we backlink to beneath are considerably not associated to ours, we feel they may be essentially worth a go through, so possess a look[…]

  15. vpn ایفون

    Fantastic tale, reckoned we could merge a number of unrelated information, nonetheless genuinely truly value taking a search, whoa did a single specific master about Mid East has got a great deal a lot more problerms also

  16. مه پاش

    Admiring the commitment you set into your blog and in depth details you offer you. It is amazing to come across a weblog every when in a while that isn’t the very same aged rehashed info. Great read through! I’ve bookmarked your web site and I’m introd…

  17. how to use a spreader bar

    […]we prefer to honor lots of other internet web sites on the web, even when they aren’t linked to us, by linking to them. Below are some webpages really worth checking out[…]

  18. zavtra prazdnik

    […]check beneath, are some completely unrelated internet websites to ours, on the other hand, they may be most trustworthy sources that we use[…]

  19. massage tantra paris

    […]Wonderful story, reckoned we could combine a couple of unrelated information, nevertheless actually worth taking a look, whoa did one discover about Mid East has got much more problerms as well […]

  20. nintendope

    […]very couple of web-sites that occur to be in depth beneath, from our point of view are undoubtedly nicely worth checking out[…]

  21. bitcoin shopping

    […]although internet websites we backlink to beneath are considerably not related to ours, we feel they may be basically worth a go through, so have a look[…]

  22. Cellphone sale

    […]we prefer to honor quite a few other internet sites on the net, even though they aren’t linked to us, by linking to them. Beneath are some webpages really worth checking out[…]

  23. can you make money

    […]although web-sites we backlink to beneath are considerably not associated to ours, we really feel they may be truly really worth a go by, so have a look[…]

  24. waterproof vibrator

    […]although internet sites we backlink to beneath are considerably not related to ours, we feel they are essentially worth a go by, so possess a look[…]

  25. مه پاش

    Hey there, I believe your website might be obtaining browser compatibility concerns. When I seem at your site in Safari, it looks good but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a rapid heads up! Other the…

  26. فال

    Admiring the determination you place into your website and in depth info you offer you. It is awesome to arrive across a weblog each and every after in a whilst that isn’t the identical aged rehashed details. Great read! I have bookmarked your web site…

  27. Baby Playpen

    […]very few web sites that occur to become in depth beneath, from our point of view are undoubtedly very well really worth checking out[…]

  28. häst

    […]we came across a cool site that you just may possibly take pleasure in. Take a look when you want[…]

  29. marketing

    […]although web-sites we backlink to beneath are considerably not associated to ours, we really feel they are truly worth a go by way of, so possess a look[…]

  30. thrusting dildo

    […]that would be the end of this report. Right here you will uncover some internet sites that we feel you’ll appreciate, just click the hyperlinks over[…]

  31. Penis Pump

    […]very handful of web sites that happen to be in depth below, from our point of view are undoubtedly very well really worth checking out[…]

  32. Sex Swing

    […]just beneath, are numerous absolutely not related sites to ours, having said that, they may be surely worth going over[…]

  33. strapon bunny

    […]although internet sites we backlink to below are considerably not associated to ours, we feel they’re in fact worth a go by way of, so possess a look[…]

  34. Best Anal Vibrator

    […]we like to honor numerous other online sites on the net, even if they aren’t linked to us, by linking to them. Below are some webpages worth checking out[…]

  35. phones wholesale

    […]very handful of internet sites that come about to be detailed below, from our point of view are undoubtedly properly really worth checking out[…]

  36. نيك

    […]please stop by the web pages we comply with, including this one particular, because it represents our picks from the web[…]

  37. تحميل برنامج

    […]we prefer to honor many other internet web-sites around the web, even if they aren’t linked to us, by linking to them. Beneath are some webpages really worth checking out[…]

  38. adamandeve penis pump

    […]although internet sites we backlink to beneath are considerably not related to ours, we really feel they are really worth a go via, so possess a look[…]

  39. penis extension

    […]very few web sites that occur to become comprehensive below, from our point of view are undoubtedly effectively worth checking out[…]

  40. Fat Transfer Surgery

    […]we prefer to honor several other world wide web sites around the internet, even if they aren’t linked to us, by linking to them. Underneath are some webpages really worth checking out[…]

  41. Philly

    […]the time to study or pay a visit to the content material or internet sites we’ve linked to below the[…]

  42. سكس

    […]very handful of sites that come about to be comprehensive below, from our point of view are undoubtedly very well worth checking out[…]

  43. تبلیغ در گوگل ادوردز

    Do you have a spam problem on this website I also am a blogger, and I was seeking to know your scenario we have produced some great techniques and we are looking to swap strategies with other folks, be confident to shoot me an e mail if interested.

  44. escape room athina

    […]although internet sites we backlink to beneath are considerably not related to ours, we really feel they’re in fact really worth a go via, so have a look[…]

  45. Abraaj

    […]that may be the finish of this write-up. Right here you will uncover some websites that we believe you’ll appreciate, just click the links over[…]

  46. hualalai coffee beans

    […]although internet sites we backlink to beneath are considerably not associated to ours, we feel they are essentially really worth a go by way of, so have a look[…]

  47. Videography

    […]just beneath, are several totally not associated sites to ours, on the other hand, they’re certainly really worth going over[…]

  48. hummer hoverboard

    […]Wonderful story, reckoned we could combine a handful of unrelated data, nevertheless truly worth taking a appear, whoa did 1 learn about Mid East has got more problerms at the same time […]

  49. vpn ایفون

    I absolutely love your weblog and uncover a good deal of your post’s to be specifically I’m seeking for. Does one supply visitor writers to write articles available for you? I would not mind making a put up or elaborating on a few of the topics you cre…

  50. seo service

    […]that is the end of this write-up. Here you’ll come across some web-sites that we assume you’ll appreciate, just click the links over[…]

  51. Aluminum substrate supplier

    […]we prefer to honor several other world-wide-web web-sites around the web, even when they aren’t linked to us, by linking to them. Beneath are some webpages really worth checking out[…]

  52. mutual fund

    […]although internet websites we backlink to below are considerably not related to ours, we feel they may be really worth a go by means of, so possess a look[…]

  53. day trading

    […]Wonderful story, reckoned we could combine a few unrelated information, nonetheless genuinely really worth taking a appear, whoa did a single find out about Mid East has got extra problerms too […]

  54. Roof rack

    […]although websites we backlink to beneath are considerably not associated to ours, we feel they’re basically worth a go through, so have a look[…]

  55. Mentor

    […]we like to honor lots of other world wide web web sites around the net, even if they aren’t linked to us, by linking to them. Below are some webpages worth checking out[…]

  56. Free Shipping

    […]check beneath, are some absolutely unrelated internet websites to ours, on the other hand, they’re most trustworthy sources that we use[…]

  57. FS 19 mods

    […]just beneath, are quite a few absolutely not related web pages to ours, however, they are surely really worth going over[…]

  58. smm panel

    […]just beneath, are quite a few entirely not related sites to ours, on the other hand, they’re surely really worth going over[…]

  59. lollicock

    […]very handful of web-sites that happen to become detailed beneath, from our point of view are undoubtedly very well really worth checking out[…]

  60. cheap hotel

    […]Every after inside a though we opt for blogs that we read. Listed beneath are the most up-to-date websites that we pick […]

  61. mp3

    […]here are some links to internet sites that we link to since we assume they are really worth visiting[…]

  62. خرید طلا

    Thank you for some other fantastic post. The place else may just anyone get that type of information in these kinds of an ideal indicates of producing? I’ve a presentation subsequent week, and I am on the research for these kinds of data.

  63. rottweiler

    […]just beneath, are various absolutely not connected internet sites to ours, nevertheless, they’re surely worth going over[…]

  64. Interieur inspiratie

    […]Wonderful story, reckoned we could combine a handful of unrelated data, nonetheless truly really worth taking a appear, whoa did a single discover about Mid East has got much more problerms as well […]

  65. free chat

    […]check below, are some absolutely unrelated internet sites to ours, having said that, they are most trustworthy sources that we use[…]

  66. celine

    […]Wonderful story, reckoned we could combine a few unrelated data, nevertheless seriously really worth taking a appear, whoa did 1 master about Mid East has got extra problerms also […]

  67. my happy games

    […]that would be the finish of this article. Here you’ll obtain some sites that we believe you’ll value, just click the hyperlinks over[…]

  68. خرید کولر صنعتی

    Great way of describing, and fastidious post to get information concerning my presentation topic issue, which i am going to convey in faculty.

  69. handbags

    […]we prefer to honor many other internet web pages on the internet, even though they aren’t linked to us, by linking to them. Below are some webpages worth checking out[…]

  70. خرید طلا

    Hey! I know this is somewhat off topic but I was pondering which site system are you making use of for this site? I’m receiving unwell and tired of WordPress simply because I’ve had issues with hackers and I’m searching at options for one more system.…

  71. Saint Laurent

    […]that is the finish of this report. Here you will discover some web sites that we consider you’ll appreciate, just click the links over[…]

Comments are closed, but trackbacks and pingbacks are open.