Added support for adafruit EMC2101 #480
Reference in New Issue
Block a user
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added temperature sensor support for Adafruit 2101
Added output support to change fan speed on Adafruit 2101
have you try setting up the clock to match the requirement of 25Khz for some fan ?

https://4donline.ihs.com/images/VipMasterIC/IC/SMSC/SMSCS00913/SMSCS00913-1.pdf
sadly, this wasn't a working branch for me, i've done a lot of tweak to bring it to a working state but i haven't tested everything yet.
You can find this work here for now: https://github.com/Vaarlion/OctoPrint-Enclosure/commits/master
I'll try to think to edit that link when i move all commit to a branch.
One thing that i don't quite understand about the pwm temperature logic is that it seam to override all other logic
No "off when not printing, on when printing, and keep on after for a while to cool down" for example.
Maybe I've missed something but for me this lake some "warm up the enclosure" and "cool down the enclosure" step.
I also have a huge doubt with this one :
234be72615It seam to me that some control of PWM output never did anything more than write the wanted
duty cycleto the output state, without actually changing the pin duty cycle ?calculated_dutyremains undefined if you have not added an emc output, because theforloop does not perform any iterations.This causes the following crash:
This PR is actually dangerous because it introduces a crash if no emc output is configured in the plugin.
The plugin crash causes the heater to turn on randomly, if one is configured, and the risk of melting the enclosure.
i was confuse to see this merged as for me it didn't work at the time... but it could also be me making a mistake.
I never created a merge request because i've only tweak stuff without truly understanding it all in my "fork", but it does work, and have been for over a year and a half
https://github.com/Vaarlion/OctoPrint-Enclosure/commits/master