Hi all, I’m a noob hoping to be pointed in the right direction.
I have a fan that is controlled using a little handheld controller with a single button that cycles through 10 different speeds. I’d like to ditch the controller and use an ESP32 to choose my speed instead.
As per the picture below, there are 3 wires that run between the fan motor and the controller - they’re labelled +10V (red), GND (black) and PWM (yellow). Seems like the motor side feeds power to the controller and it sends PWM back. I have measured the voltage on the PWM wire and it looks like setting 1 reads 1V, setting 2 reads 2V, etc., all the way up to 10V at full tilt.
Can someone help me figure out what I’d need to eliminate the controller and use a PWM pin on an ESP32 to take its place? I can run all 3 wires back to my ESP.