Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Speedier Pen Lifts, Drops - Quiet that Servo
kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Speedier Pen Lifts, Drops - Quiet that Servo
on: April 19, 2012, 07:37
Quote

For the last few months, my polargraph has been a perfect companion during the long hours I've been chained to my workstation. It would pleasantly grumble its way all day, providing just enough distraction to keep me from going nuts from the monotony of work. My wife even commented that there was something relaxing about the sound of it, and since she frequently works about 10 feet away from me, it was important that it didn't bother her.

Then something awful happened.

I started experimenting with Rasterbator and StippleGen.

Since then, the nearly constant sound of whining servo gears has been increasingly getting on my nerves. 10,000 PenUp commands and 10,000 penDown commands for one drawing, 6,000 for the next....grind...grind....grind.

On top of that, Sandy even added "cleverer pixel skipping routines" (yes, I'm the one who requested it), adding more pen lifts for "normal" polargraph drawings, too.

I googled "quiet servos", shopped around, read the postings of various forums, and considered greasing the gears. Then the obvious occurred to me.

I opened the arduino sketch and found the lines that contain the settings for the servo commands:

// Pen raising servo
Servo penHeight;
int const UP_POSITION = 180;
int const DOWN_POSITION = 90;
int const PEN_HEIGHT_SERVO_PIN = 10;
boolean isPenUp = true;

I knew my servo didn't need to rotate that much to lift my pen off the paper, and didn't have to go all the way back to 90 for the pen to touch the paper. After some trial and error, I settled on:

int const UP_POSITION = 130;
int const DOWN_POSITION = 105;

That's quite a difference -- 25 degrees versus 90. Now my pen lifts are a very brief "psst" sound.

My machine just finished a 20 hour drawing, and the cute little "psst" sounds rarely drew my attention.

There was problem I don't understand, however. It seemed the pen was landing with more force than before, sometimes with an audible "thunk" sound followed by a gondola wobble. Perhaps I just never noticed it before? Even so, I'll take that and the slight damage it does to the pen tip over that...that sound.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Speedier Pen Lifts, Drops - Quiet that Servo
on: April 19, 2012, 10:35
Quote

Yes I think I looked for all the quiet servo things too, but that data's pretty hard to find, and quality servos are _expensive_. Your solution is much better. Changing the speed of the movement might make a difference too, in terms of your bumps. I think that's controlled in the penUp() and penDown() methods, there's a delay of 5ms (delay(5);) or something between each move.

cheers!
sn

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Speedier Pen Lifts, Drops - Quiet that Servo
on: April 19, 2012, 16:26
Quote

Since the *thunk* sound doesn't happen every time, I'm now wondering if it happens because of the herky jerky way servos sometimes start their movement. Now that the servo horn is moving only 25 degrees, that might be within the "jerk zone".

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Speedier Pen Lifts, Drops - Quiet that Servo
on: April 19, 2012, 19:00
Quote

Per Sandy's suggestion, I increased the delay for "movePenDown" to 10 (from the original setting of 5). Much smoother. I haven't heard one *thunk*. I was hesitant to do this because I was trying to minimize the amount of time those noisy gears were turning, and slowing movement was contrary to that goal. It turns out, however, the gear noise is less at the slower speed, so, it's a good trade-off.

At first I also decreased the "movePenUp" delay to 5 (basically, I swapped the original values for PenUp and PenDown), so I would recoup the time lost to slowing PenDown. But I found the whisper-like quality of the slower speed preferable. So, both settings are now at 10, and I'm happy.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Speedier Pen Lifts, Drops - Quiet that Servo
on: April 19, 2012, 19:56
Quote

SKILLS.

krummrey
Advanced
Posts: 66
Permalink
Post Re: Speedier Pen Lifts, Drops - Quiet that Servo
on: March 12, 2016, 21:25
Quote

Looks like the functions have been renamed to

  • penlift_movePen()
  • penlift_penUp()
  • penlift_penDown()

and a global variable sets the delay

static int penLiftSpeed = 3; // ms between steps of moving motor

I changed mine up to 10 as my servo was too slow to handle the default 3ms. A little bit slower now, but reliable.

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