Autonomous Delivery Robot
Mobile robot capable of autonomous navigation and delivery, integrating LiDAR and IMU sensors with STM32 and ESP32 microcontrollers.

Component | Model |
---|---|
Microcontroller | STM32F407, ESP32 |
Sensor | LiDAR (RPLidar A1), IMU (MPU6050) |
Actuator | Stepper Motors, Servo Motors |
// PID control loop for motor speed
float Kp = 1.2, Ki = 0.01, Kd = 0.01;
float error, integral, derivative, last_error, output;
void controlMotorSpeed(float setpoint, float currentSpeed){
error = setpoint - currentSpeed;
integral += error;
derivative = error - last_error;
output = Kp*error + Ki*integral + Kd*derivative;
setMotorPWM(output);
last_error = error;
}