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

[BUG] Layer cooling fans only works with 100% of pwm speed (ATMEGA2560) #25337

Closed
1 task done
Henyckma-Sensei opened this issue Feb 4, 2023 · 9 comments
Closed
1 task done
Labels
Bug: Confirmed ! T: HAL & APIs Topic related to the HAL and internal APIs.

Comments

@Henyckma-Sensei
Copy link

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

The layer cooler only works when the power percentage is at 100%, otherwise it does not activate, I use ramps 1.4 so I don't know if it happens on other boards
to make sure it was not an electrical problem, I went back to the previous version and everything worked perfectly.

Bug Timeline

This is a new bug but have some related bug #25018

Expected behavior

I was expecting the printer to set the fan speed expressed by the slicer

Actual behavior

The layer fan not are turning on while printing, doesn't do anything, I activate it at 75% in the menu and it doesn't turn on either... only if i turn at 100% can turn on but, only at full power.

Steps to Reproduce

  1. I compiled and flash new marlin
  2. After flashing it, I started to print several objects
  3. I realize that the layer fan doesn't work
  4. I try to activate it from the lcd it doesn't work either (30%, 50%, 75%)
  5. I increase it to the maximum speed and it works at full flow
  6. flashed again with the old firmware
  7. works normally, no problems

Version of Marlin Firmware

2.1.2 and Bugfix

Printer model

Custom prusa i3

Electronics

Ramps 1.4 (EFB)

Add-ons

none

Bed Leveling

None

Your Slicer

Prusa Slicer

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Marlin.zip

@ellensp
Copy link
Contributor

ellensp commented Feb 4, 2023

not current bugfix configs...

Updated to current bugfix for testing
bugfix 2.1.x Configuration.zip

@Henyckma-Sensei
Copy link
Author

not bugfix configs...

not current bugfix configs...

Updated to current bugfix for testing bugfix 2.1.x Configuration.zip

thanks, I used the bugfix only to to see if the fan worked so i left everything blank and just changed the motherboard section

@ellensp
Copy link
Contributor

ellensp commented Feb 4, 2023

Issue seem to be the frequency, pwm is working.

bugfix 2.1.x pin D9 62.5 khz
bugfix 2.0.x pin D9 980.4hz

@ellensp
Copy link
Contributor

ellensp commented Feb 4, 2023

I have a fix, 3 related bugs, works for fans. Got to check it doesn't break pwming leds.. but that will have to wait.. its 4:30am.

@Henyckma-Sensei
Copy link
Author

I have a fix, 3 related bugs, works for fans. Got to check it doesn't break pwming leds.. but that will have to wait.. its 4:30am.

I can wait as long as you want!, I appreciate your hard work, thank you!

@ellensp
Copy link
Contributor

ellensp commented Feb 5, 2023

@Henyckma-Sensei please test this PR

@Henyckma-Sensei
Copy link
Author

@Henyckma-Sensei please test this PR

Works great!

@ellensp
Copy link
Contributor

ellensp commented Feb 5, 2023

Ok then, closing this as solved. PR will get merged into bugfix soon

@ellensp ellensp closed this as completed Feb 5, 2023
@thisiskeithb thisiskeithb added the T: HAL & APIs Topic related to the HAL and internal APIs. label Feb 5, 2023
Bytecm added a commit to Bytecm/Marlin_Anet_A6_MKS_GEN_L that referenced this issue Mar 14, 2023
@github-actions
Copy link

github-actions bot commented Apr 7, 2023

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.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug: Confirmed ! T: HAL & APIs Topic related to the HAL and internal APIs.
Projects
None yet
Development

No branches or pull requests

3 participants