Skip to the content.

Student kit

Home · Wiring · Installation · Troubleshooting

LED–LDR Feedback Control Lab

A hands-on feedback control experiment using an LED (actuator), the environment (plant), and an LDR voltage divider (sensor), controlled via MATLAB and Simulink with an Arduino.

Start here: If this is your first time, do the steps under Quick start.


Quick start (5–10 minutes)

  1. Wire the kit → see Wiring
  2. Install MATLAB support package → see Installation
  3. Run Blink: matlab/Blink_led.m
  4. Run Sensor check: matlab/LDR_sanity_check.m
  5. Run PI control (script or GUI):
    • matlab/PI_led_control.m
    • matlab/Led_ldr_pi_gui.m

What’s in this toolbox

MATLAB (scripts + GUI)


Documentation