I have one of these (similar) cheap antenna rotator:
I'm using Arduino Uno and 2-channel relay board:
Every time I turn off/on motor(relay) via serial command, serial port on PC just freezes, and I need to unplug/plug android uno to make it work again. It's completely random, sometimes I can do multiple on/off's, sometimes it freezes after one command.
If I disconnect motor from relay, it works great...same with turning on/off led.
So obviously there is some problem with power/magnetic field or something else from motor (sorry I'm noob)
Arduino sketch is irrelevant here, because it works. I'm using arduino serial monitor to send commands to arduino uno (0 turn off, 1 turn on).
I have attached "schematics" how motor is connected to relay board.
Please help!
Thanks.
And also worth reading this on the ArduinoInfo.Info WIKI HERE:to make sure you know how to really use the opto-isolation on those relay boards:
You should be able to make this work.. With relays located next to the control box with a separate small 5V supply running the relay logic and coils, some cable distance to the Arduino, and the opto-isolation used so there is no direct electrical connection from the Arduino to the relay power section it should be LOTS better.