I am attempting to build a "smart" ceiling fan for a home automation system I have created and added to over the years. However, this is the first time I've tried controlling a fan motor and the first time I've used solid state relays (SSRs). My research (and now experience) shows me these two elements can be a bit tricky.
Note: I am a software developer with no formal electrical engineering education so you will forgive my ignorance when it shows.
In brief, the system powers on fine and can be controlled by my software running on a NodeMCU successfully. It can do this for several days. However, at some point, during a power-off cycle, the circuit will short and blow the fuse. Once this occurs, 4 of my 8 SSRs will be permanently closed.
I am very confident the short is occurring during power down (i.e,. while turning off the wall switch that provides 120v to the black (#6) wire as seen in the attached SmartCeilingFan schematic). This is true because when I had it on my bench testing it, I saw a blue flash from the fuse when I turned off the system after a successful test run. After that, the SSRs mentioned below were permanently closed. (This has occurred on three different prototypes I have done so it is clearly repeatable.)
Troubleshooting I have done:
- I have placed an oscilloscope on all of the used data pins on the NodeMCU and confirmed their behavior on start up to be as I state in the attached SmartFanWifi image.
- I have placed an oscilloscope on the data pins for both of the SSRs I suspect to be coming on at the same time and causing a short and confirmed that neither bounces HIGH during power down.
- I have gone over the G3MB-202P datasheet and the SSR's Common Precautions sheet in detail. However, this is where my lack of formal electrical engineering training will show... while I believe I have followed the guidelines and am in spec for the SSRs, I somehow must not be.
- I have bench tested the max amp draw of the ceiling fan by placing an amp meter in series on the load side of the fan and then held the fan from spinning (not a perfect way to do it I am sure, I'm willing to be taught). The max amp reading using the method was around 500 mA.
- The ceiling fan is a Hunter fan with this wiring diagram out of the box.
- Here is the datasheet for the L293D ICs.