i suspect my issue is similar to the previous post : https://forum.pololu.com/t/micro-maestro-is-turning-off/3541/1
Basically, when i switch on/off an external appliance, it had affected my micro maestro to turn off itself and stops receiving commands from my laptop.
My current power setup is as follows:
My servo power is connected to a wall wart 5V 1A.
micro maestro is powered by a laptop USB, which the laptop is powered the mains.(not battery).
My external appliance is an industrial type fan connected to the mains.
The fan is by no way connected to both the laptop and maestro. But when i switch on/off the fan, the servos connected to the maestro jitters and most of the time it turns off the maestro (green LED not lighting or blinking, and maestro control center is giving me "Error code 0x1f ").
To solve the issue manually, i have to close my program using the port , and re-plugin the usb for it to resume normal operation.
My exhibition requires the setup to be sustainable for long periods, without much manual attention to remedy the issue. The fan would be on and off frequently too.
Is there a way to prevent this to happen?
I was thinking if i modify my program send soft reset commands to the maestro when this happens, or can i even attach a battery to power maestro by connecting to Vin while attaching the usb(hopefully it will keep the maestro on)?
I have tried other appliances like lights and it does not seem to affect much. But the fan still affects the maestro, probably it had a current spike along the mains, which affected my wall warts and laptop as well.