Arduino Project-Self Balancing Robot

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • Arduino Project-Arduino Self Balancing Robot
    BAKON SBK 936D+ Adjustable Temperature Soldering Station: goo.gl/Q43wrm
    The Best 3D Printer and DIY Tool Flash Sale: goo.gl/jx8Pc3
    Gearbest Summer DIY Video Contest DIY Tool Best Deals:goo.gl/f57DD2
    GearBest: Online Shopping - Best Gear at Best Prices: goo.gl/4wY4qU
    In this Arduino Project Tutorial, I Built Self Balancing Robot with Smartphone Control using Arduino Microcontroller.
    This Self Balancing Robot is a Two-wheeled Robot that balances vertically using a closed-loop algorithm. This Self Balancing Robot Features various modes like Position Hold, Simple Mode, Rise Mode and Joystick Control. This Robot is controllable by a Smartphone device or a Transmitter. Self Balancing robot uses data from the Accelerometer and Gyroscope to correct its orientation and position.
    Instagram- / shinedjar
    Facebook- / rztronics
    Twitter - / rztronix
    Code and Schematics:
    github.com/mah...
    Parts Used:
    2 x NEMA 17 Stepper Motor-s.click.aliexpr...
    2 x A4988 Drivers-s.click.aliexpr...
    Arduino Nano-s.click.aliexpr...
    Lipo Battery-s.click.aliexpr...
    HC-05 Bluetooth Module-s.click.aliexpr...
    GY-521 Module-s.click.aliexpr...
    Prototype Board-s.click.aliexpr...
    10cm Wheels-s.click.aliexpr...
    M5 Rod-s.click.aliexpr...
    Angle Brackets-s.click.aliexpr...
    Screws and Nuts-s.click.aliexpr...
    s.click.aliexpr...
    Music-
    Classic by Joakim Karud
    • Classic (Loudness & Cl...

Komentáře • 987

  • @TheModmod
    @TheModmod Před 5 lety +207

    most people who watch content like this are very interested in how this is actually made, so if you could go through more technical details about the arduino shields used and the code and the wiring itll be much more appealing

  • @ejikenwaeze5979
    @ejikenwaeze5979 Před 6 lety +163

    I love the video quality. Seems somewhat professional. Please post more consistently if you want to succeed at CZcams, bc I know you would

  • @ayubsunarya6284
    @ayubsunarya6284 Před 5 lety +70

    Try adding PID transfer function to avoid the wiggling movement. Than you will get smooth balancing. Great project btw!

    • @finnbsch
      @finnbsch Před 4 lety +1

      How will the integral part help?

    • @isaacprosper6295
      @isaacprosper6295 Před 4 lety +9

      Damn geniuses,what I'm I doing here

    • @gamingfeeling5511
      @gamingfeeling5511 Před 3 lety +4

      @@isaacprosper6295 error_prior = 0
      integral_prior = 0
      KP = Some value you need to come up
      KI = Some value you need to come up
      KD = Some value you need to come up
      bias = 0 (see below)
      while(1) {
      error = desired_value - actual_value
      integral = integral_prior + error * iteration_time
      derivative = (error - error_prior) / iteration_time
      output = KP*error + KI*integral + KD*derivative + bias
      error_prior = error
      integral_prior = integral
      sleep(iteration_time)
      }
      Really simple
      edit: thats pseudo code btw

    • @xeither289
      @xeither289 Před 11 měsíci

      GOD JESUS TOLD US TO LOVE GOD AND TO LOVE ONE ANOTHER! LET'S NOT DESTROY THIS WORLD! NO WAR!!! БОГ СОЗДАЛ ТАКОЙ ПРЕКРАСНЫЙ МИР! НЕ БУДЕМ РАЗРУШАТЬ МИР! ПОЛЮБИМ БОГА И ВСЕХ ЛЮДЕЙ! НЕТ ВОЙНЕ!!

    • @xeither289
      @xeither289 Před 11 měsíci

      ​@@finnbschGOD JESUS TOLD US TO LOVE GOD AND TO LOVE ONE ANOTHER! LET'S NOT DESTROY THIS WORLD! NO WAR!!! БОГ СОЗДАЛ ТАКОЙ ПРЕКРАСНЫЙ МИР! НЕ БУДЕМ РАЗРУШАТЬ МИР! ПОЛЮБИМ БОГА И ВСЕХ ЛЮДЕЙ! НЕТ ВОЙНЕ!!

  • @eToroBoT
    @eToroBoT Před 5 lety +13

    a lot of builders on YT need to learn from your video quality

  • @TheSaitrus
    @TheSaitrus Před 5 lety +348

    Balances a lot better than the Boeing 737 MAX.

  • @YasinHasan
    @YasinHasan Před 5 lety +98

    now add follow me function, so that i can keep it as a pet

    • @matrixate
      @matrixate Před 5 lety +1

      Exactly everyone's thought but unfortunately, that will have unexpected results and accidents, especially in public. Honda already has that in a following motorcycle. See here: czcams.com/video/Okf283Ct-NY/video.html

  • @diyowl5496
    @diyowl5496 Před 6 lety +29

    For some reason, this video looks very aesthetic and professional. Keep up the amazing work. Subscribed!

    • @Tjup
      @Tjup Před 4 lety +3

      the shematic is wrong, the bluetooth only get voltage, and nothing more

  • @christianclement8732
    @christianclement8732 Před 5 lety +19

    Bravo (in french) ! Could you please add a picture of the pcb after all soldering is done ? This will be very helpfull for me who is not a great electronician ! Thank you very much.

  • @rahulvaity8528
    @rahulvaity8528 Před 6 lety +21

    Nice video quality and excellent job

  • @jackdiamondsa4298
    @jackdiamondsa4298 Před 5 lety +2

    now this is how u make a video , keep it up mate

  • @hvdub754
    @hvdub754 Před 5 lety +4

    please post more!!!! amazing production quality!

  • @gazvlogs7459
    @gazvlogs7459 Před 5 lety +1

    More flux and a little bit more heat and you will be pleased, great quality right here!

  • @sumithaibrahim6441
    @sumithaibrahim6441 Před 6 lety +6

    I love this video because the video quality is super and the song and sound make us to listen to it and the project is awsome so all the best to future

  • @mahovvik
    @mahovvik Před 4 lety +2

    Nice to see that someone successfully repeated my project! :)
    BTW why turn right/left is not on the video? You got some issues with that?

  • @mattm7482
    @mattm7482 Před 5 lety +5

    Can you describe the design and the function of the modules briefly ? That would help attract more views, I would prefer some technical details.

  • @ryushogun9890
    @ryushogun9890 Před 3 lety +1

    Do you guys thing electronic pieces we use for every electronic device can be refined and built differently with more efficiency in some way? Asking as a noobie. They were invented by really competent people but aren't us too accommodated to their efforts and that is making it more difficult to get a home labor robot?

  • @trinston13
    @trinston13 Před 5 lety +7

    Now how do I make it autonomously follow me around so I don't have to carry multiple shots to my friends?

  • @Demonade_
    @Demonade_ Před 5 lety +2

    Great. All you need to do now is make it 1 wheeled.

  • @kadenzxc
    @kadenzxc Před 5 lety +5

    Awesome job! I'm working on a balancing robot myself at the moment. Still stuck in the math though. My approach uses 15 state variables in the model right now :'( But I'd really like to keep things like wheel inertia in the picture; I think my MCU is fast enough to handle it.

  • @omar-dj1pz
    @omar-dj1pz Před 3 lety +2

    Excellent job but I have a question what is the Spécifications of the capacitor ?

  • @rakhigupta8310
    @rakhigupta8310 Před 5 lety +4

    Please try to add a proximity sensor to this. Hope you will do it.😊

  • @domobrah2671
    @domobrah2671 Před 5 lety +1

    I feel like I'm watching a chef cook a gourmet meal

  • @nalini6920
    @nalini6920 Před 5 lety +12

    It is not complete Schematic, bluetooth pin conection are not shown there

  • @Medos996
    @Medos996 Před 2 lety +1

    I think there is a mistake in the schematic image, you are supplying the arduino 12v from the 5v pin and getting 5v from the VIN pin which should be the other way around ( you supply 12v through the VIN pin and you get 5v from the 5v pin)

  • @cherifaidara4244
    @cherifaidara4244 Před 5 lety +7

    Nice but you should add a turning function with the motors

    • @TheDutchGamingBE
      @TheDutchGamingBE Před 5 lety

      Yeah if you can combine this part with pieces of an autonomous arduino car that'd be way better

  • @canhchimhaiau597
    @canhchimhaiau597 Před 5 lety

    I really like it. Hope for more young people can see it and take out more Idea.

  • @MegaClaudj
    @MegaClaudj Před 6 lety +3

    beauty project ¡¡¡¡

  • @thunderbolt997
    @thunderbolt997 Před 5 lety +1

    woah woah easy on the soldering iron flexing haha :D great vid

  • @aadityadhruve172
    @aadityadhruve172 Před 5 lety +3

    Excellent job done. Very neatly explained all the stuf

  • @berkayavc1625
    @berkayavc1625 Před 4 lety +1

    can we use tt motors instead of step motors????Because tt motors are cheaper than step motors...

  • @yanin68
    @yanin68 Před 5 lety +13

    How does the bluetooth work if it's not connected anywhere?

    • @connorwatson7162
      @connorwatson7162 Před 5 lety

      it states that it's connected to TX and RX on the documentation online

  • @porteenbois503
    @porteenbois503 Před 5 lety +1

    I love this sound !

  • @hamidhamouchi4437
    @hamidhamouchi4437 Před 5 lety +3

    Great Job Bro !
    When I connected the application EZ-GUI to the HC-05 Bluetooth Module, I don't found parameters "AUX" (it's empty !!! ) How I can resolve this problem plz ?
    Thanks !!

  • @muhammadusmanmalik1166
    @muhammadusmanmalik1166 Před 5 lety +1

    Excellent Video Bro showing ur excellence and ur skills

  • @RajendraVermaa
    @RajendraVermaa Před 6 lety +4

    Thank you for the wonderful video again. I was finally able to make the complete project with some minor modifications. The GY521 module must be placed as high as possible from the ground rather than on the PCB which is in the middle shelf. The EZ-GUI settings especially the PID should have been touched upon also. Without this input making the robot may be frustrating for the inexperienced. I had to do a lot of tweaking to finally get it balancing properly. It was a great learning experience. Keep on uploading such videos.

    • @rajvanshsingh770
      @rajvanshsingh770 Před 6 lety

      PLEASE GUIDE ME FOR THIS PROJECT IS NOT WORKING AS GUI RECEIVING NO DATA

    • @RajendraVermaa
      @RajendraVermaa Před 6 lety

      Rajvansh Singh
      Please set the Bluetooth HC 05 module baudrate to 115200. Just Google for the procedure.

    • @raahimimran6937
      @raahimimran6937 Před 6 lety

      How many mah of the battery is used?? Please reply....

    • @LeoL123
      @LeoL123 Před 5 lety +1

      Could you tell the PID configuration? I have done this project, but the wheels keep turning for a while then vibrating.

    • @shwetasingh773
      @shwetasingh773 Před 5 lety

      Rajendra Verma can u plz tell me how to change hc-05 baud rate

  • @michaelbayer5887
    @michaelbayer5887 Před 4 lety

    ... stand Up - stand Up and Balance. Super.

  • @rollielyncoro95
    @rollielyncoro95 Před 5 lety +3

    Whats the value of the capacitor

  • @wrxsubaru02
    @wrxsubaru02 Před 5 lety

    I have an idea for you... You should add a mini 3d printer on top of this to blow everyone's mind. Maybe make it out of CD linear parts so its nice and compact.

  • @johnsunlight
    @johnsunlight Před 5 lety +4

    Cool, until some guy from Boston Dynamics shows up and kicks it over.

  • @gamenzo7608
    @gamenzo7608 Před 5 lety

    You are a genius. thanks because your video helps me in another project

  • @Gabrozzooooo
    @Gabrozzooooo Před 6 lety +4

    where can I find all the measurements? (of the pcb to be cut and the length of the threaded bar)

    • @christianclement8732
      @christianclement8732 Před 5 lety +2

      Evaluating the number of holes in the pcb board, I estimated the following size : 16.5 x 8 cm. Concerning the threaded bar, I used a 1 meter rod => 25 cm for each rod.

    • @Seedx
      @Seedx Před 5 lety

      How big do you think this is?

  • @ABID5
    @ABID5 Před 5 lety

    Very well done.Good filming and transitions.

  • @khalilbensalah6529
    @khalilbensalah6529 Před 5 lety +3

    hey i have a problem in compiling the codes
    please helpp

    • @cai0_o
      @cai0_o Před 5 lety

      what is your problem?

    • @khalilbensalah6529
      @khalilbensalah6529 Před 5 lety

      @@cai0_o soory it no thé codes
      I gant find mpu6050
      Can i use another one like adxl345 ?

    • @SaiKumar-tl5tz
      @SaiKumar-tl5tz Před 5 lety

      bro did ur code worked?

  • @bhanushreer8684
    @bhanushreer8684 Před rokem

    It was really nice sir can u upload the picture of the soldering which u completed with the connection of the soldering so we can easily see and we can also solder

  • @sanupamu
    @sanupamu Před 6 lety +7

    What is part of hc05 its not connected any where. Except power

    • @RajendraVermaa
      @RajendraVermaa Před 6 lety +1

      Connect to nano pins TX and RX, need a voltage divider. Just google

    • @sanupamu
      @sanupamu Před 6 lety +1

      Rajendra Verma thanxs

    • @rockin123ricks
      @rockin123ricks Před 6 lety

      Its a bluetooth module to connect to the phone

    • @pradeepavenkatesan1744
      @pradeepavenkatesan1744 Před 6 lety

      S

    • @jaykumarvora2156
      @jaykumarvora2156 Před 5 lety

      @@RajendraVermaa bro plss mail me the proper circuit diagram ..have tried this circuit couple of times
      @jvora443@gmail.com

  • @alerey4363
    @alerey4363 Před 5 lety +1

    nice, some real time (closest you can get with an arduino at least) real world project!

  • @mohit-gs3ql
    @mohit-gs3ql Před 6 lety +4

    Can you please give me the circuit diagram?

    • @RZtronics
      @RZtronics  Před 6 lety +1

      Link available in the description.

    • @mohit-gs3ql
      @mohit-gs3ql Před 6 lety

      RZtronics ok thanks

    • @MrBLUE-qw9xf
      @MrBLUE-qw9xf Před 5 lety

      RZtronics how can i change the values of pid please sir help me

  • @99desi9n
    @99desi9n Před rokem

    This is amazing. What weights would it be able to handle, or should you use a bigger motor for weights over 60kg?

  • @brainmind4070
    @brainmind4070 Před 5 lety +4

    Cool project, but it would be more stable if the sensors were right on the underside of the top surface. They should be as high as possible to minimize that wobbling.
    A note on the video: I found the extremely repetitive music to be obnoxious. Three 15 second ads might have been a bit much, too.

  • @nazra3568
    @nazra3568 Před 6 lety +2

    this is so cool! love how the video is designed. how long did it take you to do this?

    • @nazra3568
      @nazra3568 Před 6 lety

      also very cool project in general, have you ever posted any of these on the ProjectBoard?

  • @bebek1993
    @bebek1993 Před 6 lety +4

    But can it run Crysis ?

  • @danielwatts3718
    @danielwatts3718 Před 5 lety

    Great video, fantastic production quality

  • @paulfilliette9855
    @paulfilliette9855 Před 6 lety +3

    nice!! can he turn?

  • @sajeebiqtiyar206
    @sajeebiqtiyar206 Před 5 lety +1

    Wow beautiful

  • @AnkitDubey-ru9jb
    @AnkitDubey-ru9jb Před 6 lety +4

    What is the reason behind balancing ?

    • @darwinborines1073
      @darwinborines1073 Před 6 lety +1

      accelerometer

    • @yugeshkeluskar
      @yugeshkeluskar Před 5 lety

      It uses the principle of inverted pendulum

    • @aok76_
      @aok76_ Před 5 lety +1

      Uses a microcontroller to counteract tipping by actuating the motors with a necessary torque; it uses a negative feedback loop to decide.

  • @tinkerguru2895
    @tinkerguru2895 Před 5 lety

    Cool balancing is perfect

  • @user-lv9ut4ol6l
    @user-lv9ut4ol6l Před 6 lety +2

    quality video!!!! so great. from VietNam

  • @calendil
    @calendil Před 5 lety +1

    Excelent song btw :)

  • @narpat007
    @narpat007 Před 3 lety

    nice build, your PID's require fine tune

  • @MikeysLab
    @MikeysLab Před 5 lety

    Think i will build something similar in the lab for my April video :) thanks for the inspiration.

    • @jesseschultz6512
      @jesseschultz6512 Před 5 lety +1

      Try modern control laws. Watch the double pendulum and triple pendulum balancing vids. Pretty neat stuff.

    • @MikeysLab
      @MikeysLab Před 5 lety

      @@jesseschultz6512 That sounds like a good challenge, I will also use a NodeMCU programmed with Arduino, using VisualMicro to give me a lot more processing power :) I am looking forward to this one.

  • @Chromodynamics
    @Chromodynamics Před 5 lety

    Pretty clean shave and neat

  • @ArtsJenny
    @ArtsJenny Před rokem

    Excellent sir

  • @Culturedropout
    @Culturedropout Před 6 lety

    Very nicely done, although I'd be worried about the motor mounts snapping the plexi under too much torque.

    • @xeither289
      @xeither289 Před 11 měsíci

      GOD JESUS TOLD US TO LOVE GOD AND TO LOVE ONE ANOTHER! LET'S NOT DESTROY THIS WORLD! NO WAR!!! БОГ СОЗДАЛ ТАКОЙ ПРЕКРАСНЫЙ МИР! НЕ БУДЕМ РАЗРУШАТЬ МИР! ПОЛЮБИМ БОГА И ВСЕХ ЛЮДЕЙ! НЕТ ВОЙНЕ!!

  • @princepakistan2810
    @princepakistan2810 Před 4 lety +1

    Why you not connet blue tooth tx rx terminals? Tell me and look at your sachmatic diagram 2:58

  • @chandraprakashs9327
    @chandraprakashs9327 Před 5 lety

    project and video presentation is excellent

  • @alterntech
    @alterntech Před 5 lety +2

    just open the zip file and up load the sketch.. How can it work without testing the MPU6050 for offset values to calibrate the gyro/acc module??

  • @abpccpba
    @abpccpba Před 5 lety

    Nice work; great production skill; would have liked hearing you not music ;over kill on the ads. Every CZcams I have watched that have ads only show one. They have far larger subscriptions than you.

  • @RajendraVermaa
    @RajendraVermaa Před 6 lety

    Excellent, 10 out of 10.

  • @alimahmoud8708
    @alimahmoud8708 Před 2 lety

    Great work man! I got a question, What were the criteria used in evaluating the control algorithm?

  • @japancine
    @japancine Před 3 lety

    The schematic at 3:00 shows the wiring for the HC05 is wrong. It will not communicate. The bluetooth device is just hanging there doing nothing

  • @djtoddles8750
    @djtoddles8750 Před 5 lety

    Very impressive, thanks for sharing this

  • @PhG1961
    @PhG1961 Před 6 lety +1

    Great video ! Excellent work !

  • @danielbenisti3664
    @danielbenisti3664 Před 5 lety

    you are amazing and very tallented!!

  • @babbalgts
    @babbalgts Před 6 lety +1

    Whats the logic behind truning..? I know you decrease the power in one of the motors...but its not working...

  • @Lot10Games
    @Lot10Games Před 5 lety

    After I finish my android game project, I have to make this :D . Excellent presentation

  • @showliricopopular4824
    @showliricopopular4824 Před 3 lety +1

    Excellent video!
    I have downloaded and installed the EZ GUI APP, version 4.5.450, but the AUX button does not appear on the configuration screen. In its place appears another called MODES, but also the interface is quite different from the version you use in your video, and since it is free it does not allow me to save the changes. Could this be because my version of Android is outdated? Is the version you use free or paid?
    Thank you…

  • @MsSniper78
    @MsSniper78 Před 4 lety

    Thats so cool

  • @incxxxx
    @incxxxx Před 8 měsíci

    Could you please provide the size of the tiles and the distance between them ?

  • @edelpurugganan3541
    @edelpurugganan3541 Před 4 lety +1

    How much in total did you spent building this?

  • @haddadwassila7442
    @haddadwassila7442 Před rokem

    Thanks ❤️

  • @dkmodder4405
    @dkmodder4405 Před 5 lety +1

    Hey RZtronics! I have a question; how did you learn how to build electronics and where should a beginner like me start self-learner. Can you reccomended resources or products I should get? Thank you!

  • @harshikeshwadgave2018
    @harshikeshwadgave2018 Před 6 lety

    Nano,hcmodule,bttry can be placed anywhere ,
    If we place any where it will balance

  • @AkBot96
    @AkBot96 Před 5 lety +1

    hey i am not getting aux setting in andriod app and i noticed that my transmitter led is not blinking on nano can you please giude me little bit. iam also using nano shield to mount the nano.

  • @SamuelWallsJames
    @SamuelWallsJames Před 5 lety

    Practicing for the Falcon 9!

  • @mikeyisinoz
    @mikeyisinoz Před 5 lety

    Very nice! One question. Where is the fuse?

  • @TheMechatronicEngineer

    Great video!

  • @futuretonics7876
    @futuretonics7876 Před 4 lety +1

    In your link, there have no code

    • @salwarabii6506
      @salwarabii6506 Před 4 lety

      electricalride.com/arduino-self-balancing-robot-smartphone-control/

  • @ChenchudoGoyudo
    @ChenchudoGoyudo Před 4 lety

    Good job

  • @hamidzahid8040
    @hamidzahid8040 Před 5 lety +1

    can we use 1.7A stepper motor instead of 2A

  • @aadeshbendre4645
    @aadeshbendre4645 Před 4 měsíci

    Can we use gear motor instead of stepper??

  • @srajanshetty5962
    @srajanshetty5962 Před 5 lety

    Make a vedio on rocker bogie mechanism which can balance itself while carrying weight

  • @ziomalZparafii
    @ziomalZparafii Před 5 lety

    0:37 hehe, it should be side to the camera for that test! Proper code should hold position and not roll down. PIDs needs tweaking, too much wobbling.

    • @jaykumarvora2156
      @jaykumarvora2156 Před 5 lety

      Is there issue with code? And also plss explain me what is pid in this project also how to overcome its ill effects on robo

  • @pzepher8280
    @pzepher8280 Před 4 lety +1

    Can you repost your code?, your link doesn't work any more.

  • @stjepanstrmecki243
    @stjepanstrmecki243 Před 5 lety +1

    @RZtronics is it possible for you to provide me vith a PCB scheme for this... I"ve tried to do im myself from your picture in altium designer but i keep failing, i want to put it all on a circuit board but i just cant seem to make it work. I"ve even burned some components in the proces so i hope you could help me out

    • @vinithviswanathan3083
      @vinithviswanathan3083 Před 5 lety

      Can you actually connect the HC 05 to the EZ-GUI app..its saying no data recieved for me.can you help me in this?

  • @sunsetthireach3223
    @sunsetthireach3223 Před 8 měsíci

    Can I replace the 12v lipo battery with 18690 batteries how would that affect the circuit diagram

  • @sachinjain890
    @sachinjain890 Před 6 lety

    as we are manually soldering the pcb , so chances of short circuit of lipo battery are there, right?

  • @user-tt3dz5qv7d
    @user-tt3dz5qv7d Před 5 lety

    Thanks a good video!! I have a question. The buzzer is known to be connected to PWM. Is A2 also a PWM pin?

  • @lokeshkumar93
    @lokeshkumar93 Před 4 lety

    Hello this is a great tutorial.. In the circuit diagram.. You didn't show where to connect HC 05 Tx Rx pins.. are they connected to Rx,TX of Arduino Nano respectively or any other pins?

    • @askvina
      @askvina Před 4 lety

      www.askvina.org/post/bluetooth-module-hc-05

  • @danielzuniga4544
    @danielzuniga4544 Před rokem

    Se puede usar una batería normal no? Es muy caro el lipo, aunque no sea recargable

  • @manassikdar1
    @manassikdar1 Před 5 lety

    That vaporwave in the background...