Simple Arduino Robot uses a MPU6050 to manage steering

  Рет қаралды 25,856

jmhrvy1947

jmhrvy1947

Күн бұрын

This vid describes adding an MPU-6050 [GY-521] to a simple Leonardo [Arduino] based robot. Like the previous video, this
build also includes the L298N H-Bridge, and a GP2D15 IR sensor. The MPU's DMP is used to reduce the load on the Leonardo

Пікірлер: 39
@TheKnurdLab
@TheKnurdLab 2 жыл бұрын
I was having a problem similar to what you mentioned, when I was using the MPU6050 in DMP mode with interrupt and at the same time driving motors with PWM. Turns out it was a problem with the libraries using the same timer (overlapping of timer usage), the interrupts etc and it was messing with the timings making the motors go beserk. Also the Gyro readings would not make sense sometimes. To be fair mine was a balancing robot though. If it helps, you may check if your problem is something similar perhaps.
@jmhrvy1947
@jmhrvy1947 2 жыл бұрын
Thanks for the comment. I'm betting others will appreciate it.
@FrankLopezx
@FrankLopezx 9 жыл бұрын
have you used the nRF24L01+ with this type of setup before?
@barneycarparts
@barneycarparts Жыл бұрын
Hmm I suspect the compass should be moved away from the motor like up on a pole also I have seen some header pins that were magnetic. Choose pins that are non magnetic.
@jesperkleemann1333
@jesperkleemann1333 8 жыл бұрын
And again one that dont share codes.
@SamuelGalbanFranco
@SamuelGalbanFranco 3 күн бұрын
mardito
@mustafaanlozturk937
@mustafaanlozturk937 3 жыл бұрын
Can you share the code please?
@danbemowski3014
@danbemowski3014 5 жыл бұрын
I know this posted video is old, but I am working on a project that could benefit from this code. Did this ever get posted online anywhere?
@jmhrvy1947
@jmhrvy1947 5 жыл бұрын
Thanks for your interest in this project. As for the sketch used here. about the best I can offer is see the code found at: github.com/jmharvey1/Arduino-BalanceBot It a later version of the project, and the sketch used there encapsulates pretty much all that was done here.
@chotsokheng9437
@chotsokheng9437 7 жыл бұрын
hello bro can u send me the code?/ i have problem with the sensor MPU6050
@derAaron
@derAaron 9 жыл бұрын
Hi, that looks like a great project. I'm actually working on a similar robot and am facing the problem with the mpu6050 when the motors are powered. Would you like to share the code with me to help me to get my robot runing instead of stopping randomly? Thank you very much!
@jmhrvy1947
@jmhrvy1947 9 жыл бұрын
I can send you the code for that version of the project in its entirety, but have to confess it contains a lot extraneous lines. However, if you're willing to look past that, then send me your E-mail address, and I'll send what I have. FWIW: Initially I too ran into issues reading the MPU while the motors were running. The two things that fixed it were 0.1MFD capacitors connected directly across the motor terminals, and in code, I would not process the MPU's dmp buffer unless the fifo count exactly matched the expected packet size. Remember I'm using the jrowberg/i2cdevlib found at github.com/jrowberg/i2cdevlib . If you're using another method to extract the DMP data then what I'm saying here may not apply.
@ChrisRiley
@ChrisRiley 8 жыл бұрын
Can you send me the code for this as well? brotherchris81@gmail.com
@sourabhkumawat4863
@sourabhkumawat4863 7 жыл бұрын
can u send me the code @ sbhharrykumawat@gmail.com
@sourabhkumawat4863
@sourabhkumawat4863 7 жыл бұрын
can u send me the code @ sbhharrykumawat@gmail.com
@lassemikkelsen3687
@lassemikkelsen3687 Жыл бұрын
You still have the code for that robot? can you share?
@jmhrvy1947
@jmhrvy1947 Жыл бұрын
No, I'm sorry. That code is long gone. Doubt that it would compile today, since most all the libraries it used have had many updates of their own. FWIW, the code used here formed the core, of the balance bot videos, that followed. That code is out there. But again, wouldn't bet on it compiling, without 1st having to do a number of "tweaks" to get it to work with today's libraries. Thanks for your interest in the project, and taking the time to ask the question.
@islamdib9663
@islamdib9663 4 жыл бұрын
the video show only the results, can we get ur code please ? and thank u
@jmhrvy1947
@jmhrvy1947 4 жыл бұрын
Thanks for your interest in this project. This was something I was working on six years ago. About the best I can offer today is: kzbin.info/www/bejne/iYekoK1qasytac0 That video was a successor to what is shown here. And as such has, at it's core, much of the same code. Check the description section of the later video ( "Arduino/MPU6050 Balance Bot Part2"). There you'll find a link to github and the code used in that video.
@AV_studios
@AV_studios Жыл бұрын
​@@jmhrvy1947 .
@urdu600
@urdu600 Жыл бұрын
no code share n public
Arduino/MPU6050 Balance Bot Part2
8:35
jmhrvy1947
Рет қаралды 111 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 50 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 56 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 21 МЛН
Gyro Straight
13:38
Modern Robotics Inc
Рет қаралды 8 М.
Arduino/MPU6050 Balance Bot
6:03
jmhrvy1947
Рет қаралды 39 М.
High precision speed reducer using rope
20:19
Aaed Musa
Рет қаралды 1,8 МЛН
Build an Electronic Level with MPU-6050 and Arduino
33:37
DroneBot Workshop
Рет қаралды 320 М.
Make ur robot drive straight
6:17
Out of the BOTS
Рет қаралды 15 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 50 МЛН