I have an MG995 servo which I'm controlling via an Arduino Nano.
I have two switches also attached to the arduino, as well as some LEDs.
One switch moves the servo between two positions, whilst the other turns the LEDs on and off.
When watching Serial Monitor, I can see that the switches are being read correctly, and the LED switch works fine. However, I've found that by using the servo more than two or three times, the buttons stop responding. The Serial Monitor, stops displaying a readout from the switches, sometimes mid-line and I lose any control.
Occasionally when this happens, if I re-select the baud rate in the monitor, it seems to trigger the arduino to begin working again but not always (and this isn't really a solution as the device is designed to be used away from the computer).
The whole thing is being powered by a 1a 5v USB block with direct power to the servo and to the arduino.
I've been trying everything to get this to work and I'm a bit lost. Does anybody have any advice?
Thanks