When uploading the sketch from the IDE I get “An error occurred while uploading the sketch”, I have Arduino Uno serial USB connection selected as the board connection and have copied and pasted the sketch code to the IDE. I have checked that my arduino is connected on COM3 and that it agrees in the IDE tools.

Having not seen this one before I’m working a bit off of what I can find on Google for that error message. It seems like quite a number of people have run into this on occasion when trying to upload sketches in the Windows IDE.

One more that has come up a lot in the results I’m reading. It sounds like the Windows IDE has some error where it will do this on occasion when you launch it by double-clicking an .ino file instead of opening the application, then the .ino file via its File > Open menu. That seems crazy to me, and it sounded like you were pasting it in anyway, but worth mentioning.

I don’t mean to be telling you to ‘go search Google’, but since this problem is occurring before Cayenne is involved (and it doesn’t look like a compiler issue with the sketch file), there is some value in Googling that error message just to see what others have tried, and what has and hasn’t worked for them. My apologies for the trouble you’re running into.

Certainly once you can get this thing uploaded, if there is trouble with the connection to Cayenne via the code in that script, I’ll be a better resource than Google

OK now I can upload the sketch for the serial USB connection and the IDE says Done uploading but the cayenne dashboard does not automatically appear. The screen in Step Three continues to show waiting for board to connect.

The problem before is that I had a couple servos connected to Pin 0 and 1 and it was conflicting, including a PING sensor to another Pin. I have now disconnected everything and it uploads.

Cool, glad it’s uploading at least. That USB Serial connection sketch is probably the funniest of all of the various ways we have to connect so there are some gotchas.

It requires a batch file to be running as outlined in this part of the comments to the sketch file:

Steps:
1. Set the token variable to match the Arduino token from the Dashboard.
2. Compile and upload this sketch.
3. Launch the connection script as described below for Windows or Linux/OSX.
Windows:
1. Open the Windows command line (cmd.exe)
2. Navigate to the scripts folder by typing "cd [path]", e.g. "cd C:\Users\[YourUserName]\Documents\Arduino\libraries\Cayenne\extras\scripts"
3. Run the script by typing "cayenne-ser.bat -c COM4" (where COM4 is port with your Arduino) and hitting Enter`

So the next 2 things I’d check are that you have that script running with the correct COM port for your Arduino, and that you’ve entered your Cayenne token between the quotes in this line:

char token[] = "abcdegf12345";

You can grab your token from the same page that’s sitting on ‘waiting to connect’ right above that text, if you don’t already have it in the sketch.

From personal experience I would say stay away from the 5500. I couldn’t find much in documentation on it as far as using all the bells and whistles it has anyway (if anyone has any links they would be appreciated) so it’s basically only an ethernet shield with a bloated library.

There are no remote commands in Cayenne for Rebooting an Arduino in the same way that we have for Raspberry Pi. (and not that they would work anyway if we see the device as offline). I would just power cycle it – the last sketch that’s been flashed to it will be retained through the power cycle.