Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Motors not engaging
tomlongmat-
e
Newbie
Posts: 6
Permalink
Post Motors not engaging
on: May 25, 2013, 22:16
Quote

Hi there. Just spent the afternoon setting up the PolarGraph on OSX 10.8.3, with the FTDI drivers.

The controller app says Polargraph Ready (Uno), and it runs through the command queue as it should. The board flashes each time a command is received, but there is no reaction from the motors. The power supply is set at 6volts, and the motors wired as per the instructions.

How can we troubleshoot this further? We've reached an impasse!

thanks

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Motors not engaging
on: May 25, 2013, 22:19
Quote

Impasses suck! Hello and welcome, btw!

In the controller, if you press ctrl-c then you get to see the raw communication coming back from the uno. That sometimes sheds some light on things, so try it, and see if there are any error messages coming back form the uno.

Is it just "set home" that you tried?

sandy noble

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Motors not engaging
on: May 25, 2013, 22:20
Quote

Oh and does the uno and motorshield work with the standard adafruit example sketches?

tomlongmat-
e
Newbie
Posts: 6
Permalink
Post Re: Motors not engaging
on: May 25, 2013, 22:40
Quote

Hi Sandy - thanks for the quick response!

The console doesn't return any error messages. We've tried both 'set home', and 'move pen to point', and we get messages such as the following, which looks like there's a 2 way connection working:

incoming: READY
Dispatching command: C01,2480,1966,END
Last command:C01,2480,1966,END:1096005488
regenerating preview queue.
incoming: ACK,C01,2480,1966,END:1096005488

What are the Adafruit sketches you mention, are they to be run through Processing, or Arduino? And why does the board identify itself as an Uno? Should it not be a mega 2560?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Motors not engaging
on: May 25, 2013, 23:25
Quote

Ah, well there is the issue I guess, it's old firmware, and the wrong firmware. Sorry I'd assumed it was an uno you were using because you'd loaded the uno firmware. So, what kind of board are you using, what version of firmware are you using, what's the name of the firmware, where did you get it from, did you compile it from source or upload a hex file, what kind of motorshield are you using, and what guide have you followed to get it installed?

Right, yes, polargraph_server_a1 is the firmware for an uno. If you are using a mega, with an adafruit motorshield, then you should be using polargraph_server_mega. If you are using a mega with a polarshield, then you should be using polargraph_server_polarshield. All of the most recent versions of these can be found in the most recent zip in the downloads bit of the google code project.

The machine no longer gives an ACK, where did you get the firmware for it from? I'm trying to track down and fix old links 🙂

If you are using an Adafruit motorshield, then you can try the example arduino sketches that Adafruit have written to test it - http://www.adafruit.com/products/81. That will confirm whether it works at all. It certainly looks like comms are working ok, so that's one thing you don't have to worry about though.

sn

tomlongmat-
e
Newbie
Posts: 6
Permalink
Post Re: Motors not engaging
on: May 25, 2013, 23:45
Quote

Hi - we're using a Seeduino with an Adafruit Motorshield. The kit was actually bought in October 2011 but hasn't been set up until now. We've tried updating the firmware with polargraph_server_a1, but received an error as below.

avrdude: stk500_getsync(): not in sync: resp=0x00

Can you confirm the polargraph_server_a1 is the correct firmware for the seeduino/motorshield setup?

Will try out the adafruit sketches. Thanks again, Tom

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Motors not engaging
on: May 26, 2013, 00:13
Quote

Aha, things have moved on a bit since then. Seeeduino is an equivalent of Arduino Duemilanove, but the current version of polargraph_server_a1 does not fit on a Duemilanove. Just slightly too big.

So, there's an older version that still fits on though, version 1.2.5.

You can either compile from source in which case you need the arduino libraries (AFMotor, Accelstepper) installed in the right places, or you can upload a precompiled hex file using something like XLoader which is much easier for some.

sn

tomlongmat-
e
Newbie
Posts: 6
Permalink
Post Re: Motors not engaging
on: May 26, 2013, 00:28
Quote

So we're now getting something out of the motors at least - and have sussed out that the board is a Duomilanove w/AtMega328, or at least it accepts sketches written for that board. However, when the uploading the firmware (polargraph_server_a1), it reports that the sketch is too big, by approx 1kb. Is there anything that can be done about that? Am I even uploading the correct firmware for my board? thanks!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Motors not engaging
on: May 26, 2013, 00:29
Quote

see answer above

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Motors not engaging
on: May 26, 2013, 00:35
Quote

Oh I just thought, if you're using older version, then you should upload the precompiled hex rather than compile from source - because the older versions of the source rely on having older versions of the libraries (accelstepper).

sn

tomlongmat-
e
Newbie
Posts: 6
Permalink
Post Re: Motors not engaging
on: May 26, 2013, 00:46
Quote

Have managed to get v1.2.5 compiled and on the board, though I had to comment out a few lines to make it fit (just serial console messages). Now, however, I am not even managing to successfully connect when I open up the controller app. I will try XLoader from a PC when I get the chance, going to have to put this down for now! thanks for all your help.

tomlongmat-
e
Newbie
Posts: 6
Permalink
Post Re: Motors not engaging
on: May 26, 2013, 20:05
Quote

OK - wow, I've been all round the houses on this (failed uploading through virtual PC machines using XLoader and Arduino uploader, plus avrdude not recognising ports on the mac). The eventual way I got it running was installing processing 1.5.1 and running the older version of the controller sketch. Plus compiling and uploading the older version of the a1 server via arduino. A learning experience, lets say. thanks again - time for a pint.

** by the older version I mean v1.2.5.zip from code.polargraph.co.uk for anyone having similar issues.

constant19-
28
Newbie
Posts: 8
Permalink
Post Re: Motors not engaging
on: March 8, 2014, 01:08
Quote

Hi Sandy,
I'm using Uno with adafruit motor shield V2. My polygraph controller says "polargraph ready(uno)", but when i click "set home", the machine is not responding. the polargraph controller displayed "busy C09,2692,2241, Endc3573204119 "
What's wrong? I have been spend days to this point. I really want this to work out. Thanks a lot!

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