Digi-key logo
scheme-it logo
Home
Design
BOM
注销 我的帐户
新增功能 DigiKey 技术论坛 键盘快捷键 联系我们页面 帮助页面 反馈
Scheme-it 设置
自动保存
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.

全文阅读
打开设计

合并产品

图像
制造商零件编号
描述
数量
查看详细信息
1
ATMEGA168A-PU
IC MCU 8BIT 16KB FLASH 28DIP
1
查看详细信息
2
FXLN8361QR1
Xtrinsic Accelerometer, Analog, 1.71-3.6V, XYZ, 2/8g, low bandwidth, QFN 12, Reel
1
查看详细信息
3
LTST-C191KGKT
LED GREEN CLEAR 0603 SMD
6
查看详细信息
4
CF14JT56R0
RES 56 OHM 1/4W 5% CARBON FILM
6
查看详细信息
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

关于此原理图

创建人
User 1155796
最近更新
2023-03-29 11:11
新增功能
您将要删除项目

请在下方框中输入 'DELETE'(无引号),以确认进行删除操作。

  • 引言
  • 教程视频
  • 主页
  • 修订版
  • 符号编辑器
  • KiCad 导出(测试版)
  • 收藏符号
  • 线网
  • 保存/打开/删除项目
  • 自动保存和历史记录
  • 放置符号
  • 线路符号
  • 添加/编辑文字
  • 数学框
  • 共享和导出
  • BOM 管理器
  • Digi-Key 目录
  • 常见问题解答
Title