Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Speed?
dchas
Newbie
Posts: 8
Permalink
dchas
Post Speed?
on: August 12, 2014, 00:28
Quote

Hi Sandy,
finaly got the polargraph running - after 3 broken Schmalzhaus easy drivers and one broken motor shield...

In windows I can't get the 64 bit version - even with latest java & running as admin. But no worries 32 bit works just fine.

I set speed to 4000 and acceleration to 2000. Having a draw area of 600 to 400 mm. Using roving a picture smaller than the drawing area takes about 5 hours to draw.

Using the serial stepper version:
https://code.google.com/p/polargraph/source/browse/embedded/branch/polargraph_server_serialstepper_itead/polargraph_server_serialstepper_itead.ino

Wondering if I have to hardcode speed and acceleration. Tips are welcome!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Speed?
on: August 12, 2014, 20:43
Quote

Hello! You should be able to set speed using the controller as with any other polargraph (settings on the 'setup' tab).

If you are using an Arduino MEGA2560, then you will find more features in the polarshield firmware (https://github.com/euphy/polargraph_server_polarshield) - the serialstepper code is pretty elderly now.

sn

dchas
Newbie
Posts: 8
Permalink
dchas
Post Re: Speed?
on: August 13, 2014, 13:32
Quote

the polargraph_server_polarshield (latest from github) did not compile on linux:

Arduino 1.5.7:
polargraph_server_polarshield.ino:106:16: error: 'prog_uint32_t' does not name a type
In file included from /home/nick/Downloads/arduino-1.5.7/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from /home/nick/Downloads/arduino-1.5.7/libraries/SD/src/SD.h:18,
from polargraph_server_polarshield.ino:46:
util.ino: In function 'long unsigned int crc_update(long unsigned int, byte)':
util.ino:392:31: error: 'crc_table' was not declared in this scope
util.ino:394:31: error: 'crc_table' was not declared in this scope

Arduino 1.5.6-r2
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp: In function ‘void spiSend(uint8_t)’:
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp:35: error: ‘SPI’ was not declared in this scope
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp: In function ‘uint8_t spiRec()’:
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp:44: error: ‘SPI’ was not declared in this scope
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp: In member function ‘uint8_t Sd2Card::init(uint8_t, uint8_t)’:
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp:251: error: ‘SPI’ was not declared in this scope
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp: In member function ‘uint8_t Sd2Card::setSckRate(uint8_t)’:
/home/nick/Downloads/arduino-1.5.6-r2/libraries/SD_save/src/utility/Sd2Card.cpp:507: error: ‘SPI’ was not declared in this scope

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Speed?
on: August 13, 2014, 13:35
Quote

Aha, someone told me about this recently - looks like I didn't put it into the code yet. Add

#include <SPI.h>

to the top of polargraph_server_polarshield.ino.

This is actually due to a bug (?) in 1.5x of Arduino (http://forum.arduino.cc/index.php?topic=173584.0). Give it a shot and let me know if it works please - I don't have a 1.5 installation nearby to test on.

sn

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Speed?
on: August 13, 2014, 13:38
Quote

(Have just committed that change to the repo)

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Speed?
on: August 13, 2014, 13:47
Quote

(oh, and once again, without the mistakes...)

dchas
Newbie
Posts: 8
Permalink
dchas
Post Re: Speed?
on: August 13, 2014, 16:34
Quote

thank you Sandy! workes on 1.5.6 (still not on 1.5.7)
I have to get a Mega now!

dchas
Newbie
Posts: 8
Permalink
dchas
Post Re: Speed?
on: August 13, 2014, 16:39
Quote

or - by any chane - is there a quick way to make it work on the uno (stripping of sd-card and lcd support)?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Speed?
on: August 13, 2014, 21:00
Quote

Nope, no quick way sorry! It would actually be much easier to strip the AFMotor stuff out of the _a1 version, and use the AccelStepper library directly in the way that the _polarshield version does.

Have a look in the _a1 version of configuration.ino, compared to the _polarshield version to see the difference - there isn't much else to do (can't think of anything anyway).

Will also free up a load of space too!

good luck 🙂
sn

dchas
Newbie
Posts: 8
Permalink
dchas
Post Re: Speed?
on: August 25, 2014, 08:27
Quote

Works! Thx!!

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