Giter Club home page Giter Club logo

mpu6050-with-raspberry-pi-pico's Introduction

mpu6050-with-raspberry-PI-Pico

来源

原标题

  • 通过树莓派Pico和Micropython使用MPU6050的陀螺仪和加速度计

正文

开头

  • 在这个教程中,将为你展示如何使用树莓派PICO连接MPU6050以及使用micropython驱动mup6050
  • 陀螺仪和加速度计是现代智能手机的基本功能。他们对于无人机和自平衡车页至关重要。这两种传感器可以在一个芯片上:MPU6050。可以使用树莓派Pico通过I2C接口与它通信。

MPU6050工作原理

  • MPU-6050是微机电系统,一种能够将机械信号转换为电信号的小型设备。MPU6050具体包括3轴加速度计和3轴磁力计(内置于加速度计内)。加速度计测量给定运动的加速度(当其改变速度时,值将不同于0),而陀螺仪会测量物体的速度(当期运动时,其将不为零)。由此观之,MPU6050可以测量物体的运动,但是并不特别适合确定物体的绝对位置。出于这个目的,你需要通过辅助引脚为6050增加一个磁力计(本教程不讨论)。
  • MPU6050还包含一个温度计,能够给出环境温度。也包含一个数字运动处理器(DMP),它执行复杂的计算任务,并将数据发送到树莓派Pico为我们所使用
  • MPU6050有八个外部引脚
    • VCC 供电,支持3-5v
    • GND 连接地
    • SCL I2C 的时钟线
    • SDA I2C 的数据线
    • XCL 使能MPU6050的辅助设备
    • AD0 MPU6050地址选择
    • INT 中断 当数据可读是,向微控制器发出指示

理解 MPU6050的轴

  • 最后,使用陀螺仪和加速度计要考虑的一个关键点是关于轴。我们知道,每个传感器有三个轴,这些轴采用如下约定。
  • 陀螺仪Z轴测量垂直于板子所在的平面的轴旋转(逆时针为正)
  • 陀螺仪Y轴测量在板子所在的平面内且垂直于板子短边的轴旋转(逆时针为正)
  • 陀螺仪X轴测量在板子所在的平面内且垂直于板子长边的轴旋转(逆时针为正)

mpu6050-with-raspberry-pi-pico's People

Contributors

wangyan1916 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.