PiicoDev Motion Sensor MPU-6050 | Raspberry Pi Pico Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ค. 2021
  • Reading motion data is easy with a PiicoDev Motion Sensor. We can use this 6-axis Inertial Measurement Unit (IMU) to measure acceleration and angular velocity in three axes each. We'll wire them up and perform some experiments to understand how the axes work, and then measure some G-s!
    The full guide: core-electronics.com.au/guide...
    If you need help getting started with Thonny: core-electronics.com.au/tutor...
    If you have any questions about this content or want to share a project you're working on head over to our maker forum coreelec.io/forum
    Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
    • Raspberry Pi core-electronics.com.au/raspb...
    • Arduino core-electronics.com.au/ardui...
    • Sparkfun core-electronics.com.au/brand...
    • Adafruit core-electronics.com.au/brand...
    • Pololu core-electronics.com.au/brand...
    • DFRobot core-electronics.com.au/brand...
    The following trademarks are owned by Core Electronics Pty Ltd:
    "Core Electronics" and the Core Electronics logo
    "PiicoDev" and the PiicoDev logo
    "Glowbit" and the Glowbit logo

ความคิดเห็น • 28

  • @jyvben1520
    @jyvben1520 3 ปีที่แล้ว +1

    a very good explanation/demo, thanks

  • @giorgiolelmi8175
    @giorgiolelmi8175 7 หลายเดือนก่อน +1

    I just bought it after watching this video with a shipping price higher than the sensor itself 😂

  • @user-tx8om1kg1q
    @user-tx8om1kg1q 4 หลายเดือนก่อน

    I love this channel. Thanks!!!!

  • @karljansky9576
    @karljansky9576 ปีที่แล้ว

    Very nice, very clear demo. Is there another device that includes 3 axis plus magnetic compass, too? I also need only average angles over periods of a few seconds. We could average, but is there a better filter? Thanks for your efforts!

  • @TzOk
    @TzOk 2 ปีที่แล้ว

    Do you know any library, which would return the acceleration without the gravity component?

  • @susmitagoswami9928
    @susmitagoswami9928 ปีที่แล้ว

    Hey Hi. Nice tutorial. Can you please let me know how you are plotting? because I am trying to plot the raw sensor data of MPU6050 through Pico. Any hint related to plotting will be much helpful.

  • @zyroxiot9417
    @zyroxiot9417 ปีที่แล้ว

    Thanks, 🤝🏼🇧🇷

  • @dragonoha
    @dragonoha 2 ปีที่แล้ว +1

    Hi! Stumbled upon this nice tutorial while doing a small project while being a total newbie to electronics with a programming background. Is it possible to connect the raspberry pi pico directly to the motion sensor, without the expansion board? Cheers!

    • @Core-Electronics
      @Core-Electronics  2 ปีที่แล้ว +1

      You certainly can! We have a cable that will allow you to freestyle the connections; with a PiicoDev connector on one end and four female headers on the other. SKU: CE07958

  • @raisagorbachov
    @raisagorbachov 2 ปีที่แล้ว +2

    Very interesting. I want to use it for rotation with a model aircraft so that the aircraft can stay in level flight, climb and turn as required.

  • @fashiarif4687
    @fashiarif4687 ปีที่แล้ว

    can you do it with simple mpu 6050 please

  • @arunkarkare
    @arunkarkare 2 ปีที่แล้ว

    Hi. The video clip is very very nice and explains the acceleration and angular momentum clearly, however I am looking for a sensor to measure the absolute distance traveled in X, Y, Z direction. Is that possible with the 6050 (or any other) sensor please ?

    • @Core-Electronics
      @Core-Electronics  2 ปีที่แล้ว

      What you're referring to is "dead reckoning" which is really hard/expensive to do with an Inertial Measurement Unit. For example, military aircraft and ships often use a "laser gyro-compass" for this purpose - suffice to say that's a bit out of reach for most hobbyists.

    • @raisagorbachov
      @raisagorbachov 2 ปีที่แล้ว

      For that I would suggest adding a GPS sensor. Either that or using standard velocity in the calculation.

  • @chirots
    @chirots 2 ปีที่แล้ว

    Where did you get these number
    # Pre-defined ranges
    _ACC_RNG_2G = 0x00
    _ACC_RNG_4G = 0x08
    _ACC_RNG_8G = 0x10
    _ACC_RNG_16G = 0x18
    _GYR_RNG_250DEG = 0x00
    _GYR_RNG_500DEG = 0x08
    _GYR_RNG_1000DEG = 0x10
    _GYR_RNG_2000DEG = 0x18

  • @dafelix
    @dafelix 2 ปีที่แล้ว

    So my idea is to use this as a head tracker for PC games. How can I do it? You really should make a tutorial on it, it will get millions of views.

  • @John-cc6zb
    @John-cc6zb 2 ปีที่แล้ว

    How do I use these raw data to calculate the tilt angle?

    • @Core-Electronics
      @Core-Electronics  2 ปีที่แล้ว +1

      There's a new read_angle() function documented here: github.com/CoreElectronics/CE-PiicoDev-MPU6050-MicroPython-Module
      If you need to read angle in more than one axis, we can help out on our forums: forum.core-electronics.com.au/

  • @user-jq7uz2ot6z
    @user-jq7uz2ot6z ปีที่แล้ว

    Can't find where an I2C channel was selected !?

    • @Core-Electronics
      @Core-Electronics  ปีที่แล้ว

      The Pins (SDA:8, SCL:9)are predefined when using a Pico. Check the github for documentation if you want to select the pins explicitly.

    • @user-jq7uz2ot6z
      @user-jq7uz2ot6z ปีที่แล้ว +1

      @@Core-Electronics 👍 Thanks.

  • @ashutoshrevankar5564
    @ashutoshrevankar5564 ปีที่แล้ว

    The full guide link is not working

    • @Core-Electronics
      @Core-Electronics  ปีที่แล้ว

      Try this!
      core-electronics.com.au/guides/piicodev-motion-sensor-mpu-6050-raspberry-pi-pico-guide/

  • @ifsixwasnine0
    @ifsixwasnine0 2 ปีที่แล้ว

    can i make a steering wheel out of this?

    • @Core-Electronics
      @Core-Electronics  2 ปีที่แล้ว

      You could definitely build a motion controlled steering wheel similar to other accelerometer based controllers like the Wii or Switch, not sure of it's efficacy on the road though. 😅 Would love to see it if you build one.

  • @safakfahrac1524
    @safakfahrac1524 2 ปีที่แล้ว

    hi, i ran your codes and i faced such a problem;
    Traceback (most recent call last):
    File "", line 5, in
    File "PiicoDev_MPU6050.py", line 80, in __init__
    File "PiicoDev_MPU6050.py", line 125, in get_accel_range
    OSError: [Errno 5] EIO
    What do you think is the problem?

    • @Core-Electronics
      @Core-Electronics  2 ปีที่แล้ว

      Hi! We handle tech support over at forum.core-electronics.com.au/ - Head over and open a thread, some pictures will help troubleshooting too!