Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: 1 2 [3]
Author Topic: New build and attempted firmware for step/dir drivers
sandy
Administrator
Posts: 1227
Permalink
sandy
Post Re: New build and attempted firmware for step/dir drivers
on: May 13, 2012, 13:57
Quote

Re scribbling, if the commands are not disappearing, maybe it is just a very dense pixel? Pen size and pixel size is the thing which combine to decide the number of scribbles.

Does the purple spot on your screen show the accurate position of the gondola?

merijnpen
Newbie
Posts: 19
Permalink
Post Re: New build and attempted firmware for step/dir drivers
on: May 14, 2012, 21:36
Quote

Where can I change this density? The purple dot seems to be at the right position all the time, with vectors, the lines disappear eventhough the purple dot does not follow them.

merijnpen
Newbie
Posts: 19
Permalink
Post Re: New build and attempted firmware for step/dir drivers
on: May 14, 2012, 23:23
Quote

yay, got some scribbling action by setting the pen size to huge numbers.

vectors are still not working though..

sandy
Administrator
Posts: 1227
Permalink
sandy
Post Re: New build and attempted firmware for step/dir drivers
on: May 15, 2012, 00:29
Quote

The density is the density of the pixel you're currently drawing. So if it's a dark pixel, then it'll be high, and will use lots of lines to try and fill the pixel in. If it's a light pixel, then it'll only use a few lines to fill it in.

If you have specified a very very thin pen, then it will need more lines to fill it in to the same darkness as if you'd specified a thick pen. This is why telling it you have a very thick pen gets it to put down less ink for each pixel.

Tell me, have you uploaded your machine spec to the board? (Setup tab -> "upload spec")? This tells it what size machine you have, how many steps per rev and how many mm extension per rev your motors have.

I think vectors are being sent, but ignored because the machine thinks they are outside of it's area.

sn

merijnpen
Newbie
Posts: 19
Permalink
Post Re: New build and attempted firmware for step/dir drivers
on: May 15, 2012, 13:50
Quote

oh wow! didnt see that button! it is working again! thanks again! 😀

sandy
Administrator
Posts: 1227
Permalink
sandy
Post Re: New build and attempted firmware for step/dir drivers
on: May 17, 2012, 11:18
Quote

thumbs up!

swarm
Newbie
Posts: 9
Permalink
Post Re: New build and attempted firmware for step/dir drivers
on: May 4, 2014, 17:06
Quote

Hi All!

I saw this project it's amaizing.

I created my own vertical plotter, (inspired by Kritzler).

I uploaded the modified frimware (pins changed) to my Arduino 2560 r3, and a Polargraph program can communicate with it. But maybe there is an error with my physical circuit.

I created a simple Arduino + Pololu A4988 Stepper motor circuit and it works:
circuit:
https://drive.google.com/file/d/0B8mrL7KzJrBnbU9iaVdNY2JfVVE/edit?usp=sharing

video:
https://drive.google.com/file/d/0B8mrL7KzJrBnV3lDbVRaanlGb2s/edit?usp=sharing

But when I created the Kritzler or Lanthan’s circuit my NEMA17 stepper motors started to vibrating, and the vibration always changed when I touched the potmeter of the Pololu with a schraubendreher. What is the problem?

My Kritzler Circuit:

https://drive.google.com/file/d/0B8mrL7KzJrBneHRlOVl6YTB6Zkk/edit?usp=sharing

Please Help

sandy
Administrator
Posts: 1227
Permalink
sandy
Post Re: New build and attempted firmware for step/dir drivers
on: May 4, 2014, 18:21
Quote

Hello, it is normal for the motor's behaviour to change when the pot is touched - that's why lots of the drivers come with a special ceramic schraubendreher for adjusting them.

What bit of Polargraph code are you using?

I can't really see anything wrong with your circuit diagram. It is not a polargraph circuit (no enable pin connected), but that should not prevent it from working - only from turning off. I don't think that the vibrating is normal, but it could simply indicate a floating "step" pin, that isn't connected, or that hasn't been initialised and is waving about, randomly triggering steps.

You will probably have modified the source code (which version? from where?) to have something like:

const byte motoraStepPin = 30;
const byte motoraDirPin = 32;

const byte motorbStepPin = 36;
const byte motorbDirPin = 38;

If you think there is something wrong in the physical circuit, I'm afraid a diagram will not help. Only a good, clear photograph will.

(Secondly, you have resurrected a 24 month old thread - it would be better to create a new thread - I'll leave it up to you to do that in future - as I'm not clear if you have used lanthan's firmware or not.)

sn

Sembot
Newbie
Posts: 5
Permalink
Sembot
Post Re: New build and attempted firmware for step/dir drivers
on: August 4, 2014, 14:21
Quote

Hai,
Thanks for this nice explanation, I was looking for this for months
I have a polargraph made ​​like Kritzler but found no clear explanation how it could draw
But now this is history
10000 x thanks

Kind regards

sandy
Administrator
Posts: 1227
Permalink
sandy
Post Re: New build and attempted firmware for step/dir drivers
on: August 4, 2014, 14:29
Quote

You could have a look at http://www.polargraph.co.uk/2014/05/running-polargraph-on-ramps/ and http://www.polargraph.co.uk/forum/polargraphs-group2/building-hardware-forum3/arduino-mega-2560r3-with-ramps-1-4-thread286.0/ to see the more recent details about running on other hardware.

I've recently made a few big changes to polargraph_server_polarshield, so one thing you'd like to do to the most recent version is comment out

#define USE_LCD

in polargraph_server_polarshield.ino

sandy noble

Sembot
Newbie
Posts: 5
Permalink
Sembot
Post Re: New build and attempted firmware for step/dir drivers
on: May 20, 2015, 14:21
Quote

Hai Sandy,

I look at the site of Polargraph firmware- serial stepper driver, but I do not see Arduino code
Can you give me the source code or the exate site where i can download de code for the Arduino that works with the controller, so that I can load them into the Arduino

I made the polar graph earlier and that worked very well, but now I no longer find the Arduino firware

Kind regards

sandy
Administrator
Posts: 1227
Permalink
sandy
Post Re: New build and attempted firmware for step/dir drivers
on: May 20, 2015, 20:02
Quote

https://github.com/euphy/polargraph_server_a1 is the current code that is supported for serial stepper drivers. I've only just made a stack of structural changes to it though, so I expect there to be a few problems. It'd be great if you could give it a try.

Also, bundled with the libraries: https://github.com/euphy/polargraphcontroller/releases/latest

sn

Sembot
Newbie
Posts: 5
Permalink
Sembot
Post Re: New build and attempted firmware for step/dir drivers
on: May 21, 2015, 10:21
Quote

Hai Sandy,

Thanks for the quick reply
I'll try it

I copied all the ino files in a Arduino sketch file , is this okay ,and then change the data , such as the pins, the microcontroller etc.

My enable pins are connected to ground, is that okay, or should I release

Kind regards

sandy
Administrator
Posts: 1227
Permalink
sandy
Post Re: New build and attempted firmware for step/dir drivers
on: May 21, 2015, 19:13
Quote

IT depends on the driver Sembot, and how you want to be able to control it. I prefer to use the enable pins when I can, because it allows me to, well... disable or enable the driver completely.

On a stepstick, the driver is enabled by pulling this pin low. So if you want them always to be on, yes, just pull them to ground. Your datasheet will tell you whether it is active high, or active low. Actually, all the ones I've seen have been active low, but you'd better check.

sn

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