Diy self balancing robot arduino based.

Поделиться
HTML-код
  • Опубликовано: 1 авг 2024
  • JLCPCB Prototype for $2(Any Color): jlcpcb.com
    Hello friends this post is about DIY self balancing robot in this post I'll show how you can build your own Self balancing robot.
    I have use a custom made PCB, Arduno nano, MPU6050, A4988 driver, HC-05 bt module, MDF board and some hardware to build this self balancing robot,
    detail material list you can found further in this post.
    Balancingwii firmware and EZ-GUI android app is used in this project to control robot via Bluetooth connection.
    For Complete project detail, code, circuit drawing visit
    electricdiylab.com/diy-self-b...
    Components Required
    Arduino Nano..................................1 no.
    MPU605 Gyro sensor...................1 no.
    Nema 17 Stepper motors.............2 nos.
    100mm Wheels................................2 nos.
    A4988 Stepper driver IC..............2 nos.
    HC-05 Bluetooth module.............1 no.
    4mm MDF board.
    150mm M5 threaded rods--------4 nos.
    some nuts and bolts
    Music credit to
    Joakim Karud
    • Clouds by Joakim Karud...
    / joakimkarud
    💻visit for more projects :-
    👉electricdiylab.com/
    👉FB page :- / innovativemr
    My Gears :-
    Camera :- amzn.to/2FO4W5E
    Video Light :- amzn.to/2FNKzFL
    Mic :- amzn.to/2HYqBZC
    Soldering Kit :- amzn.to/2FgNd8Z
    Screw driver set :- amzn.to/2FkhHHm
    Rotary tool :- amzn.to/2FM3Lnh This video is made for entertainment purposes only. Please use judgment, care, and precaution if you plan to replicate. WhatsApp for custom projects +91 7600079068
  • НаукаНаука

Комментарии • 307

  • @akirahonda7356
    @akirahonda7356 4 года назад +17

    Congrats!! One of the best projects in the web. My graduation project was a self balancing cart. It was 1989. It doesn't work. There were not so many ready made circuits like Arduino. You showed times have changed.

  • @afreenkhanawan8729
    @afreenkhanawan8729 2 года назад +1

    Alhumdulilah I am near to complete this project I am very glad and thankfully to the vedio maker,, 😊🥰🥰

  • @arduinoherman3867
    @arduinoherman3867 2 года назад

    Really needed this channel. Best reference for arduino projects!

  • @leobrunotronico
    @leobrunotronico 4 года назад +27

    Finally I managed to successfully implement this robot, congratulations to the author! I had difficulty understanding the PID adjustment, but in the end, after many tests, I realized that it would not be necessary to change any of the data reported (based on the video values) the critical point, in my case, was to leave the resolution of the step in eighth step (only ms1 and ms2 connected in 5V and ms3 floating), with the sixteenth step the robot was able to balance itself but it was not in a fixed position, it made an oscillation amplitude of about 40 cm. It was necessary to change the transmission rate of the HC-05 to 115200 by AT commands, but it was fine. To make the cursor go back to the center in the app: settings => check the "back to MID" fields. Do not forget to use an electrolytic capacitor (100 uF or more) between the Vmot and GND pins of the A4988 driver, unfortunately, during the tests, some were burned because I did not use this capacitor. Any questions I will be happy to help you.

    • @abishekysharma444
      @abishekysharma444 4 года назад +1

      hello, im getting driver pin was not declared in the scope
      please help me out

    • @abishekysharma444
      @abishekysharma444 4 года назад +1

      i meant in the code while uploading to my arduino

    • @ibrahimnadi2114
      @ibrahimnadi2114 4 года назад +1

      Can you share the scheme you use? Thanks

    • @deepkhanderia5270
      @deepkhanderia5270 3 года назад +2

      hey please reply if we make different body structure than yours than we have to change the value of pid or not? if yes then where in the code we need to change? please specify exact file name and location in that code! thanks

    • @abpccpba
      @abpccpba 2 года назад +1

      I have smaller wheels 60mm. Will they suffice or is it mandatory to use 100mm? Leonardo, your offer of help is much appreciated; Thank You Very Much

  • @manelangulo8352
    @manelangulo8352 4 года назад +4

    WOW......
    Good contribution, like all of your channel, thanks for sharing
    I'm going to get to work, this project is very interesting
    Can you provide information on how the different modes of operation are changed?
    Greetings from Barcelona - SPAIN

  • @raflonoce
    @raflonoce 2 года назад

    Wonderful There are no other words to define your work

  • @a.sanusinazareth9213
    @a.sanusinazareth9213 2 года назад

    this is a very self-balancing robot. congrats!

  • @mingosutu
    @mingosutu 4 месяца назад

    Great job. Thanks a lot for sharing it. I wish next time you make it a way that the robot gets up on its own. I am sure you have the skills to do it. Thanks again

  • @AndrewAHayes
    @AndrewAHayes 4 года назад +2

    Quite a lot of gain on your microphone, the vocal sound would benefit from some compression and EQ to separate it from the BGM in the mix, I love your designs always something interesting! I wonder if it can gain stability after jumping a ramp?

  • @alimahmoud8708
    @alimahmoud8708 2 года назад +3

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

  • @EdwinFairchild
    @EdwinFairchild 3 года назад

    I went to the blog and w3as hoping for a tutorial on the process but unfortunately it was more a tutorial on how to download copy and paste. Wish i could find a real well explained tutorial that doesnt skip the math

  • @BikermanCoUk
    @BikermanCoUk 2 года назад +4

    Hi,
    I'm in the middle of building this robot and I have a question. I'm building without the custom PCB (ie on normal breadboard), so I'm using your diagram. It all seems OK except for one connection. On the top A4988 stepper driver the ground pins are connected through a 1K resistor to the step pin and to D5 on the arduino. This seems wrong - I would have thought that the two ground pins should connect directly to ground, with the step pin connected to D5 and a 1K bridge to ground (ie the same as the bottom A4988 driver). Have I misunderstood the circuit, or is it just a misprint ?

  • @nicolasspomer9618
    @nicolasspomer9618 4 года назад +3

    Excellent work!! Could you please let me know how to change from pos hold to normal mode? And share your control mode configuration? Thanks in advance!

  • @samsoft_dz
    @samsoft_dz 2 года назад

    great work ...i have a question i have the motors rotating in different direction !!
    how can I change the direction of the orongue one .. thank's .

  • @miguelangelluna7297
    @miguelangelluna7297 4 года назад +2

    Good equilibrium, congeatilation. Is deseable bb8

  • @aleksandarderajic47
    @aleksandarderajic47 4 года назад

    When changing baud rate of HC05 in AT mode, what should be stop bit and pairty bit?
    Thank You

  • @bergamt
    @bergamt 4 года назад +8

    Try putting the battery on the top level. With an inverted pendulum, a higher center of gravity actually makes it easier to balance.

    • @dozog
      @dozog 4 года назад +1

      Looking through the comments to find if anyone else would say that.
      It is counter intuitive, but it is true. As i have said below similar videos :
      Try balancing a broom on your hand. First with the brush side up, then with the brush side down.

  • @imagesky3806
    @imagesky3806 4 года назад

    can you say something more about calibration? my robot does not drive sideways but front and back

  • @sainitinandnikhil4454
    @sainitinandnikhil4454 Год назад +1

    A small doubt,can we use cnc driver for this project with the same code including a4988.what will be the code changes

  • @capthescience9794
    @capthescience9794 4 года назад

    super this is the only vidio which tell to upload the code

  • @nueschi
    @nueschi 4 года назад

    Brilliant!

  • @wfpnknw32
    @wfpnknw32 Месяц назад

    great project, although the arduino nano is mislabelled as a mpu6050 @2:36. Great project and video though

  • @mohdaijaz454
    @mohdaijaz454 3 года назад +7

    EZ-GUI is saying no data received when i tried to connect it with HC-05 at baud rate of 115200. and also AUX is showing "not enough information".

    • @aravinds8743
      @aravinds8743 2 года назад

      bro did you found the solution. Same problem also for me.

  • @gauravnawale3352
    @gauravnawale3352 4 года назад

    I am building similar robot using MPU6050, but my sensor starts giving very wrong outputs when it is subjected to vibrations due to stepper motors, please suggest me something to solve this!

  • @mahovvik
    @mahovvik 4 года назад +4

    Thanks a lot for repeating my project!

    • @muneeburrehman450
      @muneeburrehman450 4 года назад

      i have also made this project.

    • @harishkumar3481
      @harishkumar3481 3 года назад

      Sir my Ez-gui app is showing warning no data received pls help what to do

  • @saikatdhara5319
    @saikatdhara5319 4 года назад

    Please tell me what is the orientation of mpu6050
    Either it is ROLL or PITCH if I place the mpu6050 same as you

  • @hyeongcheoljo5327
    @hyeongcheoljo5327 4 года назад +2

    Thats awesome!!!!
    I have one question.
    What is the defference between normal mode and position hold mode????

    • @roadkill236
      @roadkill236 3 года назад

      İn pısition hold mode it wworks like a bumeranh

  • @akuntumbal2837
    @akuntumbal2837 4 года назад +7

    thanks bro, thanks for your help. So, I can finished my task , thanks bro

    • @venkateshwaranp9517
      @venkateshwaranp9517 4 года назад

      How did u configure the bt-05

    • @maddilasumanth7888
      @maddilasumanth7888 3 года назад

      I am not getting any data from Bluetooth to EZ-GUI App
      Can you please solve this problem?

    • @iwanbukanfals1834
      @iwanbukanfals1834 3 года назад

      @@maddilasumanth7888 Change the Baud Rate of HC-05 Bluetooth Module

    • @maddilasumanth7888
      @maddilasumanth7888 3 года назад

      @@iwanbukanfals1834How to change Baud rate of HC-05 module bro??

    • @maddilasumanth7888
      @maddilasumanth7888 3 года назад

      @@iwanbukanfals1834 in EZ-GUI app I am getting " warning No Data Received"
      Please slove this problem
      Please🙏

  • @shobhitkumawat
    @shobhitkumawat 10 месяцев назад

    I want to use A0, A1, A2 and A3 for stepper control. Could you please guide me where to change pin configuration? Thanks in Advance.

  • @leedaniel3465
    @leedaniel3465 3 года назад

    Nice!!!.. Would an Arduino Nano Every work?
    I tried it but getting errors and some variables not defined in the def.h file

  • @3ddrucker102
    @3ddrucker102 4 года назад

    Very good and honest work, keep it up!

  • @anmolsinghshekhawat4284
    @anmolsinghshekhawat4284 4 года назад

    i had a doubt
    what if i used a different diameter tyres
    will it work same or i have kame some changes in the code

  • @amvchannel892
    @amvchannel892 2 года назад

    I have a problem with i2c communication. In the ez gui app, in graphs, only works when i calibrate mpu sensor before and upload the sketch without quit tension. If I source my board with lipo battery, graphs does not anything. Pls help me

  • @mark1944
    @mark1944 8 месяцев назад

    Can't seem to get the code to compile correctly in arduino IDE. There's mention of a config tab but no idea where or what that is. Any help is much appreciated. Thanks for the design!

  • @RIVALDIOS59
    @RIVALDIOS59 4 месяца назад

    One question, how did you make the bluetooth connection with the application work on the hc-05 model (I'm doing the same project, but the bluetooth connection is not working well)

  • @tuyenvo1038
    @tuyenvo1038 2 года назад

    Hi. I don't know if you still have this project data, if so, can you tell me the current app like the clip is broken and can't be used anymore, do you know if you have found an alternative method?

  • @lyricalmusicstation2498
    @lyricalmusicstation2498 4 года назад

    Jahar bro##

  • @it_world_by_faizan
    @it_world_by_faizan 8 месяцев назад +1

    Sir kindly clear which maximum android version can support EZ-GUI Ground Station app?

  • @MusaYmc
    @MusaYmc 4 года назад

    much preciated

  • @glauciogv5225
    @glauciogv5225 10 месяцев назад

    Sehr gut !

  • @lalaneverquit
    @lalaneverquit 2 года назад

    how to disarm or unarm?
    I tried turning off the board but when I turn it on its still armed.

  • @thanhluandao756
    @thanhluandao756 10 месяцев назад

    The robot control app doesn't show the aux part. What do I need to do to make it show the aux panel?
    please help me

  • @gabrieldardenne9360
    @gabrieldardenne9360 3 года назад

    Bonjour. Dans EZ-GUY quand je suis à l'écran "AUX", j'ai l'indication "Pas assez d'information". Je n'ai pas l'écran suivant visible au temps 12:16 de la vidéo. J'ai recommencé de nombreuses fois sans pouvoir cocher les 3 cases. Merci de m'aider à finir la configuration. Bonne année à tous !

  • @iwanbukanfals1834
    @iwanbukanfals1834 3 года назад

    thanks for sharing,my balancing robot was success in this day

    • @deepkhanderia5270
      @deepkhanderia5270 3 года назад +1

      Did you copied all same from the video?

    • @iwanbukanfals1834
      @iwanbukanfals1834 3 года назад

      my program & code is same with this video,.

    • @androidoptimusprime
      @androidoptimusprime 3 года назад

      @@iwanbukanfals1834 So you went to BalancingWii.ino and compile and run? Because I did the same but it tells me it has many errors.

    • @iwanbukanfals1834
      @iwanbukanfals1834 3 года назад

      @@androidoptimusprime yes,following that vidio,you will can

    • @user-ro8er1mt2m
      @user-ro8er1mt2m 6 месяцев назад

      hello, @iwanbukanfals1834 can you send me the full code, i cant get it/download all togheter. Thank You!!!
      @@iwanbukanfals1834

  • @Paul_Bearden
    @Paul_Bearden 3 года назад

    2:35 You miss labeled the Arduino near the wheels as an MPU6050.

  • @hiper_tops
    @hiper_tops Год назад

    Are you meant to see the red lights at 11:26 when you have uploaded the code? Mine didnt do that but arduino ide said it was uploaded. My robot isn't doing anything when I plug its battery in

  • @rithikaramesh2765
    @rithikaramesh2765 4 года назад +2

    how do i find my orientation for my mpu 6050

  • @yonatantamiru7756
    @yonatantamiru7756 2 месяца назад

    did you adjust the PID value yourself because mine say wrong value

  • @MrLorivaldo
    @MrLorivaldo 4 года назад

    Hello, I'm from Brazil and I'm trying to build this prototype as a project at the university. But, EZ-GUI is reporting "I2C Errors cont". Can you help me resolve this error?
    thank you

  • @Abhi-wc8tj
    @Abhi-wc8tj 2 года назад +1

    Hi bro when I connect it to mobile after sum sec it will say warning data not received can u please tell me y

  • @developedbyharsh
    @developedbyharsh 3 года назад

    Can we use drv8825 stepper motor driver instead of a4988?
    Plszz help me!

  • @maddilasumanth7888
    @maddilasumanth7888 3 года назад +1

    I didn't get any data from the bluetooth to my EZ-GUI APP
    Can you please solve it?

  • @routers4935
    @routers4935 4 года назад

    Great!!!! ( which song is this?)

  • @nguyenducanhtai7380
    @nguyenducanhtai7380 3 года назад

    When I upload the sketch I get…
    what should i do????
    Output.cpp:162:13: error: ‘DRIVER_PIN’ was not declared in this scope
    pinMode(DRIVER_PIN[{i}],OUTPUT);(5)
    Output.cpp:164:3: error: expected ‘;’ before ‘}’ token
    }
    exit status 1
    ‘DRIVER_PIN’ was not declared in this scope

  • @diptangshudas6725
    @diptangshudas6725 4 года назад +4

    What about MS1, MS2, MS3 pin of A4988 driver?
    Please tell me as soon as possible.
    Your PCB sketch and the real PCBs are of different connection with those pins.

    • @syedsulaiman8380
      @syedsulaiman8380 4 года назад +1

      hey i have extra pcbs???
      Do you want?

    • @diptangshudas6725
      @diptangshudas6725 4 года назад +1

      @@syedsulaiman8380 For now, no thanks. But if I need I must contact you

    • @syedsulaiman8380
      @syedsulaiman8380 4 года назад +1

      @@diptangshudas6725 I live in india and I ordered the pcb he has given
      If you want fell free to contact
      I also have other PCBs from how to mechtronics

  • @sivaranjan4704
    @sivaranjan4704 3 года назад

    In First trial u got the accuarte output ??

  • @harshadgunjikar1595
    @harshadgunjikar1595 3 года назад

    I'm using reversal shaft stepper motors will it work?????

  • @imandanielsyahidan7504
    @imandanielsyahidan7504 2 года назад

    hello,name is daniel,i have a question, i am currently using this video as my final year project and i have some problems, can u help me why when i connected to my ez-gui with my robot it tells that there is no data

  • @beep6202
    @beep6202 2 года назад

    Is there a way to run this with a bluetooth controller rather than though an app?

  • @marcio6498
    @marcio6498 4 года назад +1

    Excellent job.

  • @arnaudmairesse2774
    @arnaudmairesse2774 3 года назад

    I bought your pcb and each time i burned my arduino (3 times) with several pcb (i bought 5)
    I have question what is the fonction of j1 jumper do we need to install it
    For the over jumper i understand that it is for microstep for motor driver
    Could you help me i dont understand ?

  • @abishekysharma444
    @abishekysharma444 4 года назад

    hello, im getting driver pin was not declared in the scope
    please help me out

  • @ceallo3034
    @ceallo3034 4 года назад +1

    HI, thank you for your kind instructions. I was following your guide and now stuck into running an "ez gui" app. If you know why my app doesn't show AUX, could you tell me why? it only says 'Not enough information'.

    • @Joaoprimila
      @Joaoprimila 3 года назад

      same

    • @CallmeMau
      @CallmeMau 3 года назад

      Did you manage to resolve this issue? I have the same problem

    • @pradumpal8792
      @pradumpal8792 Год назад

      That means your BT module boud rate is not set on 115200 set it first by AT command mode

  • @yvan6719
    @yvan6719 3 года назад

    Hi ! Looks very nice ! :) Congrats ! I'd like to do the same kind of robot ^^ but i don't know doing PCB, can you help to tell me what can i use ?

  • @Francesco105590
    @Francesco105590 Год назад

    Hi, where did you buy the wheels?

  • @zohairajmal
    @zohairajmal 2 года назад +1

    I follow your complete video and your documentation. I am not get success as the app could not work. When I connect HC-05 to ez GUI and go to AUX section it shows not enough information. Please help me how I can solve this issue?

    • @pradumpal8792
      @pradumpal8792 Год назад

      You need to set your HC-05 bout rate to 115200 first, for this you need to set it by AT command mode

  • @harishkumar3481
    @harishkumar3481 3 года назад

    Bro config.h is not showing in drop down when I am uploading code then what should I do pls help I am using arduino ide 1.8 version

  • @raflonoce
    @raflonoce 2 года назад

    How could the robot follow the person who has the program installed in the smartphone autonomously ?

  • @danieldanny6188
    @danieldanny6188 2 года назад +1

    Ther Gerber file which you gave with this video is kind of different from the pcb used in this video, so basically will my project work with the only components used in the video? Please let me know

    • @apekshap4106
      @apekshap4106 Год назад

      Heyy can you share the Gerber file?

  • @ersenesn739
    @ersenesn739 2 года назад

    Is there an error or missing in the circuit connections?

  • @frankn2912
    @frankn2912 4 года назад

    Well done Joakim. How do you create the PCB Boards?

    • @popovek
      @popovek 4 года назад

      Hallo! You can use it, with some changing.
      a.aliexpress.ru/_eNRPmV .

  • @sadsausage2224
    @sadsausage2224 3 года назад

    How much did this cost and how long did it take to build?

  • @shivanshchowhan166
    @shivanshchowhan166 4 месяца назад

    can we use arduino uno for the same pin?

  • @mariancostin7316
    @mariancostin7316 3 года назад

    If I Wanna use bigger wheels like 6-6.5 inch ,can I use the same equipment?or the software is based on the size of wheels?

    • @MrInnovative
      @MrInnovative  3 года назад

      just PID value will be change nothing else...

  • @saikatdhara5319
    @saikatdhara5319 4 года назад +3

    Sir I made the robot as you shown in the video and also make the circuit same as the diagram and put a capacitor of 100uf between vmot and gnd.
    But when I place the robot vertically steeper motors are continuously rotating
    I also done the calibration and Aux and pid settings.
    Please help me to figure out the problem.

  • @m.adnansohail1656
    @m.adnansohail1656 4 года назад

    In this sketch can I tune PID value myself. If yes please guide where. I can't find PID variables

    • @popovek
      @popovek 4 года назад

      You can change PIDs in GUI.
      PIDSPEED is PIDROLL in GUI. PIDANGLE is PIDLEVEL.

  • @thecreatorpro9663
    @thecreatorpro9663 4 года назад +1

    Sir Kon sy course may aysy project banany ko milta ha batao please sir please

  • @Richard-vw8no
    @Richard-vw8no 3 года назад +6

    $2 part... $25.02 for shipping!

  • @Bzl_777
    @Bzl_777 8 месяцев назад

    Sketch is giving compilation error please help
    And also how to get config.h option in new ide

  • @sunilrupnure1356
    @sunilrupnure1356 4 года назад +1

    Hello sir..
    I need to run stepper when 1st input pressed with acceleration to high speed continuously after pressing another 2nd input it should stop at given steps with deacceleration how to do it?? Can u plz help me??

  • @thecreatorpro9663
    @thecreatorpro9663 4 года назад +1

    Sir aap ny Kon sa course Kiya ha batao please sir please

  • @condronugroho9388
    @condronugroho9388 4 года назад

    Looks simple but...hehehehe I've found a free sketch of balancing robot on Google and It's actually NOT simple. Normal mode, free falling mode, etc, etc.

  • @rushikeshpadir2858
    @rushikeshpadir2858 4 года назад

    God bless you man!!!!!

  • @bhavyanaik8532
    @bhavyanaik8532 2 года назад

    Can we use different kind of battery

  • @theindianinnovator4179
    @theindianinnovator4179 3 года назад

    Sir pls replay fast can we use gear motor instead of servo pls replay faster

  • @Francesco105590
    @Francesco105590 2 года назад

    to premise that I have 65 cm wheels, could this be it?

  • @SketchwareExpert
    @SketchwareExpert 4 года назад

    Bro can I use BO motor in it

  • @gamersofficials2584
    @gamersofficials2584 4 года назад +1

    Mast bro..

  • @zainalhas7416
    @zainalhas7416 4 года назад

    good

  • @Francesco105590
    @Francesco105590 2 года назад

    Hi, help, I have assembled the robot, but it swings and I have to hold it with my hand, what should I change as a PID parameter

  • @bpugsy719
    @bpugsy719 3 года назад

    where do i get the wheels???

  • @justkillerz5219
    @justkillerz5219 2 года назад

    IN THE APP AUX IS SETTING NOTSHOWING PLS HELP ME BRP

  • @preethirajendren5035
    @preethirajendren5035 8 месяцев назад

    Sir....how much it take to develop this model

  • @hiper_tops
    @hiper_tops Год назад

    I get "warning no data received" when I connect to my robot on ez-gui, what should I do? Nothing appears under AUX

  • @electronic7979
    @electronic7979 4 года назад +1

    Very good 👍

  • @pritigangavkar2898
    @pritigangavkar2898 3 года назад

    Where is ON/OFF switch,And how can i start robot second time without on/off switch

  • @preethirajendren5035
    @preethirajendren5035 7 месяцев назад

    Sir....does it run without chip

  • @samarthvaishnav7
    @samarthvaishnav7 3 года назад

    My robot dosen't stand steadily it becomes jittery and fall off plss help🙏🙏😄

  • @sunsetthireach3223
    @sunsetthireach3223 7 месяцев назад

    Can I use an Arduino uno

  • @venkateshwaranp9517
    @venkateshwaranp9517 4 года назад

    Hii...can u plz explain how to configure the bt-05 with 115200

    • @askvina
      @askvina 4 года назад

      www.askvina.org/post/balancing-robot-arduino-ez-gui

    • @chanchalsakarde2768
      @chanchalsakarde2768 4 года назад

      @@askvina please share complete circuit diagram. thanks in advance