I’m speed-controlling a 12 V brushless DC Fan from the Photon. With PWM.
It works at first, but then the Photon gets damaged.
The PWM output breaks on the PIN used.
The PWM signal starts to look like a sawtooth
before it breaks, on a brand new Photon, it looks like it should:
I connect the fan like this
The fan datasheet is here, page 551 describes the PWM method.
From what I read, I should be able to connect the fan PWM directly to the Photon RX pin?
This is my code
analogWrite(FAN_SPEED_PIN,fanSpeed, 25000); //fan wants a 25khz signal
Does somebody know why this breaks the Photon?