Hi,
I'm having some weird connection problem with my arduino board.
I have an arduino uno connected to some robotic machine in my company , and to an xp workstation via USB serial.
The human operator controls the machine by sending commands through the USB serial to the arduino , thus controlling the machine.
This setup has worked for about a week, and the arduino was communicating with the workstation without a problem.
Now , at random times , between 5 minutes to a few hours of work the aruino will disconnect the serial port and would prevent from communicating with it.
I won't be able to reconnect to the arduino until i unplug the usb and replug it, or restart the computer.
I have seen this happen even using putty sending the serial commands , and have tried switching to a new arduino board with same results.
The serial port suddenly disconnects.
I know the arduino itself is not being reset because the problem sometimes happens that the serial connection is disrupted while the arduino is doing some work with the machine.
Even though the serial is disconnected, the machine does come to the right place meaning the arduino is still holding it's data and not being reset (counters, etc).
If someone would like to know some more of my setup:
Custom application (written in VB.net) -> (USB serial) -> Arduino ->(OutputPin 9,11 , InputPin A5 ) -> Schneider Electric PLC -> AC powered motor (controlling a 30 feet circular storage drawers)
Pins 9,11 sends commands from arduino to the PLC telling it to move motor up/down (respectively) , analog ping A5 reads a sensor value which tells the arduino when it has reached a drawer. ( and then decide whether to continue to next drawer or stop, etc)
Please help !
We have just moved this solution to production and this problem started only after a week's work....
thanks,
avi