I'm trying to control the speed of a 12V(0.14A max current) fan using three relays. It should have four states which are turned off, low speed, medium speed and high speed. What's the correct wiring for the relays and the fan? Here is my try:
I use ULN2003 for driving the relays which is controlled by esp8266.