Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: L293 motor shield microstepping
Thebreizhm-
aker
Newbie
Posts: 9
Permalink
Post L293 motor shield microstepping
on: March 8, 2014, 21:00
Quote

Hello,
Thierry from France

just begin to built a polargraph : http://thebreizmaker.wordpress.com/2014/03/06/ce-soir-jai-imprime-2/

My electronic is a funduino méga2560, with an L293 motorshield adafruit clone ( no SD card extension for now )

I succeed to upload " polargraph_server_mega.cpp.hex" in the funduino with xloader, and to make my motors moving.
I use 2 old 200 steps motor from scraped printer, and i find the movement quite jerky and imprecise

I want to use the microsteppping function from le L293 motor shield.
How to set this option from controler software ?

If ino firmware ajustment needed, I can't achieve to upload firmware from arduino software ( Polargraph 1.7-1.6 ) get a message " accelstepper doesn't name a type "

Thanks in advance for your help

Regards. Thierry

Thebreizhm-
aker
Newbie
Posts: 9
Permalink
Post Re: L293 motor shield microstepping
on: March 8, 2014, 21:58
Quote

I answer myself...

Ok now for upload via arduino...I just forgot to copy dedicated libs in the arduino directory...oups...

Stay the question about setting for microstepping
regards

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: L293 motor shield microstepping
on: March 8, 2014, 22:11
Quote

Hi Thierry, welcome, and excellent work on your gondola and machine so far - looks great!

The firmware is set to use the 'interleaved' step type, and it's easy enough to change it, but it does need to be recompiled from source to do it.

That said though, I wouldn't recommend the microstepping - I never found it worked very well (which is why I didn't use it). Also, it will not fix your problems - if it is jerky or imprecise, it will be jerky and imprecise even with microstepping.

The issue that the Arduino IDE reports(... does not name a type) usually means that you have not installed the accelstepper library.

What I would do is make certain that your hardware is working properly first, before you try it with the polargraph firmware. You can do that by installing the Accelstepper library, and testing your board and motorshield with one of the accelstepper example sketches.

good luck!
sandy noble

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: L293 motor shield microstepping
on: March 8, 2014, 22:18
Quote

Haha, we both wrote at the same time 🙂 Well if you've got it compiling, there's no harm in trying microstepping, just need to change one line in the configuration.ino file:

const int stepType = INTERLEAVE;
to
const int stepType = MICROSTEP;

sn

Thebreizhm-
aker
Newbie
Posts: 9
Permalink
Post Re: L293 motor shield microstepping
on: March 9, 2014, 08:49
Quote

Hello Sandy,
Thanks for your answer I find this morning.
Just after sending my second mail yesterday, I searched in the differents thumbs from the firmware, found and test microstep versus interleave.
Agree it doesnt seems to help. only more noise 😉
I worked on adjusting speed an acc. and find something acceptable.
I will turn slick pulley with 50mm perimeter : 0.125 mm/step seems enough accurate ?
Thanks for your congratulation: 3D printer is an awesome tool for whom knows 3D drawing. Can't do without it anymore !
I will publish my drawings on thingiverse when completed
regards

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: L293 motor shield microstepping
on: March 9, 2014, 10:55
Quote

Try it and find out 🙂 I wrote a little in this parallel thread about resolution and when you need it and when you don't.

Summary: Vector drawing, low res is ok. For pixel shading with fine pens, higher res is better.

sn

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