Embedded Systems & RoboticsCompleted
Sensor Robot
Autonomous obstacle avoidance and orientation sensing robot built on ESP32 & MicroPython
Hardware & Peripheral Allocation
Microcontroller:ESP32 (Dual-core 32-bit Xtensa)
Architecture Pattern:Non-blocking event loop in MicroPython
Peripheral & Pin Allocation:
- ▹HC-SR04 (Ultrasonic distance sensor with microsecond pulse timing)
- ▹MPU6050 (6-axis accelerometer/gyroscope over I2C)
- ▹SSD1306 (128x64 OLED graphic display over I2C)
- ▹ULN2003 / 28BYJ-48 (Stepper motor drivers and 4-phase motors)
Technical Overview
Sensor Robot demonstrates the combination of electromechanical actuators with sensor fusion. Running on an ESP32 with MicroPython, the robot scans its surroundings with an ultrasonic distance transducer, calculates navigation headings, and drives stepper motors for precise positional movement.
Engineering Decisions & Rationale
Why the system is structured this way rather than standard simplifications.
1.MicroPython for Rapid Hardware Prototyping
MicroPython enabled rapid iterative tuning of the obstacle-avoidance algorithm, sensor calibration curves, and OLED layout rendering.
2.Precise Stepper Control vs. Open-loop DC Motors
Stepper motors allow exact step counting and repeatable 90-degree spin turns in indoor mapping tests.
Key Technical Highlights
- Autonomous obstacle detection and clearance calculation via ultrasonic sonar sensor
- Precision dual stepper motor trajectory control for exact wheel rotation and angles
- Accelerometer tilt and pitch monitoring to identify inclines, drops, or tip-over hazards
- Real-time visual telemetry and status feedback displayed on an I2C SSD1306 OLED screen
- Buzzer and multi-LED diagnostic signals for state changes and collision warnings
MicroPythonESP32RoboticsI2C / SPISensors & ActuatorsStepper Motors