Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Polargraph drawing distortion
andrewV
Newbie
Posts: 8
Permalink
Post Polargraph drawing distortion
on: April 23, 2015, 15:45
Quote

Hey guy! I posted this as a comment on a related thread but this forum doesn't seem to bump posts when they get new comments so... I thought I'd just start my own.

I just built a shiny new polargraph and it's having two problems, shortened images with a wide base and it's mirrored.

DISTORTED IMAGES:
I've tried to change the height of the pen at home, I've tried to change the steps/rev from 400-800. I'm using the 200 step/rev nema 17 motors from adafruit. My machines machine width is 652.88mm my machine height is 729.60. I've attached a link to google drive with a diagram of the machine and geared wheels as well as an image of the problem, screen shots from the controller and my default properties file.

FLIPPED IMAGES:
The second problem I have is that I mounted the motors from the back and there for have mirrored the machine. What can I change in software to "flip it" (right is left and left is right).

https://drive.google.com/folderview?id=0B8ERdMtAD9tbfndKY3BmRkMyN1RoQTdORnRKc0dzcmdkcEcyYlF4ZkluallNSjFWelVfTUE&usp=sharing

I've also attached the image I'm drawing, the photo of the drawing, and the machine dims.
Image
Image
Image

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph drawing distortion
on: April 23, 2015, 18:11
Quote

Hi Andrew, welcome, that's a pretty sweet looking plywood machine you've got there! CNC milled? I'm jealous.

You don't mention which motor driver you're using, so I'm going to assume it's an Adafruit Motorshield v1, and that you've loaded the hex firmware from polargraph_server_a1_adafruit_v1.cpp.hex.

Easy answer to your flipping question:

AccelStepper motorA(forwarda, backwarda);
AccelStepper motorB(forwardb, backwardb);

(https://github.com/euphy/polargraph_server_a1/blob/master/configuration.ino#L53-L54)

Swap the parameters of each AccelStepper constructor:

AccelStepper motorA(backwarda, forwarda);
AccelStepper motorB(backwardb, forwardb);

- The stepsPerRev should be 2x your motor step, so try 400 instead of 800 there.
- You've got your machine width set a little wide compared to your diagram (653mm on the diagram, 658mm in the machine).
- Your mmPerRev is at least twice what it should be. This value should be the exact amount of cord that is wound off the sprocket with one revolution, with a diameter of 33, then the mmPerRev couldn't be more than 100. The exact dimension of the sprocket isn't actually that useful to measure this - better to just count the beads, and then measure a stretched piece of beaded cord with that many beads on it. I get about 93mm on mine.

When you modify these settings, you're better to close the controller, and change the default.properties.txt file directly, then reopen the controller.

- Your home point is 262mm across, so is not in the centre. It doesn't have to be, but if there is a mismatch between what you tell the machine (when you do a "upload machine spec"), and where you physically place the pen when you do a home, it'll complain. Maybe you've already got this, because I don't see a horizontal distortion.

sn

andrewV
Newbie
Posts: 8
Permalink
Post Re: Polargraph drawing distortion
on: April 23, 2015, 19:00
Quote

Hey Sandy! Thanks for getting back so quickly and thanks for sharing this amazing project! I've figured a bunch of that out since I posted the original message and recompiling the code onto arduino seems to have helped. I didn't do this using the HEX, i just opened the .ino in the arduino IDE and loaded it from there. I am using the V1 shield. Since I made those corrections wrapping seems to be reduced but the image still comes out a bit short vertically.

It's drawing now, I'll post the results when it finishes.

Thanks again!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph drawing distortion
on: April 23, 2015, 19:06
Quote

Remember you can select your area and then use "draw outline" to get an idea of the outline, without having to wait through a full pixellated draw.

andrewV
Newbie
Posts: 8
Permalink
Post Re: Polargraph drawing distortion
on: April 23, 2015, 19:38
Quote

Yea definitely a nice feature. It's hard to show that the image is vertically squished without seeing the full drawing I think.

Andrew

andrewV
Newbie
Posts: 8
Permalink
Post Re: Polargraph drawing distortion
on: April 23, 2015, 22:33
Quote

Actually looks like it's drawing pretty straight and true now. One minor flub in the right eye when, in explaining how it worked, I gesticulated into the pen.

One thing that is odd... it gets quiet fuzzy at the end. Do you all think this is just the pen working itself loose in the tube or the fact that the strings are longer and more wobbly? Any ideas on how I might fix it?
Image
Image

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph drawing distortion
on: April 23, 2015, 22:39
Quote

That looks pretty sharp to me - the circles are circular, and the sides are parallel - well done!

Bottom corner, difficult to say, pen running a bit low on ink and skidding over the paper a bit? Things just do get a bit loose near the extremes of the machine, but you don't have the problem in the opposite corner, so it isn't just the position. Best way to see what's up is to sit and watch it. With a new pen or paper, I usually draw little sample patches all over your surface, and observe the differences in the different places.

sn

andrewV
Newbie
Posts: 8
Permalink
Post Re: Polargraph drawing distortion
on: April 23, 2015, 23:48
Quote

I have to think it's the pen working loose. I'm using a .5in brass tube with 3 roller bearings around it (the same setup as in the kits I think). I just wrapped the pen in electrical tape and stuffed it in there. Thinking about getting a small section of plastic pipe to put in and fit a thumb screw into. How have you found is best to lock down the pen?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph drawing distortion
on: April 24, 2015, 00:10
Quote

I use these things https://github.com/euphy/polargraph_models/blob/master/Gondola_mod_v4_cutout.STL with a binder clip - works great. Dan at marginally clever discovered this lovely piece of hardware though, shown on his gondola here:
https://www.marginallyclever.com/shop/drawing-robots/makelangelo-3-pen-holder

Previously I just used a blob of blu-tack - use the brand name stuff.

andrewV
Newbie
Posts: 8
Permalink
Post Re: Polargraph drawing distortion
on: April 24, 2015, 07:03
Quote

Hey Sandy! Just got a chance to try your fix for the mirroring... it seems that while it does fix the left right mirroring problem it creates an up down mirroring problem.

Any ideas?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph drawing distortion
on: April 24, 2015, 18:28
Quote

Yes, you're right, I gave you a bum steer. As a solution though, you know you're on the right track, and you can probably guess that the solution is to _fiddle with it til it works_. I.e. change the settings on one motor, then the other, swap the motor objects from one port to the other until it works. You can do all that in software.

https://github.com/euphy/polargraph/wiki/It's-going-the-wrong-way!

I'm going to leave you with that instead of giving a complete solution because I think you'll enjoy it more 🙂

andrewV
Newbie
Posts: 8
Permalink
Post Re: Polargraph drawing distortion
on: April 25, 2015, 05:52
Quote

Switching the ports did the trick! Excited to run a full page drawing in the right orientation tomorrow.

Side note: I 3D printed a pen holder based on the one you linked to. It's designed to press fit into the shaft and be clipped to lock.

Will report tomorrow with results.

Side note: I'm going to be doing a lot of documentation of my particular variation of the machine (CNC milled frame, laser cut arduino mount, 3D printed sprockets, 3D printed ball chain/weight connectors, 3D printed gondola arms (with integrated seats for ball transfers, roller bearings and ball chain), etc...) Is there a collective hub where people post this work?

Image

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph drawing distortion
on: April 25, 2015, 11:19
Quote

Andrew that clip-to-lock mechanism is a great idea - just put a binder clip on the raised tabs? Not sure what orientation I could print this in though, to make it strong.

There isn't really a central hub for drawing machine stuff, as far as I know anyway. There's a bunch of projects on Thingiverse, but I try not to promote that since people I respect frown upon the company in charge of it. Youmagine, I think is the "open source" version, and of course there's sites like letsmakerobots and instructables that are general purpose.

Wherever it lands, I'm very happy to host a link, looks like a nicely executed build.

sn

andrewV
Newbie
Posts: 8
Permalink
Post Re: Polargraph drawing distortion
on: April 25, 2015, 15:37
Quote

Thanks Sandy!

Binder clip on the tabs indeed. Yea layer lines would be tricky with this one. I printed it in the orientation shown on a dimension 760 abs printer and it came out fine. The layers running perpendicular to the binder clip seems to be most important. I'm also running one off on a friend's FormOne as those machines don't seem to produce layer lines and the parts tend to be strong but flexible.

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