Build a Self-Balancing Robot with Arduino for Beginners
Rachel De Barros
@racheldebarrosliveAbout
Master Arduino Programming For Any Project! Go from absolute beginner to building and coding your own Arduino projects from scratch using the most popular electronics components, even if you’ve never coded or built a circuit before. Ditch those boring tutorials! I’m Rachel De Barros, and I’m here to help you master Arduino, electronics and robotics to bring your tech ideas to life! No fluff, no filler – just hands-on, project-based learning with live video chat support and accountability that will have you building home automation, weather, motorized prop, robotics, wireless IoT-enabled projects and more in no time!
Latest Posts
Video Description
In this beginner-friendly tutorial, I’ll show you how to build a two-wheeled self-balancing robot using an Arduino Uno and an MPU6050 gyro sensor—no fancy tools or 3D printing required! We’ll go step-by-step through wiring, coding a PID controller, and even building a lightweight robot chassis from foam board and hot glue. What you'll learn: - How to wire the MPU6050 and motors to your Arduino - How a PID controller keeps the robot balanced - How to build a DIY robot chassis without special tools - Tips for tuning and troubleshooting 🔗 Full Tutorial & Code: https://racheldebarros.com/project/build-a-self-balancing-robot-with-arduino/ 🤖 WANT MORE Arduino projects with wiring diagrams and code? NEED GUIDANCE with your project? ▶︎ JOIN my Discord Community ▶︎▶︎ https://racheldebarros.com/membership • Live Workshops • Arduino Project Build & Code-alongs • Small Group Office Hours • Personalized Project Support Prefer to join through Patreon instead? I'm on there too! (same membership perks) ▶︎▶︎ https://patreon.com/racheldebarros 🛒 BUILD YOUR OWN Self-balancing Robot with Arduino Arduino Uno: https://amzn.to/44baHaO MPU6050: https://amzn.to/4jyoY6f L298N Motor Driver: https://amzn.to/4jqLDBk 3-6V DC Motors & Wheel Kit: https://amzn.to/4iCGZPD 18650 3.7V Li-Ion Rechargeable Batteries: https://amzn.to/4jCn0Bl 18650 Battery Holder: https://amzn.to/4cIlaN9 Lever Wire Connectors: https://amzn.to/42UTQ9Y Mini Breadboard: https://amzn.to/4iB2fFf Jumper Wires: https://amzn.to/4e5CLNU Female & Male DC Jack Adapter: https://amzn.to/4jErOGq Foam Core Board 🎬 VIDEO CHAPTERS: How to Build a Self-balancing Robot 0:00 Welcome 0:13 Robot Body Template (Foam Core Board) 1:53 Intro to the Components 3:27 How to Wire the MPU6050 to Arduino 4:54 How to Wire the L298N Motor Driver to Arduino 8:41 How to Wire DC motors to the Motor Driver 9:28 How to Power the Self-balancing Robot Circuit 13:44 Transfer the Circuit into the Robot Body 15:08 Install Required Arduino Libraries 17:04 Calibrating the MPU6050 Sensor 19:34 Setting Up the Self-balancing Robot Sketch 22:29 Testing the Self-Balancing Robot 24:05 How to Use PID Values 28:29 Get Wiring Diagrams & Code on my Website 28:42 Join my Newsletter & Mentorship Community! 💬 Have any questions or want to share your own experiences, tips and advice about how to build a self-balancing robot? Drop a comment below – I love hearing from you! 🔔 If you find this video helpful, please hit that like button 👍 and consider subscribing to my channel for more Arduino/props/robot tutorials, tips, and tricks. Your support helps me create more content like this! ---------------------------- Some links here (Amazon) might earn me enough nuts and bolts (aka commission) to keep the LEDs blinking and servos turning. No extra cost to you, just a lil' fuel for my caffeine-powered nights of DIY-ing and passing on what I learn to all of you. I only feature stuff that's survived my "Did-it-Explode?" test. Build on, and thanks for the recharge! #arduino #arduinotutorial #arduinoproject #arduinocode #arduinoprogramming #selfbalancingrobot #mpu6050
Upgrade Your Everyday
AI-recommended products based on this video

Amazon Echo Show 8 (newest model), With Spatial Audio, Smart Home Hub, and Alexa, Charcoal

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, with Active Noise Cancellation, Adaptive Audio, Transparency Mode, Personalized Spatial Audio, USB-C Charging Case, Wireless Charging, H2 Chip

Wireless Earbuds, Bluetooth 5.4 Headphones, True Wireless Stereo Earphones with IPX7 Waterproof, Noise Cancelling Mic, Fast Charging and Comfort Fit Ear Buds for Sports/Workouts - Black

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, Personalized Spatial Audio, Sweat and Water Resistant, USB-C Charging Case, H2 Chip, Up to 30 Hours of Battery Life, Effortless Setup for iPhone

Apple AirPods Pro 2 Wireless Earbuds, Active Noise Cancellation, Hearing Aid Feature, Bluetooth Headphones, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

Smart Watch for Men/Women, 1.95" AMOLED Fitness Tracker Watches with Bluetooth Calls/Flashlight/100+ Sport Modes Heart Rate/Sleep Monitor Ultra Lightweight Ultrathin Design

Smart Watch for Men Women (Answer/Make Call), 1.96" HD Smartwatch Fitness Activity Tracker, 110+ Sports IP68 Waterproof, Heart Rate/Sleep Monitor/Pedometer/Calories, Fitness Watch for Android iOS
![Apple Watch Series 10 [GPS 46mm case] Smartwatch with Rose Gold Aluminium Case with Light Blush Sport Band - M/L. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant](https://m.media-amazon.com/images/I/61nNNMI1cFL._AC_UL960_FMwebp_QL65_.jpg)
Apple Watch Series 10 [GPS 46mm case] Smartwatch with Rose Gold Aluminium Case with Light Blush Sport Band - M/L. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant
![Apple Watch Series 10 [GPS 42mm case] Smartwatch with Jet Black Aluminium Case with Black Sport Band - S/M. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant](https://m.media-amazon.com/images/I/6105jZyXyPL._AC_UL960_FMwebp_QL65_.jpg)
Apple Watch Series 10 [GPS 42mm case] Smartwatch with Jet Black Aluminium Case with Black Sport Band - S/M. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant

NOCO Boost GB40: 1000A UltraSafe Jump Starter – 12V Lithium Battery Booster Pack, Portable Jump Box, Power Bank & Jumper Cables - for 6.0L Gas and 3.0L Diesel Engines

UGREEN Nexode Power Bank 20000mAh 130W Portable Charger 72Wh PD Fast Charging 3-Port USB C Battery Pack with TFT Smart Display for MacBook/iPad/iPhone 16/Samsung S24 and More

ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

VOLTME Portable Charger, Slim 10000mAh 5V/3A Power Bank, USB C in&Out High-Speed Charging Battery Pack, Travel Essentials Dual Output Compatible with iPhone 16 15 14 13 12 Samsung Google iPad etc

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, with Active Noise Cancellation, Adaptive Audio, Transparency Mode, Personalized Spatial Audio, USB-C Charging Case, Wireless Charging, H2 Chip

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, Personalized Spatial Audio, Sweat and Water Resistant, USB-C Charging Case, H2 Chip, Up to 30 Hours of Battery Life, Effortless Setup for iPhone

Apple AirPods Pro 2 Wireless Earbuds, Active Noise Cancellation, Hearing Aid Feature, Bluetooth Headphones, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

Bose QuietComfort Bluetooth Headphones, Wireless Headphones with Active Over Ear Noise Cancelling and Mic, Deep Bass, Up to 24 Hours of Playtime, White Smoke

Barnyard Designs Indoor Herb Garden Planter Set with Tray, Metal Windowsill Plant Pots with Drainage for Outdoor or Indoor Plants, Set/3 (Black)

Eye Contact Web Camera for Desktop Computer – 1080P USB Camera with Microphone & Stand, Center Cam for Laptop or Desktop, Manual Focus, Plug & Play for macOS & Windows(Black)
![PEHAEL 3+3Pack for iPhone 17 Pro Max Privacy Screen Protector with Camera Lens Protector Full Coverage Anti-Spy Tempered Glass Film 9H Hardness Easy Installation Bubble Free [6.9 inch]](https://m.media-amazon.com/images/I/61PnVkv6KKL._AC_UL960_FMwebp_QL65_.jpg)
PEHAEL 3+3Pack for iPhone 17 Pro Max Privacy Screen Protector with Camera Lens Protector Full Coverage Anti-Spy Tempered Glass Film 9H Hardness Easy Installation Bubble Free [6.9 inch]
![Ailun 3 Pack Screen Protector for iPhone 16 Pro Max [6.9 inch] + 3 Pack Camera Lens Protector with Installation Frame,Sensor Protection,Dynamic Island Compatible,Case Friendly Tempered Glass Film](https://m.media-amazon.com/images/I/815keamN-BL._AC_UL960_FMwebp_QL65_.jpg)
Ailun 3 Pack Screen Protector for iPhone 16 Pro Max [6.9 inch] + 3 Pack Camera Lens Protector with Installation Frame,Sensor Protection,Dynamic Island Compatible,Case Friendly Tempered Glass Film























