-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] Can't set EXTRUDER_AUTO_FAN_SPEED != 255 #15857
Comments
Could you try this using the branch from the following open PR? There were some PWM issues on the SKR Pro that are resolved as part of these changes. |
The PR mentioned above by @sjasonsmith correctly sets the PWM pins in the board variant. so please try it. iwhatever the result is let us know. |
Same error with #define EXTRUDER_AUTO_FAN_SPEED 106, if I let 255 I compile without error, juste warnings :
|
please attach config files (standard and advanced). I guess you found another bug. |
no wait. I found the problem. config files aren't needed. |
Ok |
@sjasonsmith Problem here is that STM32 don't have real "PWM pins". every digital pin can be defined as PWM. to check if a pin is actually defined as PWM you gotta make a loop. so a STATIC ASSERT (at compile time) can't be done. I'm opening a proper issue about this. |
@LinoBarreca I'm running your branch now, I've made more test today. It seems I've an issues with the extruder fan too (PLA cooler). If I set fan to 50% from the LCD, he clearly not spins at 50%, he stay very close to 100%. I have measured the supplied voltage at various speed values: 100% - 12V It's not related to your branch, I've put a previous build and this problem is already present. |
Hi there, SKR Pro with 1 Extruder set on Pin PB1 I try'd to compile with #define Extruder_Auto_Fan_Speed 127 and this error shows up https://pastebin.com/xuEYkyEX This was just to verify the issue from BastR Thank you all for your Help, |
@BlackMelt can you try something for me please, try to set your part cooling fan to 50% with your LCD and tell me if you hear clearly your fan slowing. As explained above mine doesn’t low his speed, it’s just to know if it’s hardware or software. Thanks you |
@BastR So my stepps ware fallowing: Hope this Bug gets Fixed, my ColdendFan is to Powerfull. Greez |
As regards the build error I already opened a bug with technical details which will help someone solve the problem.
if you have a square, 1kHz, 50% duty cycle, wave the software is ok. |
this should be closed as duplicate. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
SKR PRO is a board that is capable of hosting 3 extruders, so it has 3 PWM outputs for extruders fans (FAN0, FAN1, FAN2). I only have one extruder but I use the 3 FAN outputs this way:
-FAN0 is the extruder fan
-FAN1 is the hotend fan that is declared with E0_AUTO_FAN_PIN
-FAN2 is the board fan that is declared with USE_CONTROLLER_FAN
I want to set FAN1 (E0_AUTO_FAN_PIN) with a value other than 255 for EXTRUDER_AUTO_FAN_SPEED but Sanitycheck.h does not allow it:
Configuration_adv.h
SanityCheck.h
I've commented out all the lines above and I can compile, I've tried 127 and 63 instead of 255 and all values works.
I don't understand why it is allowed to set a different fan speed if SanityCheck will systematically reject it. I don't have the coding knowledge but it should be possible to set another fan speed value if the board has PWM outputs or if the user makes some tweaks (with Ramps fan extender or similar)
English is not my first language, I hope to make myself understood
The text was updated successfully, but these errors were encountered: