Тёмный
No video :(

How to Connect MPU6050 to ESP32: Physical Setup and Code 

Shilleh
Подписаться 3,9 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@chrisckinfos54
@chrisckinfos54 4 месяца назад
sorry for a possible stupid question but i am currently learning to use the esp32 and such electronics. i see all projects power the esp32 trhough the usb. i have an esp32 with mpu6050 connected at the 3v3 power pin. i need to power all it with a 18650 battery. where do i coonect the power of the battery in esp32if the 3v3 pin is taken fro mthe mpu6050?
@mmshilleh
@mmshilleh 4 месяца назад
Hey, great question and it's not stupid at all! When using an 18650 battery to power your ESP32 and MPU6050 setup, you’ll need to consider a few things. Since the 3.3V pin on the ESP32 is already occupied by the MPU6050, you can power the ESP32 using a battery through the 'VIN' pin (also labeled as '5V' on some boards). The 18650 battery outputs around 3.7V, which might not be sufficient for the VIN pin, as the ESP32 generally needs around 5V when powered through VIN. You could use a boost converter to step up the 3.7V from the 18650 to a stable 5V. Connect the output of the boost converter to the VIN pin of the ESP32, and make sure your ground connections are also shared among the ESP32, MPU6050, and the battery. This setup should ensure that both your ESP32 and MPU6050 have the power they need to operate effectively. Make sure to check the current requirements and ensure your power supply can handle the load. Safety first, so double-check all connections and consider adding a fuse and protection circuit for the lithium battery. Hope this helps and happy tinkering!
@chrisckinfos54
@chrisckinfos54 4 месяца назад
@@mmshilleh thank you for the extended information. i already ordered some converters. i appreciate your help.
@nkbdl
@nkbdl Месяц назад
Thank you for the vid I tried but it is returning the 6 readings as 0.00. For temperature there is a value 16:56:29.096 -> Acceleration X: 0.00, Y: 0.00, Z: 0.00 m/s^2 16:56:29.096 -> Rotation X: 0.00, Y: 0.00, Z: 0.00 rad/s 16:56:29.096 -> Temperature: 36.53 degC It might be silly but any pointers will be appreciated! Thank you!
@mmshilleh
@mmshilleh Месяц назад
Weird, try another controller for a sanity check I would say. Could be a bad MPU.
@nkbdl
@nkbdl Месяц назад
@@mmshilleh ok you are right. The one I got is broken. I changed another one and it works.
@kuba3570
@kuba3570 2 месяца назад
Hey thanks for the Tutorial! I have to mention that physical connection didnt work for me. Had to connect SCL to D22 and SDA to D21 als Gnd to GND and VCC to 3.3 V. Also I have question, i want to work with two ESP32s and to two MPU6050s simultaneously and send the data via Wifi to the Ard IDE, do you think thats possible?
@mmshilleh
@mmshilleh 2 месяца назад
hmmmm why the IDE? Idk if that is possible but in my experience anything is! You can send data over wifi easily but idk if I would use the IDE to receive it. I would send it to an MQTT channel first and write a script to harvest the respective channels. Shouldnt be too bad. Goodluck, hope you can subscribe my friend
@pooriabaghjery6596
@pooriabaghjery6596 3 месяца назад
Hello bro I watched this video this is perfect to me I student in university My major is controll engineering My project is Robotic arm with remote hand movement.with esp32 and mpu6050 and 4 servos Can you help me ???
@mmshilleh
@mmshilleh 3 месяца назад
I can help but for these types of requests, you would have to book a consulting slot on my buymecoffee link for a fixed price. Let me know if that interests you
@HamdanHasan1
@HamdanHasan1 3 месяца назад
Please make it wireless, with two esp32, so we can control servo with mpu6050 worelessly
@mmshilleh
@mmshilleh 3 месяца назад
Not sure what you mean my friend
@tanmeowsoon5252
@tanmeowsoon5252 10 месяцев назад
Hi sir Good day i want to learn this stuff from you can you share with me how you did it step by step it is very interesting, stuff you did . Many Thanks, Tan Meow Soon
@mmshilleh
@mmshilleh 10 месяцев назад
I am happy you enjoyed it do not forget to subscribe! :)
@shriraamsj167
@shriraamsj167 5 месяцев назад
Hi, this is really a nice video. I am having a bit of trouble making esp32 connect. Every time, I upload code to it, it shows different fatal error every time(I use matchbook air M1), however, I find Arduino boards to be working perfectly well. Did you face this issue at any point while working on this? If so, mind providing ways to resolve?
@mmshilleh
@mmshilleh 5 месяцев назад
Hmmm cant say I have had this error mate! Sorry
@shriraamsj167
@shriraamsj167 5 месяцев назад
@@mmshilleh I get it. So did you resolve it eventually?
@alenninan5524
@alenninan5524 4 месяца назад
Hi i am using esp32 C3 M1 dev kit . DSo you know how i could connect it with mpu6050 pin ?
@mmshilleh
@mmshilleh 4 месяца назад
Not sure youd have to read the pin diagram for the controller
@alenninan5524
@alenninan5524 4 месяца назад
@@mmshilleh i checked it but i m confused on how to connect scl and sda to esp32 c3 mini 1. Which pin would be preferred to connect to mpu6050 ? In your case can you tell me by stating the function of the pin. Let me check where i could connect it
@utsabgiri4129
@utsabgiri4129 6 месяцев назад
Hello! Thank you so much for this video, but when I upload the program onto the esp, on the out[ut screen, it just shows "leaving..." and "Hard resetting via RTS pin". I checked the baud and switched the other thing to "No line ending". How do I get the data?
@mmshilleh
@mmshilleh 6 месяцев назад
Sometimes, the wrong baud rate or serial communication setting can lead to unreadable output. Confirm that the baud rate in your Serial Monitor matches the baud rate set in your code (commonly 9600 or 115200). Since you've already tried switching to "No line ending", you might also want to experiment with other settings like "Newline" or "Both NL & CR" to see if that changes the output.
@utsabgiri4129
@utsabgiri4129 6 месяцев назад
@@mmshilleh turns out I used the wrong board name, thanks for the video bro it really helped !
@mmshilleh
@mmshilleh 6 месяцев назад
Anytime hope you can sub! @@utsabgiri4129
@jaumio
@jaumio 10 месяцев назад
hello everything is fine? great explanation! I compiled the program but on my serial monitor it appears Failed to find MPU6050 chip, could you explain to me why? I'm also using a different esp32 model, it has the 2102 chip and has 38 pins in different positions
@mmshilleh
@mmshilleh 10 месяцев назад
Hey man sorry to hear, it is either two things. The MPU6050 you are using is flawed or you configured it incorrectly with the board. I believe that board uses a different pin format than the ESP32 I use in the video and a quick Google search shows that. Have you used that board before?
@jaumio
@jaumio 10 месяцев назад
@@mmshilleh First time using the sensor! I bought it and went straight to testing :( I'll try to buy another one to test again
@mmshilleh
@mmshilleh 10 месяцев назад
@@jaumio did you look at the pin diagram?
@jaumio
@jaumio 10 месяцев назад
Yes, I looked, my ESP can compile, the sensor LED lights up but the fault in question appears on the serial monitor@@mmshilleh
Далее
Я ДОСТРОИЛ ЗАВОД - Satisfactory
19:13
Просмотров 162 тыс.
Build an Electronic Level with MPU-6050 and Arduino
33:37
Arduino To ESP32: How to Get Started!
9:26
Просмотров 300 тыс.
NVIDIA Needs to STOP
11:35
Просмотров 1,2 млн
14 | Measure angles with the MPU6050 accelerometer
13:03
Using the ESP32 DAC - Voltages, Waveforms & Sounds
34:46