Digi-key logo
scheme-it logo
Home
Design
BOM
Abmelden Mein Konto
Aktuelle Informationen Digi-Key TechForum Tastenkürzel Kontaktseite Hilfeseite Feedback
Einstellungen für Scheme-it
Automatisch speichern
Scheme-it
Interfacing an Accelerometer with an AVR microcontroller
Interfacing an Accelerometer with an AVR microcontroller

Interfacing an Accelerometer with an AVR microcontroller

The project implements a microcontroller, which is powered at 3V from two AA batteries. The 3V power supply is also used as the reference input for the analog to digital conversion. A 6-pin ISP header is added on the circuit, necessary for programming the microcontroller through a standard ISP interface such as the USBtinyISP. Three wire jumpers are used to connect pins 20-22 of the microcontroller to power/power/ground. There are twelve pins on the FXLN8361QR1; five will be used for this design. The pins VDD and GND2 are connected to power and ground respectively, and pins XOUT, YOUT, and ZOUT for analog outputs. The analog output pins from the accelerometer are connected to the analog input pins 26-28 of the microcontroller. Having done so, L1-L6 output LEDs are added to indicate the acceleration values as the AVR reads them out. The big idea is that when there is no acceleration in the X-axis direction, both X-axis LEDs are off. When it detects acceleration one way, the red LED lights up (and brighter, the higher the acceleration is) and it lights up blue for acceleration in the opposite direction. Naturally, the other two axes work the same way.

Typical applications of FXLN8361QR1 include tamper detection, motion sensing in robotics integration and activity monitoring in sports and medical devices. This 3-axis accelerometer is widely used in modern devices such as automatic screen orientation changing in mobile phones. And those homebrew robots will be able to tell how far it's been, which way it's facing, or which way is up.

Mehr Details
Design öffnen

Verwendete Produkte

BILD
HERSTELLER-TEILENUMMER
BESCHREIBUNG
ANZAHL
DETAILS ANZEIGEN
1
ATMEGA168A-PU
IC MCU 8BIT 16KB FLASH 28DIP
1
Details anzeigen
2
FXLN8361QR1
Xtrinsic Accelerometer, Analog, 1.71-3.6V, XYZ, 2/8g, low bandwidth, QFN 12, Reel
1
Details anzeigen
3
LTST-C191KGKT
LED GREEN CLEAR 0603 SMD
6
Details anzeigen
4
CF14JT56R0
RES 56 OHM 1/4W 5% CARBON FILM
6
Details anzeigen
ATMEGA168A-PU
IC MCU 8BIT 16KB FLASH 28DIP
Quantity: 1
View Details
FXLN8361QR1
Xtrinsic Accelerometer, Analog, 1.71-3.6V, XYZ, 2/8g, low bandwidth, QFN 12, Reel
Quantity: 1
View Details
LTST-C191KGKT
LED GREEN CLEAR 0603 SMD
Quantity: 6
View Details
CF14JT56R0
RES 56 OHM 1/4W 5% CARBON FILM
Quantity: 6
View Details

Über diesen Schaltplan

Erstellt von
User 1155796
Zuletzt aktualisiert
2023-03-29 11:11
Aktuelle Informationen
Sie sind im Begriff, das folgende Projekt zu löschen:

Bitte geben Sie „DELETE“ (ohne Anführungszeichen) in das unten stehende Feld ein, um die Löschung zu bestätigen:

  • Einführung
  • Videoanleitungen
  • Homepage
  • Revision
  • Symboleditor
  • KiCad-Export (Beta)
  • Symbolfavoriten
  • Netz
  • Speichern/Öffnen/Löschen von Projekten
  • Automatisches Speichern und Historie
  • Symbole platzieren
  • Verdrahtung von Symbolen
  • Hinzufügen/Bearbeiten von Text
  • Mathematik
  • Teilen und exportieren
  • BOM Manager
  • Katalog von Digi-Key
  • Häufig gestellte Fragen
Title