Introduction: 2-Wheel Self Balancing Robot by Using Arduino and MPU6050

Picture of 2-Wheel Self Balancing Robot by Using Arduino and MPU6050
2-Wheel Self Balancing Robot by using Arduino and MPU6050.

Use Arduino as the controller and sensor MPU6050 to control the balance. Just add a simple Serial Bluetooth module and use a  Bluetooth Serial Controller APP for Android Phone to make the remote control.

In the first version, the controller is Arduino UNO, then in the sencond version as the following video shows, just change it to Arduino Lenardo.



Now let's see how to make this robot step by step.

Step 1: Materials

Picture of Materials

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

Electronic Modules:
1 × Arduino UNO (Arduino Leonardo in the second version)
1 × Motor Driver L298N
1 × DC/DC Power Converter LM2596
1 × MPU6050
2 × 18650 2600mAh 3.7V Li-ion Rechargeable Battery
1 × Battery Holder

Step 2: Build the Frame

Picture of Build the Frame

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

Step 3: Install Motor Brackets

Picture of Install Motor Brackets

Install 2 Motor Brackets on the frame.

Step 4: Install Encoder Motors and Wheels

Picture of Install Encoder Motors and Wheels

First, install 2 encoder motors on the motor brackets.
Then add 2 wheels on the motors.

Step 5: Add Electronic Modules and Batteries on the Robot.

Picture of Add Electronic Modules and Batteries on the Robot.

Step 6: Source Code

Comments

krishnac85 (author)2017-10-15

how to connect please

krishnaramrao110@gmail.com

thank you

ADARSH KESHRI (author)2017-10-09

please send me a schematic:

adarshkeshri01@gmail.com

ADARSH KESHRI (author)2017-10-07

circuit diagram please.

adarshkeshri01@gmail.com

mkpeker (author)2017-10-04

You must provide wiring diagram, othervise this will not be an instructable

mkpeker (author)2017-10-04

you must provide a wiring diagram, othervise this willl not be an instructable

Cristian Columbina (author)2017-10-04

would you please send me the Circuit/schematic diagram - ccolumbina@gmail.com

deu1 (author)2017-10-01

HI UFACTORY,

I NOTICE THAT MANY POSTED COMMENTS ARE REQUESTING THE SCHEMATICS OR WIRING CIRCUIT FOR THE ROBOT. I WANT TO BUILD THE ROBOT AND HAVE ALL OF THE HARDWARE AND THE CODING UPLOADS INTO MY ARDUINO CLONE, BUT I TOO, DON'T HAVE THE WIRING DIAGRAM. I THINK I HAVE ENOUGH UNDERSTANDING OF HOW TO WIRE IT, BUT BEING A NEWBIE TO ARDUINO I WOULD REALLY APPRECIATE GETTING THE DIAGRAM RATHER THAN TRYING TO WIRE IT MYSELF. I'D RATHER LIKE TO SUCCEED THE FIRST TIME AROUND THAN FAIL THE FIRST TIME AROUND. THANKING YOU IN ADVANCE FOR THE WIRING DIAGRAM.

SINCERELY,

EMAIL: deu1@shaw.ca

ekilada (author)2017-09-19

The PDF link doesn't open..

MuhammadK36 (author)2017-09-17

please help for send me the schematic m.iqbal5392@gmail.com thank you

teamarduin (author)2017-09-14

could you please send me the schematic at yasaeed_95@yahoo.com

ved_19 (author)2017-09-06

Will i get a schematic for the same..!
Email id: vedantmevada@yahoo.com

FanJ1 (author)2017-09-02

i really like this project... but i found difficulties in connection... could u mind giving me the schematic diagram? thank you. here is my email: richardfan1995@gmail.com

FabricioP8 (author)2017-08-19

could you give me schematic diagram this project?

please send at mail please: p.fabricio0022@gmail.com

rendii (author)2017-08-11

could you give me schematic diagram this project?

please send at mail please. @rendi93ismandar@gmail.com

SurajS114 (author)2017-07-30

would you please send me the Circuit/schematic diagram -
surajshetty89@gmail.com

Mikhail85 (author)2017-07-28

would you please send me the Circuit/schematic diagram - mixailkalinin34@gmail.com

thank you so much :)

Mikhail85 (author)2017-07-27

Please send me schematic diagram of it on may mail id: mixailkalinin34@gmail.com

ShehanK1 (author)2017-07-27

would you please send me the Circuit/schematic diagram - shehanvg@gmail.com

thank you so much :)

stmargen29 (author)2017-07-27

Please send me schematic diagram of it on may mail id:

santomargen29@gmail.com

Thanks

rossitamiya (author)2017-07-20

Send the circuit diagram

Send me circuit diagram plz

Prompt (author)2017-07-11

Useless without schematic diagram. I think that author should respect others here. If you say A you will suppose to say B. In my humble opinion.

T r patel (author)2017-07-03

Send the circuit diagram

RicardoM248 (author)2017-06-15

Please send me schematic diagram of it on may mail id:

makiolo@gmail.com

Thanks

thipphawan (author)2017-06-12

Can you please send me the connection diagram.

inse05maii@gmail.com
singojamamoto (author)2017-06-11

This is super.

Can you please send me schematic for electrical wiring?

singojamamoto1@gmail.com

Thank you!

Sushmit9 (author)2017-06-09

Can you please send me the schematic for the electrical wiring -

sushie.speedy.richard@gmail.com

thank you :)

GuruB5 (author)2017-06-06

Can you please send me the connection diagram..
gurusivaram007@gmail.com

TochanFrancisco (author)2017-06-02

repost

can you share the schematic diagram ?

tochanfrancisco@gmail.com

Thank You

TochanFrancisco (author)2017-06-02

can you please share the schematic diagram?

please

tochanfrancisco@gmai.com

Thank You

창용전 (author)2017-05-29

can you please share the schematic diagram? please send at mail please

hemiyan92@gmail.com

Sseillier (author)2017-05-21

Please share the wiring for the encoders. Sseillier64@gmail.com.
Thank you!

ian0704 (author)2017-05-16

Does anyone have schematic
diagram?please send at mail please
whps0704@gmail.com

monkey000802 (author)2017-05-15

plz send me the schematic dannychanmonkey@gmail.com thank you

JavierG166 (author)2017-05-09

Can you please send me the schematic for the elecitrcal wiring -

gonzjavi@yahoo.com

thank you (:

engrzee (author)2017-05-08

Please send me the schematic. Thanks, regards

engrzee@gmail.com

AshkanK1 (author)2017-05-06

hello could you send to me schematic diagram this project?

ashkan.khajeh@gmail.com

DươngT38 (author)2017-05-03

could you give me schematic diagram this project?

please send at mail please

trunglunneverlove@gmai.com

saja2 (author)2017-04-28

I'm really liked your work and I'm trying to do this project, could you give me schematic diagram this project?

please send at mail please

fgeniusm@gmail.com

MoadO (author)2017-04-23

I'm really liked your work and I'm trying to do this project, could you give me schematic diagram this project?

please send at mail please

moad25@gmail.com

FahmiI6 (author)2017-04-19

Does anyone have schematic diagram?please send at mail please
fahmiilham14@gmail.com

MuhammadK36 (author)2017-04-18

I'm really liked your work and I'm trying to do this project, could you give me schematic diagram this project?

please send at mail please

m.iqbal5392@gmail.com

준엽성 (author)2017-04-09

Does anyone have schematic diagram?please send at mail please

zzwnsduq@gmail.com

John MarcM (author)2017-04-04

Does anyone have schematic diagram?please send at mail please yeahbah009@yahoo.com

moraesfer (author)2017-04-02

Same as everyone else, really liked you work, can you please send me the schematics?

moraesfer@hotmail.com

Thank you so much

Praveen977 (author)2017-04-02

Please send schematic.
This is my id..
praveen.97702@gmail.com

MohammadH73 (author)2017-03-30

great work ♥

can you send me the schematics please?
mhmdll.r8@gmail.com

Marco Limon (author)2017-03-29

Hi, I'm trying to do this project, but, I´m havin difficulties in my connections

can you send me the schematics please?

this is my mail: marckooz@hotmail.es

have a nice day

SoorajK2 (author)2017-03-29

Hey, I am making this project, my chassis isn't 3D printed though. I seem to have some problem with MCU6050 connections, can you send me the schematics, please?

soorajkumar2607@gmail.com

Thanks

DouglasH49 (author)2017-03-28

I interest to make a robot like this..

Please send me schematic diagram...

email: dogahenrrique_92@outlook.com

Thanks

About This Instructable

324,148views

289favorites

License:

More by Ufactory:The vision based pick-and-place with uArmUARM WITH VOICE CONTROL – EASYVR MODULEuArm Play Number Song with A Toy Piano
Add instructable to: