Summary: PI software algorithm is popular for closed loop control as it s a direct software adaptation of traditional op amp circuits We developed a digital controller for educational purposes Fig 1 The PIC MCU drives current through an infrared emitter with its pulse width modulator PWM and measures the sensor voltage with its analog to digital converter ADC Fig 2
Image Dimensions: 400 x 502
Image originally found here.