Skip to content
ASLبشمهندس عسلAGENT / 101
HomeWorkToolsNotesAboutStart a project

OPEN FOR SELECTED COLLABORATIONS / 101

Bring the system that needs an answer.

Send a project briefEmail Ahmed

اسأل. تعلّم.

ابنِ. اختبر.

© 2026 AHMED IBRAHIM ASLبشمهندس عسلEGYPT / SYSTEMS ENGINEER / AGENT 101
Back to Tools

Interactive PID Simulator

Five short lessons on proportional, integral, and derivative control - fly a drone to a target height, then steer a car around a curved track.

Answer first

How do P, I, and D gains change rise time, overshoot, and settling?

Use the guided lessons to change proportional, integral, and derivative gains while a simulated drone holds altitude or a car follows a line. The simulator exposes overshoot, settling, and tracking error so you can connect each term to visible behavior. The gains are educational starting points and do not transfer directly to a physical plant.

LESSON

PROPORTIONAL ONLY

Kp alone pushes thrust toward the target height, proportional to how far away the drone is. Push it up and the climb gets faster - but watch STEADY-STATE ERR: gravity keeps pulling down, and a proportional controller always needs some remaining error to keep producing enough thrust to fight it. It never quite reaches the line.

CONTROLLER TUNING

DRONE

OVERSHOOT
0.0 %

How far past the target height the drone climbs before settling - driven by momentum (or accumulated I) carrying past the setpoint.

SETTLING TIME
-

How long until the height stays within a small tolerance band of the target for a full second.

STEADY-STATE ERR
0.00 %

The remaining gap between the target height and the drone's height once it's no longer actively correcting.

Design guide

Use the result with engineering context

Technical content reviewed September 15, 2026

When this tool is useful

  • Learning the effect of each PID term before tuning hardware
  • Comparing the same controller idea on altitude and line-following problems

What the result includes

  • Live motion plus overshoot, settling, and steady-state error for the drone
  • Average and maximum line-tracking error for the car

What the model does not guarantee

  • The simulated plant omits actuator limits, sample time, sensor noise, delays, saturation, and many real dynamics
  • Stable gains in this model do not guarantee stable or safe behavior on a real machine

Worked approach

Tune one effect at a time

Raise proportional gain until response becomes useful, add integral action only when persistent error matters, then add derivative damping while watching noise sensitivity and overshoot. Recheck every term after the plant or operating point changes.

Common decisions

Questions engineers ask

What does proportional gain change first?

Proportional gain strengthens correction for the current error. More gain can improve response, but excessive gain can create oscillation, overshoot, actuator saturation, or sensitivity to unmodeled dynamics.

When should I add integral action?

Add integral action when a persistent disturbance leaves steady-state error. Limit it when actuators saturate, because accumulated error can cause windup and a slow recovery.

Why can derivative action become noisy?

Derivative action responds to rapid change. Sensor noise contains rapid changes too, so practical controllers filter the derivative term and choose sample timing carefully.

Related build evidence

Wireless ROV Control System

See an ESP32 and NRF24L01+ architecture built for bidirectional commands and telemetry. It demonstrates control-system integration without claiming the simulator's gains were used on the vehicle.

See the project

Apply it to real hardware

Need a controller connected to sensors and actuators?

Send the plant behavior, sample rate, sensors, actuator limits, target response, and any test logs. Control design starts with the system, not copied gains.

Discuss the system
Ahmed Ibrahim Asl
Behind the workbenchAhmed Ibrahim Asl

Embedded Systems & IoT R&D Engineer

From a calculation to a working prototype.

I build embedded firmware, connected hardware, and the interfaces that make them usable. Explore the projects behind this workbench, or tell me what you need to build.

See embedded & IoT projects ↗Discuss a project ↗Read engineering notes ↗