👑 Premium Sign in Sign up

EM08 · Sem 6 · Embedded systems

Servo controlled by a potentiometer

Aim: Map an analog input to a servo angle (closed-loop by the user).

🧪 Live simulation🧊 Real-time 3D bench⚠ Simulated values, not physical measurements

🔬 Virtual lab

Starting the lab…

📘 Theory

Reading the potentiometer and mapping 0–1023 to 0–180° makes the servo follow the knob: the basis of RC transmitters and joysticks.

angle = reading × 180 / 1023

🧰 Apparatus (virtual)

  • Dev board
  • potentiometer on A0
  • servo on pin 11

📝 Procedure

🎤 Viva questions

What is a dead band

A small range of input changes that is ignored to stop jitter.

How would you add smoothing

A moving average of readings.

🛡️ Safety

Virtual board. On real hardware, check supply voltages and pin current limits, and power motors and servos from a separate supply.

📚 Tools & references