2-Wheel Self Balancing Robot by using Arduino and MPU6050

The 2-Wheel Self Balancing Robot is built by 3 pieces of acrylic boards and 2 encoder motors. The controller is Arduino uno and the sensor is MPU6050. Easy to build and control.

Mechanical Parts:
3 × Acrylic Board
16 × Brass Stud M4x16
2 × Encoder Motor
2 × Motor Brakcets
2 × Shaft Coupling
2 × Wheel
Screw M3
Nut M3
IMG_9606 IMG_9609

Electronic Modules:
1 × Arduino UNO
1 × Motor Driver L298N
1 × DC/DC Power Converter LM2596
1 × MPU6050
2 × 18650 2600mAh 3.7V Li-ion Rechargeable Battery
1 × Battery Holder
IMG_9705

Install 3 Acrylic board together by using Brass Stud M4x16, Screw M3 and Nut M3 to build the frame.
IMG_9605 IMG_9603
IMG_9602 IMG_9601

Install 2 Motor Brackets on the frame.
IMG_9597 IMG_9600

First, install 2 encoder motors on the motor brackets.
Then add 2 wheels on the motors.
IMG_9596 IMG_9595
IMG_9592 IMG_9590
IMG_9589 IMG_9587
IMG_9585

Add electronic modules and batteries on the robot.
IMG_9744 IMG_9746

The testing video of this robot will be updated soon.
You can see the testing video here.

63 Comments

  • Neil Hodgson April 24, 2014 at 3:37 pm

    Hello the 2 wheel self balancing robot its great, i would like to know if I could get the code for it please , I am new to this and still have not got the hang of the coding yet,
    darkhours2@gmail.com Thanks Neil

    Reply
  • Linard May 28, 2014 at 5:40 pm

    Where can I buy this ?

    Reply
    • ufactory July 25, 2014 at 9:43 pm

      Sorry we made it just for fun not for sale.

      Reply
  • Tyrone June 3, 2014 at 7:08 am

    Is the code available ? I am looking to build my own bot.
    Thanks,

    Reply
  • Tyrone June 27, 2014 at 1:55 am

    Hello how are you?
    Could you please e mail me the pin configuration for the two wheeled balance robot..
    Thank you.

    Reply
    • ufactory July 25, 2014 at 9:29 pm

      Hi, we built the balancing robot just for fun, so we can only help you by sending you the code. If you need it , please give us an email:D

      Reply
      • aneesh January 8, 2015 at 8:41 pm

        please send the code

        Reply
      • Gaurav January 14, 2015 at 10:21 pm

        Hello,i want to build this bot so can u send me the details and the code on grgupta@rocketmail.com

        Reply
      • Gaurav January 14, 2015 at 10:26 pm

        also can you brief about attaching serial bluetooth device

        Reply
      • jean-luc bergier January 21, 2015 at 11:17 pm

        Hi guys, very nice job !

        possible to have the arduino code please ?
        yushiromarcel@gmail.com
        Thanks a lot !!

        Reply
      • bergier January 21, 2015 at 11:19 pm

        Hi, nice job guys !
        Possible to have the code please ?
        yushiromarcel@gmail.com
        Thanks !

        Reply
      • dhivya February 17, 2015 at 5:32 pm

        send me the code sir

        Reply
      • sahil June 2, 2015 at 6:40 pm

        send code plz
        dreamz.sahil@gmail.com

        Reply
      • SASHI June 6, 2015 at 8:55 pm

        can u pls send me the code. im trying to build a ball balancing robot based on this

        Reply
  • Tyrone June 27, 2014 at 1:57 am

    Pin configuration for 2 wheel balance robot. Please.

    Reply
  • mjkdz August 2, 2014 at 5:57 pm

    Hello two great self-balancing robot, and give me the next code? Thank you

    Reply
  • cornel August 3, 2014 at 8:28 am

    Hello how are you?
    Could you please e mail me the code for the two wheeled balance robot..
    Thank you

    Reply
  • Rodrigo Luís Ribeiro August 4, 2014 at 12:53 am

    hello, I really liked your robot, I’m starting studying microcontrollers, could you send me your code, thank you.

    Rodrigo – Brasil

    Reply
  • Rodrigo Luís Ribeiro August 4, 2014 at 12:56 am

    Wow, how do I learn about this wonder of robot controlled by smart phone?

    Rodrigo – Brasil

    Reply
  • Manohar August 21, 2014 at 10:32 pm

    Sir,
    we are working the same project , can you please send us the source code.
    thank you in advance

    Reply
  • Adithya Madhav August 26, 2014 at 10:11 pm

    great work !!
    inspired me to build one my self
    if you can forward me the code and connection details it would be helpful.
    thank you.

    Reply
  • Paul Kang August 28, 2014 at 11:18 pm

    Hello, I like the project. Can you please send me the code? paul at paul-kang.com

    Regards and thanks,

    Reply
  • Tyrone September 3, 2014 at 8:13 pm

    Hear is my email robinsontyrone96@yahoo.com

    Reply
  • Sid September 9, 2014 at 5:16 am

    Could I please be sent a copy of your 2 wheeled robot code. Tyvm

    Reply
  • nanang suryadi September 18, 2014 at 2:20 pm

    hello can you send me the code…i wiil used it to learn microcontroller i already have the arduino uno thanks alot..

    nanang_ pontianak (west-borneo) indonesia

    Reply
  • Gary September 19, 2014 at 3:31 pm

    that device is awesome! Great job!
    would you mind to send me the code? Thanks a lot!

    Reply
  • Trung September 20, 2014 at 2:24 am

    hello , it is interesting. Could you give email me the code for two-wheel seft balancing robot.
    Thank you very much. my e-mail is tranxuantrung.93@gmail.com

    Reply
  • Michael September 30, 2014 at 1:08 pm

    Hi, I am recently building a same arduino Self Balancing Robot, could you send me your code, thanks. here is my email: codesignero@hotmail.com

    Reply
  • Julius October 10, 2014 at 11:14 am

    Great job! can you send me the code please? my email is juliuspeed@hotmail.com

    Reply
  • omar October 14, 2014 at 1:12 pm

    Hello. Your project is brilliant. Might you send your code?. That suffers for so many inconveniences but I am doing this project to be able to graduate of the university and have problems with the code. Thank you very much. My e-mail is ingomargranados11@gmail.com

    Reply
  • Anmol Bansal November 11, 2014 at 12:58 am

    pls send the code on-anmol.bansal1203@gmail.com

    Reply
  • yavari November 29, 2014 at 2:46 am

    Could you please e mail me the code for the two wheeled balance robot..
    Thank you

    Reply
  • Enrique December 5, 2014 at 9:21 pm

    Hello,
    I am also with a bit of research on this self balancing. i wan to try your development. could you forward me the code please to study it?
    thanks

    Reply
  • thinh December 14, 2014 at 9:36 pm

    Hello the 2 wheel self balancing robot its great, i would like to know if I could get the code for it please , I am new to this and still have not got the hang of the coding yet,
    truongthinhnguyen10@gmail.com Thanks Neil :)

    Reply
  • thinh December 14, 2014 at 9:38 pm

    Hello the 2 wheel self balancing robot its great, i would like to know if I could get the code for it please , I am new to this and still have not got the hang of the coding yet,
    truongthinhnguyen10@gmail.com Thanks Neil

    Reply
  • Tan December 17, 2014 at 5:55 pm

    I like your project! Please give me your code. I want to try it myself. My email is thntzin@gmail.com. Thanks!

    Reply
  • Dave December 29, 2014 at 10:23 pm

    Hi, very interesting project, could you please send me the code to the following e-mail address:

    feriadavid@gmail.com

    Thanks

    Reply
  • Gourav January 15, 2015 at 1:05 pm

    Hello Ufactory,can u send me the details like device with configuration,pin configuration and the codes on my email id which is grgupta@rocketmail.com

    Reply
  • Khanh January 24, 2015 at 8:46 pm

    Hello the 2 wheel self balancing robot its great .
    Could you please e-mail me the code for the two wheeled balance robot..
    khanh.startup@gmail.com
    Thank you !

    Reply
  • Khanh January 24, 2015 at 8:48 pm

    Hello the 2 wheel self balancing robot its great .
    Could you please e-mail me the code
    khanh.startup@gmail.com
    Thank you !

    Reply
  • Salah January 29, 2015 at 8:51 pm

    HI can you please email me the code for this robot please I am trying to understand how could I Program a self balanced robot thanks
    salah.ashkar93@gmail.com

    Reply
  • Hidayat W January 31, 2015 at 12:45 am

    Hey, could send code to my email hidayat.wijaya@rocketmail.com
    Thanks alot 😀

    Reply
  • LeDat February 11, 2015 at 6:34 pm

    Hello,this project is great,I just begin to make it, but I have a problem with PID controller ,could you send me your code , and I can reference to you. thank you so much. hear is my email : hopeletdat@gmail.com

    Reply
  • Fernando February 17, 2015 at 2:40 am

    could you send me the code please, my email is ionkraft@outlook.com

    Reply
  • Aldiaz February 17, 2015 at 9:48 am

    hi,could you please send me the code?i want to built my owm robot but still a bit confused for writing the code. thanks
    my email : iamaldiaz@yahoo.com or semut_geni46@yahoo.com

    Reply
  • Ibrahim February 27, 2015 at 4:22 am

    Hi there,

    You have done a great work. Thumbs up for you.

    I am very keen toward this project. Can you please mail me the pin Configuration .

    My email ID = ibrahimsiddiqui3@gmail.com

    Reply
  • jules March 29, 2015 at 10:51 pm

    please share to me your code and schematic diagram for uno please :) thanks mate tobi2546@gmail.com

    Reply
  • ALPER ATAN March 30, 2015 at 4:46 am

    Hi ! Could you please sent the schematic to this email: atanalper@gmail.com. thanks for sharing

    Reply
  • William March 30, 2015 at 9:20 pm

    Hi you. i’m really happy when i saw your robot. could you send me this code? I’m doing my project with that… it’s mean that much to me… thanks a lot.

    Reply
  • phan ba duc April 4, 2015 at 9:28 pm

    please share to me your code and schematic diagram for uno please :)
    thanks for sharing
    zapper020194@gmail.com

    Reply
  • madura June 4, 2015 at 9:55 am

    Hi can you send me the codes and wiring diagram also.thank you

    Reply
  • madura June 4, 2015 at 9:57 am

    hi can you send me the codes and wiring diagram also thi is my mail mdmkwijesingha@gmail.com

    Reply
  • Alisa June 12, 2015 at 2:06 am

    Hi!
    Can you share for me your code, thank you so much!
    Emmail: bctoyz@gmail.com

    Reply
  • toanvolvo June 16, 2015 at 2:28 pm

    Could you send me the schematics of the robot please : toanvolvo@gmail.com

    Reply
    • ufactory June 17, 2015 at 11:12 am

      Hello, we upload the source code to the Github, you could download there

      Reply
  • Ameet July 16, 2015 at 6:19 pm

    hi, this ameet i am trying to build a balancing robot but the code which i getting is proper so can you send me the code so i can apply for first project
    thanks,
    be making a good project

    Reply
  • Harsh Patel October 31, 2015 at 7:20 pm

    Hiii ,
    cool project
    Need help Mail me the code and schematics or the circuit

    Reply
  • JOse November 1, 2015 at 1:21 am

    Can u pls send me the code ?? josee.pachon@hotmail.com

    Reply
  • Aakash November 2, 2015 at 12:39 pm

    Sir , can you please send me semantics and code please?
    Emal: akash129261@gmail.com

    Reply

Leave a Comment