กลับไปหน้ารวมไฟล์
arduino-balancing-robot-a95ad3-en.md

This is a robot model; it can balance itself on 2 wheels using a MPU6050 sensor and Arduino.

EXPANDED TECHNICAL DETAILS

Inverse Pendulum Control

The Balancing Robot is a classic control-theory project that requires high-speed mathematical processing to remain upright on two wheels.

  • PID Loop Implementation: The Arduino captures the lean angle from an MPU6050 IMU. It then runs a PID (Proportional-Integral-Derivative) loop 100 times per second to calculate the required motor speed and direction.
  • Encoder Feedback: Uses optical encoders on the DC motors to monitor the robot's physical position and speed, ensuring it doesn't "Drift" away while balancing.

Mechanical Stability

  • Inertial Math: The firmware merges the Accelerometer and Gyroscope data using a Complementary Filter to get an angle that is both fast (Gyro) and stable over time (Accel).

ข้อมูล Frontmatter ดั้งเดิม

title: "Arduino Balancing Robot"
description: "Arduino used for a 2-wheel balancing robot."
author: "SAFVANOKP"
category: "Motors & Robotics"
tags:
  - "balancing"
  - "hobby"
  - "robots"
views: 23554
likes: 7
price: 2450
difficulty: "Intermediate"
components:
  - "1x Dual H-Bridge motor drivers L293D"
  - "1x Jumper wires (generic)"
  - "1x SparkFun Triple Axis Accelerometer and Gyro Breakout - MPU-6050"
  - "1x 3.7 V LiPo Battery"
  - "1x Arduino UNO"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/e425c8f5-42f4-4eff-aefb-a714466afe8f.ino"
documentationLinks: []
passwordHash: "ae0c08196c06e85efc008b1d8d99d4a8f172bb82cedd0e05849c77606c4cceec"
encryptedPayload: "U2FsdGVkX1+tmRxCfrbSBc5uhmKLfSW2uZWZKZeMIRuw3gcvq0lGMEJSu0RvcSdjsDcQTUmRZreRYai9ZVP9QrCLvhZNoZT8Afz+EKkiFFg="
seoDescription: "Learn to build an Arduino Balancing Robot. A DIY 2-wheel balancing robot project using Arduino for stability."
videoLinks:
  - "https://www.youtube.com/embed/uAgWfIx-OGY"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-balancing-robot-a95ad3_cover.jpg"
lang: "en"