Dc motor position control
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Converters (High Power) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

