DIY Desi Mochi Robot for ESP32-C3
An ESP32 display project for ESP32-C3 involving OLED display.
Parts and sourceBefore you start
Check the exact OLED display configuration against the upstream wiring or parts list.
Upstream README
-DIY-Desi-Mochi-Robot-
Meet the Desi Mochi Robot by Jayabeer Sutar! A charming DIY companion with a unique, handcrafted copper wire body. Powered by an ESP32-C3, it responds to touch with animated expressions on its OLED face and cheerful buzzer sounds. A creative, low-cost take on interactive robotics inspired by the original Mochi.
Desi Mochi Robot 🤖
A cute, interactive, and completely DIY companion robot made from a Xiao ESP32-C3 and a sculpted copper wire body. Mochi reacts to your touch with expressions and sounds!
!
This project is a perfect example of a low-cost, "Desi" (homegrown/DIY) approach to robotics, blending simple electronics with handmade artistry.
✨ Features
- Interactive Touch: Pat Mochi on its head (TP touch sensor) to see it react.
- Expressive Face: A 0.92" OLED screen serves as Mochi's face, showing different animations.
- Sound Feedback: A buzzer provides simple audio cues for interactions.
- Handmade Body: The unique body is crafted from copper wire, making each Mochi one-of-a-kind.
- Rechargeable: Powered by a 3.7V Li-ion battery with a TP4056 charging module.
🛠️ Components & Bill of Materials (BOM)
| Component | Quantity | Notes |
|---|---|---|
| Seeed Studio Xiao ESP32-C3 | 1 | The brain of the robot. |
| 0.92" I2C OLED Display (SSD1306) | 1 | 128x32 or 128x64 resolution works. |
| TTP223 Capacitive Touch Sensor | 1 | The 'head' or touch-sensitive area. |
| Buzzer Module (Active or Passive) | 1 | For making sounds. |
| 3.7V Li-ion Battery | 1 | Any small Li-ion or LiPo cell will do. |
| TP4056 Charging Module | 1 | For safely charging the battery via USB. |
| Copper Wire (1.5mm-2mm gauge) | ~ | For sculpting the body and legs. |
| Connecting Wires | Several | To wire everything together. |
🔌 Wiring Diagram
Connect the components to the Xiao ESP32-C3 as follows.
- OLED Display (I2C):
VCC->3V3GND->GNDSDA->D4SCL->D5
- Touch Sensor (TTP223):
VCC->3V3GND->GNDI/OorSIG->D1
- Buzzer:
+orVCC->D2-orGND->GND
- Power:
- Connect the
B+andB-terminals of the TP4056 charger to the battery. - Connect the
OUT+andOUT-terminals of the TP4056 to the5VandGNDpins on the Xiao ESP32-C3.
- Connect the
Desi Mochi Robot 🤖
A cute, interactive, and completely DIY companion robot made from a Xiao ESP32-C3 and a sculpted copper wire body. Mochi reacts to your touch with expressions and sounds!

This project is a perfect example of a low-cost, "Desi" (homegrown/DIY) approach to robotics, blending simple electronics with handmade artistry.
🖼️ Gallery
✨ Features
- Interactive Touch: Pat Mochi on its head (TP touch sensor) to see it react.
- Expressive Face: A 0.92" OLED screen serves as Mochi's face, showing different animations.
- Sound Feedback: A buzzer provides simple audio cues for interactions.
- Handmade Body: The unique body is crafted from copper wire, making each Mochi one-of-a-kind.
- Rechargeable: Powered by a 3.7V Li-ion battery with a TP4056 charging module.
-- Here is the link to my project demo video: https://youtube.com/shorts/pnR4JQ4UxOs?si=5XIZIw4JDLbaK2SZ
🚀 Setup & Installation
-
Configure Arduino IDE:
- Install the Arduino IDE if you haven't already.
- Add the ESP32 board manager URL to
Preferences:https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json - Go to
Tools > Board > Boards Manager, search for "esp32" and install it. - Select
Seeed Studio Xiao ESP32-C3as your board.
-
Install Libraries:
- Go to
Sketch > Include Library > Manage Libraries.... - Search for and install the U8g2 library by
oliver.
- Go to
-
Upload the Code:
- Clone this repository or download the source code.
- Open the
.inofile from thesrcfolder in the Arduino IDE. - Connect your Xiao ESP32-C3, select the correct COM port, and click the "Upload" button.
🙏 Acknowledgements and Inspiration
This "Desi Mochi Robot" project was heavily inspired by the original Mochi robot created by Huy Khong. His work provided the core idea and motivation for this DIY version.
Please check out the original project here: https://themochi.huykhong.com/
📄 License
This project is open source and licensed under the MIT License. See the LICENSE file for details.