[HELP] How to control the speed of dc fan using PWM in Simulink? + Fuzzy logic controller and Arduino
조회 수: 8 (최근 30일)
이전 댓글 표시
Hello,
I'm currently doing my final year project, and part of my project, I need to control the speed of dc fan (12V) in Simulink. So, I thought I should use the PWM block in Simulink and set the pin number where I connect the fan.
And I'm using the fuzzy logic controller with 2 input (Temperature and Humidity), and 2 output (Ventilation fan and heater fan). So the idea is when the temperature is high, I want the speed of the heater is low. And the same goes when the temperature is low, I want the speed of the heater to be fast.
I tried using the PWM block in Simulink. The positive (+) of the dc fan were connected directly to the power supply of 12V. The negative (-) of the dc fan were connected to BJT Transistor PNP. And the "Base" of the transistor was connected to Arduino pin 6. However, the speed of the fan was not changing even though the temperature is high.
Is anyone knows how to control the speed of fan using Simulink?
Regards, Aiman.
답변 (0개)
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!