Close

Higher Contrast, Sharper Transitions

A project log for AutoGraph

a graphite pencil plotter

john-opsahlJohn Opsahl 11/23/2023 at 04:110 Comments

I am incredibly happy with the latest drawing. A huge improvement on contrast and sharper transitions. 

Some of the improvements:

  1. Increased speed of the stepper motor controlling pencil position. Faster the pencil moves, the sharper the transitions are.
  2. Exponential moving average on the potentiometer reading. This had a huge impact on mitigating the effects of the noise on the potentiometer signal.
  3. Setting pencil zero position at near zero potentiometer readings. This ensures that position error from missed steps do not accumulate large enough over time to prevent the pencil from being lifted off the paper when a 0 pencil position was commanded.
  4. Returning to the last position after pencil graphite is dispensed. This ensures no visual artifact on the paper when graphite is dispensed. It just continues where it left off.

Remaining challenges:

  1. I had to give up on any automated process for detected when more graphite needs to be dispensed because the pencil control stepper motor tends to lose steps at the current speed. I didn't want to run it any slower because it already takes so long. I added a switch to run the graphite dispense routine anytime I saw that the graphite was getting too low. 
    Options being considered:
    1. I could add an adjustable height non-contact limit switch to the pencil cart. The switch would trigger whenever the pencil was close enough to the paper that additional graphite should be dispensed.
    2. I could add an encoder on the motor. This is more expensive. I figure if I do this, I might as well just switch to a DC motor for faster speed.
  2. The system runs so slow because of the response time of the pencil control stepper motor. Options being considered:
    1. Increase stepper motor speed by decreasing microstepping configuration of the stepper motor driver. My testing so far has shown that motor chatter tends to increase at lower microstepping values, but there is likely still opportunity to increase speed with this approach without influencing draw quality.
    2. Change to a DC motor with an encoder.

I will likely explore all the options that don't require spending more money on the system before I jump to a DC motor with an encoder. I often learn the most by pushing cheap hardware to it's operational limits.

Discussions