# 2-Servo Biped Robot with Bluetooth Control and OLED Expressions ## Overview This project is a minimal biped walking robot built using only 2 servo motors. Unlike typical biped robots that use multiple servos, this design focuses on achieving movement and balance with very limited hardware. The robot can be controlled using Bluetooth commands and can display multiple facial expressions on an OLED screen. --- ## Features - Walks forward using Bluetooth commands (example: "forward 5") - Controlled wirelessly via mobile/serial Bluetooth app - Displays multiple expressions on OLED screen - Built using only 2 servos (minimal hardware design) --- ## Expressions Supported The robot can display the following expressions: - you are ugly(angry reaction) - smile - cheese - cry - sleep - wake - shoot (animation of a bullet hitting and cracking the screen) --- ## How It Works - The robot receives commands via Bluetooth - Based on the input: - It moves forward using a stepping sequence - Or updates the OLED display with a specific expression - Movement is controlled by carefully timed servo angles to maintain balance --- ## Example Commands | Command | Action | |-------------|----------------------------------------------------------------| | forward 1 | Move one step forward | | forward 10 | Move multiple steps forward | | You are ugly| Show angry expression | | smile | Show smiling face | | cheese | Show happy expression | | cry | Show crying face | | sleep | Show sleeping face | | wake | Wake up animation(also used to make it stop crying) | | shoot | Bullet animation | --- ## Components Used - ESP32 - 2x Servo Motors - OLED Display - Jumper Wires --- ## πŸ”Œ Wiring ### 🧠 Microcontroller - ESP32 --- ### πŸ€– Servos Each servo has **3 wires**: - **Red β†’ VCC (Power)** - **Brown/Black β†’ GND** - **Yellow/Orange β†’ Signal** #### Connections: | Servo | Signal Pin | VCC | GND | |--------------|-----------|------------|-----| | Left Servo | GPIO 25 | External 5V | Common GND | | Right Servo | GPIO 26 | External 5V | Common GND | --- ### ⚠️ Servo Power (CRITICAL) - DO NOT power servos from ESP32 5V pin ❌ - Use an **external battery (recommended)** Example: - 2x 3.7V Li-ion batteries (in series) or regulated 5V --- ### πŸ”— Common Ground (VERY IMPORTANT) You MUST connect: - Battery GND - ESP32 GND - Servo GND πŸ‘‰ All grounds should be connected together If not: - Servos will jitter ❌ - Robot may behave randomly ❌ --- ### πŸ–₯️ OLED Display (I2C) | OLED Pin | ESP32 Pin | |----------|----------| | VCC | 3.3V / 5V | | GND | GND | | SDA | GPIO 21 | | SCL | GPIO 22 | - I2C Address: `0x3C` --- ### πŸ“Ά Bluetooth - Built-in ESP32 Bluetooth used - No external module required Device Name: ESP32_EYES --- ### πŸ”‹ Power Summary - Servos β†’ External Battery - ESP32 β†’ USB / Battery - OLED β†’ ESP32 power - All grounds connected together --- ## 🧩 Connection Summary - Left Servo Signal β†’ GPIO 25 - Right Servo Signal β†’ GPIO 26 - Servo VCC β†’ External 5V - Servo GND β†’ Common GND - OLED SDA β†’ GPIO 21 - OLED SCL β†’ GPIO 22 --- ## ⚠️ Important Notes - Servos draw high current β†’ external power is required - Without common GND, signals won’t work properly - Incorrect wiring may cause OLED failure or unstable movement --- ## Challenges Faced - Maintaining balance using only 2 servos - Limited movement (no turning or backward movement yet) - Small OLED limits visual detail - Preventing the robot from falling while walking --- ## Future Improvements - Add turning (left/right movement) - Improve walking stability - Use additional servos for better balance - Improve OLED animations - Add voice control or AI-based interaction --- ## Demo https://drive.google.com/file/d/1dwXjC131IhD5XHVV8-G_h1PaHuegkTk5/view?usp=drive_link --- ## Images WhatsApp Image 2026-05-02 at 8 44 05 PM (3) WhatsApp Image 2026-05-02 at 8 44 05 PM WhatsApp Image 2026-05-02 at 8 44 04 PM (1) WhatsApp Image 2026-05-02 at 8 44 04 PM WhatsApp Image 2026-05-02 at 8 44 05 PM (1) WhatsApp Image 2026-05-02 at 8 44 05 PM (2) --- ## What I Learned - Basics of biped robot movement - Servo control and timing - Bluetooth communication - Designing systems with limited hardware --- ## Conclusion This project shows that even with minimal components (only 2 servos), it is possible to create a functional and interactive biped robot. It focuses on creativity, efficiency, and problem-solving under constraints.