Hi,
I built a wind sim following a few different guides, using the MotorShield v2.3. Everything was working fine for a day or two, then it started cutting out. I checked my soldering, changed USB cables and ports and it still cutting out. Does anyone know why it might be cutting out and then back in again?
Here is the log where the error is:
ERROR Closing arduino Wind Simulator@COM6 : reason System.IO.IOException: The I/O operation has been aborted because of either a thread exit or an application request.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
at System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
at System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
at ArqSerialLib.ArqSerial.SerialWrite(Byte[] data)
at ArqSerialLib.ArqSerial.FlushOutcoming(Boolean all)
at SerialDash.SerialDashController.Send(Byte[] customMessage, Boolean capture)
Tried a new Arduino, MotorShield, USB cable and ports and it still disconnects, progressively gets worse..
[2021-06-05 21:21:21,359] INFO - Connected to device on COM7 named SimHub Dash
[2021-06-05 21:21:43,194] ERROR - Closing arduino SimHub Dash@COM7 : reason System.IO.IOException: The I/O operation has been aborted because of either a thread exit or an application request.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
at System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
at System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
at ArqSerialLib.ArqSerial.SerialWrite(Byte[] data)
at ArqSerialLib.ArqSerial.FlushOutcoming(Boolean all)
at SerialDash.SerialDashController.Send(Byte[] customMessage, Boolean capture)
[2021-06-05 21:21:43,194] INFO - Arduino performance report for SimHub Dash@COM7 : Packetsize= 16, Packetbuffer = 1, SentDatagramsCount = 1309, FailedCount = 0, ReemitedCount = 0, ReemitedDuetoWait = 0, Current ahead = 1
[2021-06-05 21:21:43,194] INFO - Arduino performance report for SimHub Dash@COM7 : Packetsize= 16, Packetbuffer = 1, SentDatagramsCount = 1309, FailedCount = 0, ReemitedCount = 0, ReemitedDuetoWait = 0, Current ahead = 1
[2021-06-05 21:21:43,443] INFO - Forcing arduino sync
[2021-06-05 21:21:44,993] INFO - Game paused : true
[2021-06-05 21:21:44,993] INFO - New fuel stat aggregated 264.92/lap
[2021-06-05 21:21:46,693] INFO - Found one device on COM7 named {
"ConnectedModel": "j",
"Features": "GNIJPXV",
"TM1638ModulesCount": 0,
"UniqueId": "87d8e85b-2fcc-44b6-975d-467ad822cad4",
"DeviceName": "SimHub Dash",
"MotorsCount": 4,
"PortName": "COM7",
"HasBoost": 0,
"HasSpeedo": 0,
"IsBluetooth": false,
"HasTacho": 0,
"HasI2CLcd": false,
"HasRGBMatrix": false,
"ExpandedFeatures": [
"mcutype",
"keepalive",
"Gear",
"Motors"
],
"MotorsBoard": "Adafruit Motor Shield V2",
"MaxAheadDatagrams": 0,
"DatagramMaxLength": 0,
"MCUModel": "ATmega328P",
"ReceivedDatagramsCount": 0
}
[2021-06-05 21:21:46,693] INFO - Switching device named SimHub Dash to speed level 11 on COM7
[2021-06-05 21:21:46,693] INFO - Switching device on port COM7 to speed level 11, 115200 bauds
[2021-06-05 21:21:47,218] INFO - Connected to device on COM7 named SimHub Dash
If anyone could point me in the right direction it would be greatly appreciated! Really want to get the wind sim working in this summer heat 😀
Hi ! The error means the Arduino serial chip is failing, what kind of fans are plugged ? Does they matches the motor shield power capacity ? This could be a powering issue making power drop (and so usb chip would reboot) this could be also fans emi, but usually they are pretty "emi" quiet, so I don't believe it much.
Thank you for your help! It was a faulty PSU!
I was using an old 12V 3A PSU and 12V server fan with a max draw of 1.2a. Swapped over to a reliable PSU and the problem went away!
Next problem is: What to use the spare Arduino and MotorShield for. 😉
I'm not sure it is a faulty PSU...
Working fine on Bench PSU
Not working fine on two different 12v 3a & 5a adapters, one was a new 12v/5a adapter. -Works for 2minutes then cuts out and restarts, progressively gets worse
I have a 3m Type A USB cable to try, rather than a 2m extension and 1m Type A cable. I have ordered an Arctic fan to see if it was the cheap server fan EMI/problem.
I will also try my Bench PSU again and report back.
SOLVED: Removed USB extension cable, replaced with a longer 1 piece USB cable. Swapped over power plug from a 4 way to straight into the wall. It now works properly. 😀