I upgraded one of my projects with a stronger motor this week. Its a 220V AC motor(first AC I've done) and the idea was to turn on and off depending on the where its needs to be.
When I ran the program, I noticed that the display which shows its status displays random junk when the motor turns on and off.
The mcu controls the motor by controlling a mosfet which in turns opens and closes a relay. All works great except for the junk output. I read of all the possibilities and sat on the relay for a while.
If I remove the motor and just have the controller control the relay there is no interference. If I add the motor then interference is back. If I remove the motor and use an AC filament bulb then same issue.
I read a few articles about AC line interference but nobody ever gets to a "its working" stage. Is there a way this can be solved or should I place the controller in a steel box to shield it.
When I ran the program, I noticed that the display which shows its status displays random junk when the motor turns on and off.
The mcu controls the motor by controlling a mosfet which in turns opens and closes a relay. All works great except for the junk output. I read of all the possibilities and sat on the relay for a while.
If I remove the motor and just have the controller control the relay there is no interference. If I add the motor then interference is back. If I remove the motor and use an AC filament bulb then same issue.
I read a few articles about AC line interference but nobody ever gets to a "its working" stage. Is there a way this can be solved or should I place the controller in a steel box to shield it.