Fuzzy logic controller Simulink embedding for dual axis solar-tracker
이전 댓글 표시
I am trying to test the FLC I designed for dual axis solar tracker. My system uses a 4 LDR sensor system(these 4 LDR's are placed in an enclosure) to detect when the sun's position changed. When the controller sees a difference between voltages output obtained from the 4 LDRs, an error appears in the system and the controller has to drive the motors accordingly in order to compensate for solar panel misalignment. So, my FLC's inputs will be: error and change_in_error. Well, it might sound stupid but I don't know whether I have a reference input or not. In a similar example from Mathworks, "water tank" there was a setpoint: desired level of the water. In my case I want just the solar panel to be aligned with the sun which means I want my solar panel to be almost perpendicular! Well, when this happens the sun's light will fall proportionally on the both sensors which means I will have a zero value error and the panel followed the desired position...do I have a setpoint?? how can I implement this kind of closed-loop control in Simulink? For driving the panel on any of the two axes I will use L298 motor driver to drive 2 Pololu Dc Motors 120:1 3mm shaft. This driver will receive PWM commands from the FLC output as the driver works with PWM commands. How can I implement this in Simulink?...I saw many blocks in Simulink's libraries that has to do with motors but none to be related to Pololu Dc Motor(brushed motor).I guess the output of the controller which will be the speed of the motor will have to be connected at the input of motor driver Simulink element and then scoped, right? :) Thanks in advance!
댓글 수: 2
Alin Andrei
2015년 8월 4일
편집: Alin Andrei
2015년 8월 4일
Shimaa Reda
2023년 6월 14일
where is the file
답변 (2개)
youssef ait khallouk
2019년 3월 14일
0 개 추천
sad story
카테고리
도움말 센터 및 File Exchange에서 Solar Power에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!