Digi-key logo
scheme-it logo
Home
Design
BOM
Logout My Account
What’s New Digi-Key Tech Forum Keyboard Shortcuts Contact Us Page Help Page Feedback
Scheme-it settings
Auto save
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.

Read more
Open Design

Incorporated Products

IMAGE
MANUFACTURER PART NUMBER
DESCRIPTION
QUANTITY
VIEW DETAILS
1
ATMEGA168A-PU
IC MCU 8BIT 16KB FLASH 28DIP
1
View Details
2
FXLN8361QR1
Xtrinsic Accelerometer, Analog, 1.71-3.6V, XYZ, 2/8g, low bandwidth, QFN 12, Reel
1
View Details
3
LTST-C191KGKT
LED GREEN CLEAR 0603 SMD
6
View Details
4
CF14JT56R0
RES 56 OHM 1/4W 5% CARBON FILM
6
View Details
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

About this Schematic

Created By
User 1155796
Last Updated
2023-03-29 11:11
What’s New
You are about to delete project

Please type 'DELETE' (without quotes) to the below box to confirm the deletion:

  • Introduction
  • Tutorial Videos
  • Homepage
  • Revision
  • Symbol Editor
  • KiCad Export(beta)
  • Favorite symbols
  • Net
  • Save/Open/Delete Projects
  • Autosave and History
  • Placing Symbols
  • Wiring Symbols
  • Adding/Editing Text
  • Math box
  • Share and Export
  • BOM Manager
  • Digi-Key Catalog
  • FAQ
Title