Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAN M54 PWM how to set up bluepill #26

Open
cieelak opened this issue Aug 2, 2023 · 4 comments
Open

FAN M54 PWM how to set up bluepill #26

cieelak opened this issue Aug 2, 2023 · 4 comments

Comments

@cieelak
Copy link

cieelak commented Aug 2, 2023

HI there !

I got little trouble controlling my PWM fan, Fan will start at 10% Duty with the ignition on, cold engine, and during warm up, fan speed does not change, even if coolant reach 110 deg. Celsius. Hardware is defiantly good, as if i change value to 50% in line 771 and 772 in "SerialtoBMWcan" fan will speed up to 50%duty and stay there no mater what coolant temp. Is there anything else in code that I go to change ? What about line from 318 to 338 ? Coding is new to me so thanks for any advices....

Best Regards.

@cieelak
Copy link
Author

cieelak commented Aug 9, 2023

Hi, I spare some time and have a play with BMW fan and external PWM controller to check how is the fan behaving, and interesting result come up... At 10% duty fan spins at full speed, and 90% duty fan spins slowest speed, 0-10% and 90-100% Fan doesn't spin. At least that explain why the fan is always spinning with ignition ON ... however, I still don't know how to fix the code, please Pazi88 I need your assistance here :)

PS, Is my thinking correct, there is no implementation in code to run Fan speed depending on coolant temp, we can run fan and change FAN speed using cruise button only ?

@amasood1193
Copy link

amasood1193 commented Aug 10, 2023

not m54 related, but i am running Pazi's stm32 mega alternative with a GM PWM fan controller, it works perfectly for me. not had any issues with it. assuming the code is the same, should work the same on the bluepill, what controller do you have?

@cieelak
Copy link
Author

cieelak commented Aug 16, 2023

Right, so I think I got this figure out. I can control fan speed coresponding to coolant temp. In TunerStudio i got to select:

fan setling has to be "ON",
and "PWM" selested,
fan output pin: "Board Detaful"
Fan Curve adjusted,

In my case 90% is slowes speed and 10% is MAX FAN speed. but I still unable to stop the fan no mater what, so I think solution is bluepill firmware is to change PWM min duty to 0% or 5% and that should stop the fan, I will raport once I got this tested ...

@h25r
Copy link

h25r commented Mar 20, 2024

Right, so I think I got this figure out. I can control fan speed coresponding to coolant temp. In TunerStudio i got to select:

fan setling has to be "ON",
and "PWM" selested,
fan output pin: "Board Detaful"
Fan Curve adjusted,

In my case 90% is slowes speed and 10% is MAX FAN speed. but I still unable to stop the fan no mater what, so I think solution is bluepill firmware is to change PWM min duty to 0% or 5% and that should stop the fan, I will raport once I got this tested ...

same happens to me, the fan is always on
did you solved the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants