Hi everyone! I’m reaching out to seek some advice regarding an issue I’m encountering with my PWM-controlled fans and Dallas temperature sensors. I’ve set up a system using a NodeMCU2 board with four Dallas sensors and four fans connected to PWM pins. However, I’m facing a problem where the temperature sensors stop delivering values and throw an error related to an invalid scratch pad checksum whenever the PWM duty cycle isn’t at 0% or 100%. This issue persists even after extensive troubleshooting, including ruling out hardware and wiring problems.
I’ve tried adjusting the PWM frequency to 1000Hz, which resolved the sensor issue but made the motor coils extremely noisy. I also attempted to turn off the fans during sensor updates, but that didn’t help either. I’m hoping someone in the community might have encountered a similar issue or could suggest a workaround. Your insights would be greatly appreciated!