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. …

111 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[…]

Comments are closed, but trackbacks and pingbacks are open.