Dc motor position control
이전 댓글 표시
Hello. I am modelling a solar tracker in Simulink. I have 2 LDR sensors attaches on a pv panel, and they give a voltage output depending on the sun light each one receives. I want to write a function that will read the two voltages values and compute the difference and then command a DC motor(which rotate the panel) to rotate until that voltage difference becomes zero. My question is what should be the command to the motor? The motor simulink block I created has an input of voltage and outputs an angle. If I use a PID controller I have to specify the referenced desired angle but this is unknown. The desired angle is reached when the voltage difference of the sensors is zero. Whould it be correct if I use a PID controller to control the motor speed? And the output of the function will be the desired speed(to operate the motors) and 0 to stop the motors.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Converters (High Power)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

