[HELP] How to control the speed of dc fan using PWM in Simulink? + Fuzzy logic controller and Arduino
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
1 comentario
Respuestas (0)
Comunidades de usuarios
Más respuestas en Power Electronics Control
Ver también
Categorías
Más información sobre Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!