Programming a NodeMCU with MicroPython: I2C Bus Part 1 (MPU6050 IMU)

Поделиться
HTML-код
  • Опубликовано: 26 июл 2020
  • Learn how to use the I2C Bus with MicroPython on an ESP8266 NodeMCU microcontroller. This is part one which covers using the datasheets to get temperature, gyroscope, and acceleration data from the MPU6050 IMU. This part also covers using the INT pin.
    MPU-6000 and MPU-6050 Product Specification Revision 3.4: invensense.tdk.com/wp-content...
    MPU-6000 and MPU-6050 Register Map and Descriptions Revision 4.2: invensense.tdk.com/wp-content...
    Article: micronote.tech/2020/07/I2C-Bu...
    Get the Atlas kit: micronote.tech/atlas/
    Social:
    Follow Micronote: / micro_note
    Follow me: / carlosupina
  • НаукаНаука

Комментарии • 41

  • @jimhein9689
    @jimhein9689 Год назад +3

    This was a great tutorial. The comments rightfully speak accolades. I was able to follow along without having to keep going back and the code worked perfectly. I was able to adjust the code to work with a Raspberry Pi Pico. Thank you. I look forward to more lessons from you.

  • @VINICIUSBH100
    @VINICIUSBH100 4 месяца назад

    uauuuuu that was a very nice tutorial, thank very much !!!!! It was a big big help for me.... best regards from Brazil

  • @davidjohnston5329
    @davidjohnston5329 3 года назад +4

    Excellent video! Fast paced, and no fluff!

  • @raymondliu1444
    @raymondliu1444 3 года назад +2

    This video helped a lot!!! Thank you so much for making this sir!

  • @clarkhtse
    @clarkhtse 2 года назад +2

    wow, that' really helpful for beginners ! thanks

  • @abrahamtiradorico1697
    @abrahamtiradorico1697 Год назад

    Awesome video, thank you

  • @stevegables3303
    @stevegables3303 3 года назад +4

    Clear, concise and well edited! Thank you for your time, sir!

    • @metalmancytech
      @metalmancytech  3 года назад +1

      Thank you! I'm glad to be helpful 👍

    • @jimmybryant7942
      @jimmybryant7942 2 года назад

      i know it is quite off topic but does anybody know of a good site to watch new tv shows online?

    • @ansonemmitt4404
      @ansonemmitt4404 2 года назад

      @Jimmy Bryant Flixportal =)

    • @jimmybryant7942
      @jimmybryant7942 2 года назад

      @Anson Emmitt Thank you, I went there and it seems like they got a lot of movies there =) Appreciate it !

    • @ansonemmitt4404
      @ansonemmitt4404 2 года назад

      @Jimmy Bryant happy to help xD

  • @angelo_pavan
    @angelo_pavan 3 года назад +1

    Awesome!! Thank you very much!

  • @davidmarks509
    @davidmarks509 2 года назад

    Great tutorial TY very much

  • @Steveshp1
    @Steveshp1 2 года назад +1

    It is really help me. Thank you powerful instruction.

  • @raguaviva
    @raguaviva 4 года назад +2

    You are good! here is my like!

  • @vaibhavkhurana215
    @vaibhavkhurana215 3 года назад +2

    Thanks a lot !!!

  • @shivadasarad
    @shivadasarad 3 года назад

    thank u very much I learn soo much from this vedio

  • @kenwallace6493
    @kenwallace6493 3 года назад

    This is great for learning Micropython. I assume very similar code would work on the pyboard and the new Pi Pico.

  • @Noahakavalkrie
    @Noahakavalkrie 3 года назад +1

    Nice

  • @horacewonghy
    @horacewonghy 2 года назад +1

    esp32 works as well (i use Hardware I2C bus, scl: pin 18 & sda: pin19)

  • @metalmancytech
    @metalmancytech  3 года назад +2

    Special thanks to Kevin Thomas who wrote a MicroPython driver class for the MPU6050! Check it out here: github.com/mytechnotalent/MicroPython_MPU6050

  • @bdfy8349
    @bdfy8349 3 года назад +1

    Спасибо, мужик, очень помогли твои видео. Привет из России!

  • @mytechnotalent
    @mytechnotalent 3 года назад +1

    Love your tutorials. 2 questions. Why not create the device drivers as classes? Second question would you be open to creating a tutorial for the APDS-9960 with a detailed breakdown of how to custom create the Gesture Dectection, Color Sense and Gesture sensing? This would really solidify people who would like to contribute to the MicroPython community to write device drivers as there are literally NONE out there other than the work you have done.

    • @metalmancytech
      @metalmancytech  3 года назад

      Thank you for the feedback!
      I haven't made the device drivers as classes simply because the structure of my guides is to build an understanding of the concepts, not necessarily to optimize usage. However, I think that creating device drivers using classes is a good idea that I will definitely consider for my future guides.
      It's funny that you mention the APDS-9960. I was very close to using this sensor instead of the MPU6050, but I settled on the IMU because, in my opinion, it is more straightforward and easy to understand. I probably will make a video featuring the APDS-9960 soon.
      Your feedback has given me some new ideas. I really appreciate you taking the time to leave a thoughtful comment.

    • @mytechnotalent
      @mytechnotalent 3 года назад +1

      @@metalmancytech no worries I have learned alot and will try to make a class library from this foundation.

    • @mytechnotalent
      @mytechnotalent 3 года назад +1

      @@metalmancytech again I want to emphasize how valuable this tutorial has been to me to help me get started with device driver development.

    • @mytechnotalent
      @mytechnotalent 3 года назад +1

      I just tweeted the new lib I created and put a special thanks at the bottom of the repo linking to your tutorials so others can learn from you. Thank you again. github.com/mytechnotalent/MicroPython_MPU6050

    • @metalmancytech
      @metalmancytech  3 года назад

      @@mytechnotalent I saw that! I think I'll link to your repo and credit you at the end of the article for doing this.

  • @user-yh4ge8qw8d
    @user-yh4ge8qw8d 3 года назад

    Hi,can I use int.from_bytes function? Read 2 bytes then change bytes into int with int.from_bytes

  • @jayare7750
    @jayare7750 2 года назад

    I’m guessing that a D1 Mini would work just the same since it’s the same ESP8266 chip, right?

  • @agnisri1201
    @agnisri1201 9 месяцев назад

    How to read H and L in single request is that accurate? I am wondering how to make this place explain

  • @mobachali
    @mobachali 3 года назад +1

    Hi, I got stuck with my esp32wroomdevkit1 . Have issues importing i2c. Any clue? Cheers

    • @metalmancytech
      @metalmancytech  3 года назад

      I just got out my ESP-WROOM-32 and made sure it was flashed with the latest version of MicroPython (1.12) and tried importing I2C from machine and had no problem. I will just say to make sure that "I2C" is capitalized. Below is the exact import statement I made:
      from machine import I2C
      Feel free to reply here if you have more details on the problem or it still isn't working.

    • @mobachali
      @mobachali 3 года назад

      @@metalmancytech that's works great now.
      thanks for for the detailed videos. it helped me better than any other to understand every step of the process