Create expressive animated robot eyes using the Arduino Uno and an SSD1306 OLED display in the Wokwi simulator. This beginner-friendly project displays smooth blinking, eye movement, and subtle expression effects on a 128×64 OLED screen — perfect for robotics and humanoid bot faces.
Components Required (Wokwi)
-
Arduino Uno
-
SSD1306 128×64 OLED Display (I2C)
-
Jumper wires (virtual in Wokwi)
Circuit Connections (I2C)
| OLED Pin | Arduino Uno |
|---|---|
| VCC | 5V |
| GND | GND |
| SDA | A4 |
| SCL | A5 |
Working Principle
-
The SSD1306 OLED communicates with Arduino using I2C protocol (SDA & SCL).
-
Using Adafruit GFX and Adafruit SSD1306 libraries:
-
Two large eye shapes are drawn using circles.
-
Pupils shift left and right to simulate eye movement.
-
Lines simulate blinking.
-
Slight radius changes create expression effects.
-
-
Animation is achieved using
display.clearDisplay(), redraw logic, and timeddelay().
Features of This Project
-
Smooth OLED eye animation
-
Natural blinking at random intervals
-
Realistic left-right pupil tracking
-
I2C communication with SSD1306
-
Fully testable in Wokwi simulator
-
Perfect robot face UI project
Applications
This animated OLED eye system is widely used in:
-
Robot face displays
-
DIY AI assistants
-
Humanoid robots
-
Interactive art projects
-
STEM robotics workshops
Since you're actively building robotics and Arduino projects, this can be a great face module for your robot car or IoT robot builds — especially for school demonstrations or robotics competitions.
Learning Outcomes
-
Using SSD1306 OLED with Arduino
-
Understanding I2C communication
-
Creating frame-based animations
-
Managing timing with
millis() -
Designing expressive robot interfaces
Circuit Connections (I2C)
| OLED Pin | Arduino Uno |
|---|---|
| VCC | 5V |
| GND | GND |
| SDA | A4 |
| SCL | A5 |
Features of This Project
-
Smooth OLED eye animation
-
I2C communication with SSD1306
-
Beginner-friendly Arduino project
-
Fully testable in Wokwi simulator
-
Perfect for robotics face display
Comments
Post a Comment