Ball-Balancing PID Beam Kit: Arduino Uno, MPU6050, DC Motor
Open this project in the Soldr app → What is Soldr.ai → wiring, code and test steps for exactly these parts
Ball-Balancing PID Beam Kit: Arduino Uno, MPU6050, DC Motor — an intermediate-level kit.
Ball-Balancing PID Beam Kit: Arduino Uno, MPU6050, DC Motor
Every part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-7 days.
Kit at a glance
What you build: A ball-balancing platform: an MPU6050 measures the tilt of a beam, an encoder (LM393) tracks the motor, and an Arduino Uno runs a PID loop that drives a 12V DC motor through an L298N to keep a ball centred.
What's in the box
- Arduino Uno R3
- MPU6050
- L298N Driver
- DC Motor 12V
- LM393 Encoder
- 0.96in OLED
- 1N4007 Diode × 5
- 4.7kΩ Resistors × 5
- 100nF Caps × 5
- 400-pt Breadboard
- M-M Wires × 25
- 12V Adapter
Power: 12V adapter included. The beam and ball are not included.
Skill level: Intermediate (5-6 hours).
Frequently asked questions
Is the hardest part the code?
Usually the tuning: PID gains that work for your beam and ball.
What builds the beam?
Any light, stiff strip; it isn't included.
Demonstrate how modern vehicles maintain stability during sudden tilts or crash-like forces. This kit constructs a single-axis platform where a DC motor continuously adjusts a beam to balance a rolling ball, using real-time MPU6050 tilt data and a tuned PID control loop. It’s a direct hands-on model for automotive electronic stability control, perfect for school innovation labs and engineering project submissions.
What You'll Build
You’ll assemble a working digital balancing rig. A 0.96-inch OLED shows live tilt angles and motor position. When you nudge the beam, the system reacts instantly — correcting tilt and keeping the ball centered. The same logic used in vehicle rollover prevention or crash impact compensation is here, scaled down for your desk.
What You'll Learn
- Read and calibrate MPU6050 accelerometer and gyroscope data over I2C
- Implement a proportional-integral-derivative (PID) algorithm on Arduino Uno
- Drive a 12V DC motor through an L298N H-bridge with encoder feedback
- Debug control loops using real-time OLED visualization
Kit Contents
| Component | Quantity |
|---|---|
| Arduino Uno R3 | 1 |
| MPU6050 | 1 |
| L298N Driver | 1 |
| DC Motor 12V | 1 |
| LM393 Encoder | 1 |
| 0.96in OLED | 1 |
| 1N4007 Diode | 5 |
| 4.7kΩ Resistors | 5 |
| 100nF Caps | 5 |
| 400-pt Breadboard | 1 |
| M-M Wires | 25 |
| 12V Adapter | 1 |
Who This Kit Is For
CBSE students preparing for physics or electronics exhibitions, B.Tech ECE/EEE undergraduates tackling mechatronics mini-projects, and ATL Tinkering Lab innovators exploring motion control. Also ideal for Smart India Hackathon prototypes where sensor-based stability is a core function.
Built and Backed by Compoden
Every Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We've spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.
What if I get stuck during the build?
Scan the QR code to chat with the AI companion, or send a photo on WhatsApp to our Bengaluru team — we’ll help you debug the issue step by step.
Do I need to solder any component?
No soldering is required. All connections use a breadboard and male-to-male jumper wires; the motor driver and encoder come with screw terminals.
How do I tune the PID values for a new ball?
The AI companion guides you through a simple calibration routine on the OLED. Start with the provided baseline values, then tweak P, I, and D using the encoder knob while watching the ball’s response.
What's in this kit
Other projects you can build
Shipping Information
- Prepaid Orders: ₹45 for orders up to ₹1,999, FREE shipping above ₹1,999
- COD Orders: ₹45 shipping for orders up to ₹1,999, FREE shipping above ₹1,999. COD available.
- Delivery Timeline: Dispatch in 3-7 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items