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

  Рет қаралды 12,359

Metalmancy (Micronote)

Metalmancy (Micronote)

4 жыл бұрын

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 Жыл бұрын
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 5 ай бұрын
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 жыл бұрын
Excellent video! Fast paced, and no fluff!
@raymondliu1444
@raymondliu1444 3 жыл бұрын
This video helped a lot!!! Thank you so much for making this sir!
@clarkhtse
@clarkhtse 2 жыл бұрын
wow, that' really helpful for beginners ! thanks
@angelo_pavan
@angelo_pavan 3 жыл бұрын
Awesome!! Thank you very much!
@abrahamtiradorico1697
@abrahamtiradorico1697 Жыл бұрын
Awesome video, thank you
@Steveshp1
@Steveshp1 2 жыл бұрын
It is really help me. Thank you powerful instruction.
@davidmarks509
@davidmarks509 2 жыл бұрын
Great tutorial TY very much
@stevegables3303
@stevegables3303 3 жыл бұрын
Clear, concise and well edited! Thank you for your time, sir!
@metalmancytech
@metalmancytech 3 жыл бұрын
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
@vaibhavkhurana215
@vaibhavkhurana215 3 жыл бұрын
Thanks a lot !!!
@raguaviva
@raguaviva 4 жыл бұрын
You are good! here is my like!
@metalmancytech
@metalmancytech 4 жыл бұрын
Thanks! I'm glad you liked it!
@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 жыл бұрын
Nice
@horacewonghy
@horacewonghy 2 жыл бұрын
esp32 works as well (i use Hardware I2C bus, scl: pin 18 & sda: pin19)
@metalmancytech
@metalmancytech 3 жыл бұрын
Special thanks to Kevin Thomas who wrote a MicroPython driver class for the MPU6050! Check it out here: github.com/mytechnotalent/MicroPython_MPU6050
@ico-theredstonesurgeon4380
@ico-theredstonesurgeon4380 3 жыл бұрын
link seems to be broken... do you have an updated one?
@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
@bdfy8349
@bdfy8349 3 жыл бұрын
Спасибо, мужик, очень помогли твои видео. Привет из России!
@mytechnotalent
@mytechnotalent 3 жыл бұрын
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 жыл бұрын
@@metalmancytech no worries I have learned alot and will try to make a class library from this foundation.
@mytechnotalent
@mytechnotalent 3 жыл бұрын
@@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 жыл бұрын
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.
@mobachali
@mobachali 4 жыл бұрын
Hi, I got stuck with my esp32wroomdevkit1 . Have issues importing i2c. Any clue? Cheers
@metalmancytech
@metalmancytech 4 жыл бұрын
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 4 жыл бұрын
@@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
Programming a NodeMCU with MicroPython: I2C Bus Part 2 (SSD1306 OLED Display)
7:42
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 65 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 11 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 5 МЛН
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 556 М.
Raspberry Pi Pico & SSD1306 Display with MicroPython
1:00:51
Kevin McAleer
Рет қаралды 9 М.
Build an Electronic Level with MPU-6050 and Arduino
33:37
DroneBot Workshop
Рет қаралды 314 М.
Passive infrared motion sensors: a two-bit camera powered by crystals
16:13
Technology Connections
Рет қаралды 274 М.
Writing fast and efficient MicroPython
31:42
PyCon AU
Рет қаралды 67 М.
ESP32 MicroPython OLED Tutorial with ADC & FTP
18:05
rdagger68
Рет қаралды 25 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 438 М.
Самый тонкий смартфон в мире!
0:55
Не шарю!
Рет қаралды 167 М.
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 757 М.