Another Arduino project - Your Arduino Balancing Robot (YABR) - Part 1

Ғылым және технология

In this video I build an Arduino balancing robot. The code that I use is self-written and is available from my website. A detailed built tutorial, drawings for the frame and electrical schematics can also be downloaded from my website:
www.brokking.net/yabr_main.html
If you have any questions please check the Q&A page first:
www.brokking.net/yabr_qanda.html
The code is explained in detail in the following videos:
Part 2: • Another Arduino projec...
Part 3: • Arduino project - Your...

Пікірлер: 815

  • @markgreco1962
    @markgreco19627 жыл бұрын

    When you click on the motor to view the item it takes you to a 42mm stepper motor. Should it be a 35mm Is this wrong on your site??

  • @Joop_Brokking

    @Joop_Brokking

    7 жыл бұрын

    Thank you for your comment. I checked the link and you are right, it's the wrong link. I corrected the link on my website and it has the correct link now. Thanks again!

  • @osmanozutemiz1366

    @osmanozutemiz1366

    7 жыл бұрын

    Mark Greco do not place lipo on top, noob . lipo is heavier part in this project. it should be in bottom

  • @markgreco1962

    @markgreco1962

    7 жыл бұрын

    osman özütemiz I will build it exactly as Joop has done the project It is important for the battery to be on top for inertia

  • @Joop_Brokking

    @Joop_Brokking

    7 жыл бұрын

    Osman, did you even watched the video? You need some inertia on the higher part of the robot to get it to work. Check this video on how to balance a stick on you finger: kzread.info/dash/bejne/np-TstmuZ9HMYbg.html

  • @osmanozutemiz1366

    @osmanozutemiz1366

    7 жыл бұрын

    Joop Brokking no, i dont know english im using translste

  • @sergiocastellani9823
    @sergiocastellani98237 жыл бұрын

    Joop i still didn't see in the net anybody with such complete and accurate informations/instructions as you. I deeply appreciate your effort and above all your passion. Many should learn from you.

  • @nikkon27

    @nikkon27

    7 жыл бұрын

    I also want to say the thorough information you provide is great! The bringup steps, checking for overcurrent, etc, are particularly good. These steps are important for any project but almost never discussed. Many folks that view this tutorial, even if they don't build the robot, will learn important concepts they can use on future projects.

  • @VietNguyen-rf1ov

    @VietNguyen-rf1ov

    5 жыл бұрын

    Hà Nội của em

  • @Da_Black_Man
    @Da_Black_Man7 жыл бұрын

    this is one of the first videos I actually see good wire management on the project

  • @ottokueng4236
    @ottokueng42367 жыл бұрын

    Thank you Joop, never seen such a perfect tutorial. The language clear to understand, no music, and all details to download. I just ordered the material and will try to reproduce this Robot. I'm shure, I will learn a lot. I can't understand those who gave a thumb dawn. Kind regards Otto

  • @Joop_Brokking

    @Joop_Brokking

    6 жыл бұрын

    Thank you for writing me this comment. I really appreciate it!

  • @hikotee
    @hikotee7 жыл бұрын

    I had nothing to do with the project but the description and commentary is so nicely done, it's just perfect!!!

  • @tiendatnguyen7983
    @tiendatnguyen79834 жыл бұрын

    i havent seen the next ep2 and ep3 videos, but i must say that your code and how you express your intruction in this ep1 is very very clear to understand, thank you for that

  • @Dronebotworkshop
    @Dronebotworkshop7 жыл бұрын

    Excellent design and a great video!

  • @AndreasAndrik0s
    @AndreasAndrik0s7 жыл бұрын

    Your work is inspiring, accompanied by your descriptions!

  • @williamna5800
    @williamna58007 жыл бұрын

    Any time I see a video from you I know its going to be interesting as well as educational. I enjoy the simple, complete and interesting way you present your video info. (for anyone who does not understand the concepts/idea of a balance bot and how it works using an accel/gyro look back in Joop Brokking's videos for compete simple to understand videos, using his DIY arduino quadcopter as the platform)

  • @BenCzech
    @BenCzech7 жыл бұрын

    Found this video from adafruit. You've got my subscription. Cant wait to check out the rest of your videos!

  • @neilmcnaught995
    @neilmcnaught9955 жыл бұрын

    Bit late to the party. Just made this Robot and must say what a well laid out and explained tutorial. I used 3D printed versions of the wooden bits. Had a bit of a problem with electromagnetic interference but tidying up the wiring and a couple of ferrite cores on the motor wires solved it.

  • @120ohm
    @120ohm4 жыл бұрын

    Thanks for the great tutorial! So concise, like a Swiss watch!

  • @gnomes8613
    @gnomes86137 жыл бұрын

    Thanks so much! I've been looking for such a tutorial for such a long time!

  • @BernhardHofmann
    @BernhardHofmann7 жыл бұрын

    Excellent video yet again, thank you so much! ☺

  • @MikeysLab
    @MikeysLab5 жыл бұрын

    Thank you for the inspiration, think I will build something like this for my April project!

  • @SmasherOffiziell
    @SmasherOffiziell7 жыл бұрын

    This is great! Greetings from Germany!

  • @diyhouse
    @diyhouse7 жыл бұрын

    A nice little project to play with,.. clearly explained ( unlike many ),.. with the potential pitfalls of what to look for,.. a definite thumbs up

  • @7AppleFan7
    @7AppleFan75 жыл бұрын

    Great stuff I enjoyed your projects. Appreciate your effort. Its world class engineering.

  • @cigp
    @cigp7 жыл бұрын

    there is nothing better than knowledge explained such that anyone can enjoy it

  • @tetradb_
    @tetradb_7 жыл бұрын

    2 seconds in, I already know this is going to be awesome! 👍 :)

  • @mohammedworld3755
    @mohammedworld37555 жыл бұрын

    i have to say thank you for your amazing work i built this robot and worked perfectly thanks

  • @ranulfo102
    @ranulfo1027 жыл бұрын

    AMIGO VOCÊ ALÉM DE GÊNIO, É UM SHOW. VALEU POR COMPARTILHAR UM PROJETO COMO ESSE...PARABÉNS.

  • @jimmykan7873
    @jimmykan78737 жыл бұрын

    Very cool project. Thanks for sharing your work!

  • @DevineIshaq107
    @DevineIshaq1077 жыл бұрын

    Very comprehensive , Thanks for teaching this subject , Nice presentation

  • @ah-ray
    @ah-ray7 жыл бұрын

    Awesome! I'm working on exactly the same project! I'm using 12V steppers and an adafruit motorshield V2.3 to control them and an mpu6050. When I started the project I just chose stepper motors because I thought they looked cooler haha

  • @nomanmalik5215
    @nomanmalik52154 жыл бұрын

    Thanks for such nice and comprehensive tutorial Joop :)

  • @ausprobierendannweisstdues8686
    @ausprobierendannweisstdues86866 жыл бұрын

    Respect man, very nice project!

  • @ananthmuppidi7629
    @ananthmuppidi76296 жыл бұрын

    Very well done. Excellent craftsmanship . I love your videos. Keep making more!!!! I subscribed :)

  • @cryppsomar8771
    @cryppsomar87716 жыл бұрын

    Excellent !!! Thank You for sharing your Knowledge !!!

  • @danieldare2640
    @danieldare26407 жыл бұрын

    You are an awesomely inspirational person thank you for your videos

  • @maskman4821
    @maskman48216 жыл бұрын

    awesome project and thanks for the explanations and detailed info , data etc.

  • @ajaybnl
    @ajaybnl7 жыл бұрын

    Very Pleasent Tutorial & Video. Thanks for making my day.

  • @MillaeGiuliano
    @MillaeGiuliano7 жыл бұрын

    Great Man! Thanks for posting video and plans.

  • @everythingquads
    @everythingquads7 жыл бұрын

    Nice little project. This has lots of scope to be able to learn and replay movements..

  • @enerikkapllanaj8541
    @enerikkapllanaj85416 жыл бұрын

    Very nice project you have here. Everything is explained very good . Good job ! Keep it up .

  • @Pavana_sai
    @Pavana_sai7 жыл бұрын

    Excellent @joop Im going to design this balancing robot too in my lab.. In previous YMFC is working fine.. Keep on rocking.. Now im doing ARDUINO CNC.. Share that one soon..

  • @sxj42
    @sxj42 Жыл бұрын

    After I spend more than a month to gather all the stuff and to combine, finally I could build this robot. Thanks for you very detail information. But there are some issue that I cannot upload when this arduino is in place... so I have to take out to upload every time.. Anyway I will figure out. And you are right "limit current for step motor" is very important, I saw heated and smoke from diode before I limited current. Thanks a lot!!!

  • @vladimirsoaresbarros1782
    @vladimirsoaresbarros17827 жыл бұрын

    Cool project! Thanks for sharing!

  • @ahmedallam9612
    @ahmedallam96126 жыл бұрын

    Thank u so much Mr Joob for this perfect and accurate explanation, best regards

  • @iocircuits
    @iocircuits4 жыл бұрын

    Great Work, i am building this one, really nice. Thanks a lot

  • @theawesomer
    @theawesomer7 жыл бұрын

    Cool build! Sharing on The Awesomer.

  • @richardfirthucsb
    @richardfirthucsb7 жыл бұрын

    You are awesome! thanks for posting this!

  • @xt1200z1
    @xt1200z14 жыл бұрын

    Thanks for the video. I built a dual axis solar tracker, going to build this robot to learn the MPU9265 to aid in my tracking instead of LDRs (doesn't do very well in cloudy conditions)

  • @daskasspatzle2396
    @daskasspatzle23967 жыл бұрын

    Cool thing ;-) I like the sound of the stepper motors :-)

  • @ryangill9518
    @ryangill95187 жыл бұрын

    Great work! Thanks for sharing.

  • @___xyz___
    @___xyz___7 жыл бұрын

    Oooh! I've been meaning to build something like this!

  • @MathewPendleton
    @MathewPendleton7 жыл бұрын

    i love the sound it makes

  • @jacquesclaude210
    @jacquesclaude2106 жыл бұрын

    Absolutely awesome video, so if I wanted to make one twenty times the size, would the code have to be altered or not?

  • @thomaschesscafe
    @thomaschesscafe7 жыл бұрын

    Genius! Just simple, Genius!

  • @ShubhankarGo
    @ShubhankarGo7 жыл бұрын

    Amazing work Joop.

  • @espenbgh2540
    @espenbgh25407 жыл бұрын

    Nice and clear demonstrationen and the same for to the documentation as to what one need and how til assemble, much better than most others.

  • @seanocansey2956
    @seanocansey29566 жыл бұрын

    I'm so happy I subscribed to you 🙂

  • @profProsky
    @profProsky7 жыл бұрын

    very nice complete tut! Thank you.

  • @modsley
    @modsley6 жыл бұрын

    Thank you for the great project! One question.. Can I use this platform to make autonomous robot with ultrasonic censor? Or it's impossible because of 4 milliseconds main loop limit? Thank you.

  • @alexcarrasco2774
    @alexcarrasco27746 жыл бұрын

    Really thanks for this project, I made this and works perfectly, really thanks for sharing, all of your projects are amazing, regards from Ecuador

  • @hemantsinghrautela1590

    @hemantsinghrautela1590

    6 жыл бұрын

    Can you tell me which type of stepper motor (bipolar or unipolar) Joop have used?

  • @azone3499

    @azone3499

    4 жыл бұрын

    hi sir may i ask about the rpoject?

  • @rolandosalgado1552
    @rolandosalgado15527 жыл бұрын

    Beautiful project, thansks for share !!!!

  • @brandonbrand2338
    @brandonbrand23387 жыл бұрын

    great project! :) well done

  • @rogue277
    @rogue2776 жыл бұрын

    All the hobbyists should take inspiration from your website. Quality bar set quite high

  • @msdesignru
    @msdesignru7 жыл бұрын

    Love this project!

  • @skyreacher79
    @skyreacher796 жыл бұрын

    Thank you very much for this video and the instructions. I've just finished building my self balancing robot based on your instructions. A great project to learn more about these components, fun to build, and even better it works perfectly and is fun to use :-).

  • @Joop_Brokking

    @Joop_Brokking

    6 жыл бұрын

    Thank you for sharing and great to hear that you learned something!

  • @gordonpayne8601

    @gordonpayne8601

    6 жыл бұрын

    Hi Skyreacher. Congratulations on getting your robot project working. I've been working on this project for about 4 months. I'm at the point where I've soldered the boards and I know that my DRV8825s work and are set to appropriate current for the motors. I'm able to drive the steppers via the 8825s on a separate arduino circuit, no problems. However I'm finding some strange things on the main circuit. On Joop's diagram, resistors R2 and R3 are connected. Does this not effectively short out the purple and black and gray wires on the diagram? I get about a short between the gray and purple connections for the 8825s(lower right two pins) even when the 8825s are not on the board.The low voltage (5V) side of the circuits seem fine, but the high voltage side just goes to full power and the motors are frozen when the power is on. Can you confirm that the -ve side of the battery feeds BOTH the ground pins on the 8825s AND the GND pin on the step-down transformer that gives me the 5V supply for the components and around the low voltage sides of the circuit boards?. I'm at the point where I'm thinking of starting again with the circuit soldering. Any insights you can offer are greatly appreciated. I'm really looking forward to completing this project as I'm on a robotics study group in my board of education in Ontario Canada, working to build our capacity in Arduino and robotics.

  • @skyreacher79

    @skyreacher79

    6 жыл бұрын

    Hi Gordon! Search for "voltage divider" to understand what R2 and R3 are doing. This part of the circuit is completely OK, it does not create a short. The wire between R2 and R3 is connected to A0 on the Arduino - this is used for monitoring the battery. When the battery becomes weak, the robot will stop working without damaging the battery. Yes, ground is the same on the whole circuit. All the black and light grey lines on Joop's diagram are connected. It sounds like there's a problem with your lower right two pins of the stepper driver (where high power is feed to them). If you test your circuit, there should be no connection between them. Having a short there can be dangerous for your battery! I'd not connect the battery at all, as long as the problem is there. Check your board very carefully, there must be a soldering problem somewhere (a connection between the purple and the light grey/black lines).

  • @maruthupandian3728
    @maruthupandian37286 жыл бұрын

    Great video. I am going to build one.

  • @aliveelectronics5529
    @aliveelectronics55295 жыл бұрын

    Dude, can you tell me how you got to these levels of pid control?

  • @Der_Leoradler
    @Der_Leoradler6 жыл бұрын

    Great project! First the robot didn't work, but now it works. I had to wire the left motor with the right motor driver and the right motor with the left driver, then the balance worked. But why I must do this?

  • @psneves
    @psneves7 жыл бұрын

    very nice! thanks for sharing. have a happy and prosper life

  • @ottokueng4236
    @ottokueng42367 жыл бұрын

    Congratulation, a really perfect Tutorial. If every teacher would have your qualtity, the world would be much further. Also verry good, no stupid music in the background as often. So your words are verry clear to understand, also by non english mother tonge people. Thank you Otto

  • @timenotspaceproduction
    @timenotspaceproduction3 ай бұрын

    this is excellent work , how small can this be feasible do you think , based on currently available components ?

  • @uhtijmai
    @uhtijmai7 жыл бұрын

    Excellent brother!!!!!! Perfect

  • @muneebaa877
    @muneebaa8772 жыл бұрын

    Hi Joop! Thank you for your video. Why did you use 1/4 step mode instead of 1/16? Was it because of torque or to increase the time step?

  • @BeetleJuice1980
    @BeetleJuice19805 жыл бұрын

    Since you made all this code,it should be super easy to transform this project to a xy joystick controlled project. I think many will like this. Just remove the wireless, the accelerometer and the extra code. It will allow anyone to make a xy controlled project!

  • @HD-ik7ri
    @HD-ik7ri6 жыл бұрын

    Nice projects. I want to ask you if I can use the accelerometer to read vibration in a ball bearing as I am working on a project mixed between mechanics and electronics...Thank you.

  • @bertkraan2817
    @bertkraan28177 жыл бұрын

    Cool bro. Responce is response but very cool robot!

  • @monkeybred
    @monkeybred7 жыл бұрын

    Great video!! I was wondering how hard it would be to build an Arduino based 3 axis brushless gimbal?

  • @basitimran3368
    @basitimran33685 жыл бұрын

    Excellently explained... :-)

  • @electronicbob6237
    @electronicbob62377 жыл бұрын

    Great Video ..very well explained.....as always......Thanks !!! BTW....Stepper Motor`s are an excellent choose for this project because of ...no backlash....in ballancing mode...

  • @plamenpetkov7132

    @plamenpetkov7132

    4 жыл бұрын

    There are more benefits to the steppers - accurate (matching) speeds, direct speed command. The DC motors are normally controlled by just duty cycle. This is not speed but rather power control. There is a dead zone at low duty cycle (no motion due to friction). As a result more stable ballancing position (I built first one with DC motors)

  • @tamojitsaha1128
    @tamojitsaha11287 жыл бұрын

    Hello Joop, This project is awesome. Very much descriptive. I would like to suggest you to make a video series on developing a micro quadcopter with serial transceiver(eg. HC-05) or nrf24l01+ with self made remote(transmitter) just like you made YMFC video series. There is no such proper tutorial in youtube. I hope you would appreciate my suggestion and help enthusiasts just like you and me.

  • @1969mrd
    @1969mrd5 жыл бұрын

    Hi Joop, any idea why the stepper motors work when not touching the ground, but halt and make a whirring noise when they do touch the ground? Everything else works well.

  • @velvetpigcnc
    @velvetpigcnc7 жыл бұрын

    Great video. Would Nema 17 motors be ok for this project? I have a few spares from 3D Printer build.

  • @jimbobillybob1959
    @jimbobillybob19597 жыл бұрын

    That is realy cool!! Thanks so much!!

  • @tonyjohnson4572
    @tonyjohnson45723 жыл бұрын

    Additional question. Does the wheel size affect the calculations? If so, could the spreadsheet help to derive the new factors? Thanks

  • @MrKkprince
    @MrKkprince4 жыл бұрын

    Great. Why put the Gyro in stand position instead of flat ? For giving plus and minus values from y pitch accelerometer ?

  • @ruke1ire
    @ruke1ire7 жыл бұрын

    Are there "performance loss with variable battery voltage" for brushless dc motors as well? or do brushless motors behave like stepper motors? Thank you for the awesome videos, it has always fueled my interest in control engineering.:D

  • @sebastiaan724
    @sebastiaan7246 жыл бұрын

    Can I ask you what changes did you made to the LIPO battery? I have the same one and Im wondering how you configured it so that it suits the rest of the elektronics.

  • @chuck617
    @chuck6176 жыл бұрын

    Hi Joop, I went through all your videos about YABR and they're great! I am building one balancing robot by my self, but the difference is that I used a stm32 blue pill board instead of the Arduino board. Now I am stuck on modifying the code to make it work properly on stm32. Could you tell me how to modify the code for a stm32 board? please.

  • @Ferelmakina
    @Ferelmakina7 жыл бұрын

    yeah! this is awesome! I wanna build it

  • @Covid-lv5jy

    @Covid-lv5jy

    3 жыл бұрын

    Yessss

  • @Jason0115114617
    @Jason01151146176 жыл бұрын

    Hey, so the hardware check says everything is all excellent.. the nun-chuck is recognized and the gyro works.. but i cant control the bot with the remote.. any thoughts i am so close to finishing this project.. i would love to get it done soon

  • @fabiostranieri7471
    @fabiostranieri74713 жыл бұрын

    Hi Joop, before to start with building, I'm studing your code and video. I read the comment here. Why it is so important the exat position of the MPU-6050? Why it shouldn't work if I put MPU-6050 a little bit top or bottom, right, left? Thank you in advance. BR

  • @SumitKumar-fc4bq
    @SumitKumar-fc4bq7 жыл бұрын

    nice project.👍👌 :)

  • @dave-j-k
    @dave-j-k3 жыл бұрын

    Great project and great video - very open and easy to follow, thanks. How easy would you feel it is for a beginner to port this to MicroPython on a Pi Pico?

  • @chesslmc
    @chesslmc6 жыл бұрын

    Keep up the good work.

  • @bjarnekrog3433
    @bjarnekrog34336 жыл бұрын

    Thank you very much for an interesting project. The build is finished apart from the Arduino UNO, WiFi and controller. So my question is; should the robot be able to balance without the WiFi units?? Mine will not balance and seems to have a very large angle between the steppers actuating. It seems that maybe the gyro are correcting the wrong way. I have checked and double checked the wiring and it is OK

  • @MrSasha3050
    @MrSasha30507 жыл бұрын

    Nice work ;-)

  • @DanielGonzalez-hg2vk
    @DanielGonzalez-hg2vk3 жыл бұрын

    HI Joop...Thank's for all this information and this great videos.... Didn't you need the capacitors in paralell with the 12V supply of the A4988 ? And.. Do this project work usin Arduino Mega 2560 ? Thank's very much...

  • @tareqtechnical546
    @tareqtechnical5464 жыл бұрын

    Very beautiful and good job

  • @hkh971
    @hkh9716 жыл бұрын

    Hi Joop Many thanks for your video, just a quick question, can I use this software with the geared DC motor instead do step motor? Thanks

  • @Joop_Brokking

    @Joop_Brokking

    6 жыл бұрын

    I made the code for the stepper motors only. If you want to use normal dc motors you have to modify the code yourself.

  • @bestprint4817
    @bestprint48177 жыл бұрын

    wow Nice tutorial.. have its all details..

  • @TanerNilluhktaf
    @TanerNilluhktaf7 жыл бұрын

    excellent project!

  • @chrisjirka9563
    @chrisjirka95637 жыл бұрын

    How does the MPU-6050 gyro and accelerometer compare to the one in the Arduino 101? Could the 101 be used instead?

  • @Science3D
    @Science3D6 жыл бұрын

    Hi, I built your robot and it works very well, thanks but I have a question: I saw that you are using an "2.4G Wireless Serial Transparent Transceiver Module for Arduino" ... where can I get some documentation on this small board? I would like to know hot it works. Thanks

  • @JuansTechZeroUnit
    @JuansTechZeroUnit7 жыл бұрын

    You are the best!

  • @KaivitiSingh
    @KaivitiSingh4 жыл бұрын

    Interesting and Fully explained project. THanx for your efforts Joop Brokking. I can see that the post is old, so now: How about now using a Nano instead of Pro Mini together with 2x A4988, 2x JDY 40 2.4G (NRF24L01) and Stepper Motors +MPU6050. This would reduce the costs to less than 50% of what was in those years. Also the JDY-40 2.4G will not require a second Arduino (Uno in your case) for the remote (use simple 4 buttons sw for FF, RV, TL, TR all wired straight to the board ). this will make a tiny hand held RC operating with a small lipo. Loved your patience in Explaining in all the 3 video clips....I listened to them all.

Келесі