My code is working correctly and I can turn off the fan and on as well
But it only works on full speed and lower speed of 1,2 and 3 doesn’t work
I’m using: 2.2uF 400V x1 3.3uF 400V x1 220kohm 1/4W x2 2.2 ohm 1/4W x2
This all components I’m using to control the fan speed
But it doesn’t seem to work… speed 1,2 and 3 don’t work but 4 works well
Well for a start R1 and R3 are probably not rated for that voltage. 1/4W resistors rarely have a voltage rating suitable for the peak voltage you are exposing them to (325V).
I can’t do any calculations for current because you have not supplied a power or current rating for your fan.
Hey, Thank you so much for your help but the issue is resolved, the error was the wrong connection of Resistors, once I connected them properly according to the circuit diagram it worked like charm. I was aware I had done the mistake in connection and so I was asking you to check the connection… But anyways thank you once again…
You were so right regarding this… it caught fire during the testing process only… I was trying to make it work using a touch sensor as well as using ESPHome… and all of a sudden the resistor was on fire…
Yes I know that, I was just letting you know what happened… I am ready with code, all I want now is to get stable resistors, which do you think I should go with?
Hello this is my code to control the fan speed and this works well, but the only problem I am having is when I press the button/sensor it updates but the updated version is not shown in HA Dashboard, how can I link sensors with output.