Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Big Bad Error message
aaron
Newbie
Posts: 8
Permalink
Post Big Bad Error message
on: February 4, 2015, 14:22
Quote

Hey everyone,

I've had some great success with building my polargraph, but I decided to make some new sprockets so that the chain wouldn't slip as frequently. When I installed them, everything worked great, and the motion was clean and tight until a weight caught on something briefly. I restarted the machine after some rearranging of the weights, and it wouldn't work!!

Now all I'm getting is this constantly streaming error message (see attachment). Any suggestions? Is my motor shot or something? I can't seem to send any commands to the machine at all now.

I'm using an arduino uno and Sandy's out of the box polargraph controller software. I didn't change a thing about the settings between the time it was running beautifully and this complete breakdown.

Thanks for any insights you all can provide.

Image

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Big Bad Error message
on: February 4, 2015, 15:42
Quote

Hey Aaron, that's an odd one that I've never seen before. I know you will have tried this, but I'll suggest it anyway:
Exit controller
Unplug machine usb
Unplug machine power
Restart PC
Plug in machine usb
restart controller

Assume you've done that.
Open the arduino IDE and start the serial monitor with 57600 baud rate. See if anything is coming from the machine. IF it is something "normal looking" (ie not a stream of gibberish), then try sending it some commands (any random characters will do) in the serial monitor and check that doesn't throw it into panic mode. It won't do anything, and should reply with a sane "cannot be parsed" message.

It looks like the machine has been sent some odd non-ascii codes, that sometimes happens when the baud rate is wrong, but if you haven't changes the code that won't be it. Now the 5x repetition of "Comm (MSG,E," could indicate some kind of looping problem, but it's just as likely to be a simple output of the 5 parameters that are allowed in a standard polargraph command. Maybe the memory has been corrupted somehow.

The motors really are very separate from the actual logic, and in fact the motors don't even need to be attached to run the code, so no comms behaviour could ever be affected by bad motors.

Can you re-upload the firmware? Might just straighten this snag out.

sn

aaron
Newbie
Posts: 8
Permalink
Post Re: Big Bad Error message
on: February 4, 2015, 22:37
Quote

Thanks Sandy! I'll take a look at the arduino IDE.

When you say "re-upload the firmware", do you mean upload the settings from the controller to the polargraph? If so, the answer's no - it's too busy freaking out to accept any commands from the queue.

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Big Bad Error message
on: February 4, 2015, 23:26
Quote

Aaron, Sandy is suggesting re-uploading the pre-compiled firmware .hex file to your arduino, or opening the source .ino in the IDE and compiling/uploading from there (your choice of methods, both have the same result).

You're using polargraph_server_a1 on an uno with an adafruit motor shield?

aaron
Newbie
Posts: 8
Permalink
Post Re: Big Bad Error message
on: February 5, 2015, 03:17
Quote

That's right.

I checked the arduino IDE and it has the same messages. I'm going to upload the polargraph_server_a1.ino from the IDE now, if I can remember what weirdness I had to do to get that going. Something about the Adafruit Motor Library... I have to try to recall. Oy.

aaron
Newbie
Posts: 8
Permalink
Post Re: Big Bad Error message
on: February 5, 2015, 03:30
Quote

Well, this is weird.

I uploaded the .ino file, after tweaking it for use with the Adafruit motorshield v2 and I'm still getting the same problem!

Image

aaron
Newbie
Posts: 8
Permalink
Post Re: Big Bad Error message
on: February 5, 2015, 04:40
Quote

Fixed it!

It was either the firmware got corrupted somehow and my restarting my computer and the board after uploading the .ino file jogged it back into place, or there was a short in the board where a piece of wire slipped and bridged two holes. In any case, I'm back up and running!

Thanks guys.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Big Bad Error message
on: February 5, 2015, 14:19
Quote

That was a puzzler. I wonder if there was a short, and that was causing odd characters to be generated, which were interpreted as inputs to itself, and caused the machine to fire off an error message. Who knows! Glad its fixed.

sn

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.038 seconds.