73 points · by chrischen · 11y ago · 46 comments
The system has a resonant frequency that depends on the damping, mass of the motor, and brush friction. Those set a hard limit on the maximum possible speed.
PDI will get you close to that speed, but there's always going to be a trade-off between speed and accuracy.
From the test, you're still quite a way out from perfect repeatability. (I prefer the automated version, because the smoother strokes look slightly better.)
I suspect you'll find that PDI with a thicker medium like oils/acrylics will be harder because the brush friction will be less consistent. And in fact real paintings are often created with a range of brush sizes and perhaps a range of palette knives - so building a robot to handle all of that isn't going to be trivial.
[0] http://www.geckodrive.com/gm215-step-motor-motion-controller...
The problem is I need it to also be fast enough to fee lag free for the artist.
It also might be that you're supplying too much or too little current to the motors - both will result in jerkiness and noise. If your current drivers are current limiting, I'd look into tuning that. If they aren't, the ones I linked are.
I have used this to good effect for smoothing head tracker data.
http://shop.evilmadscientist.com/productsmenu/605
And if you've got an old serial plotter (or 3 or 7) that can emulate or do HPGL:
http://music.columbia.edu/cmc/chiplotle/
There's something absolutely magical about plotters...
If you got the individual pieces yourself or 3D printed it can be much cheaper.
The main electrical components are:
1 x Arduino Uno (I used the modified Uno called "Orion" that has RJ2 ports) 2 x Stepper motors 1 x Servo motor 4 x microswitches as limit switches 2 x stepper motor drivers (they handle the microstepping) 3 x RJ25 breakout boards (for connecting the limit switches to RJ25 ports)
This was a prototype to prove the concept. I'm going to experiment with 3D printed parts next in a new design.
If you're feeding in coordinates as Gcode I would recommend loading Grbl. Keep in mind Grbl has specific pin requirements that make it incompatible with the Orion's RJ25 ports, so you'd have to wire a normal Arduino. Makeblock supplies Gcode firmware that works with the Orion.
For the demo in the video, the firmware was custom to handle real-time input and recording of motion.
On the host computer side, it was just a python script that interfaced with the Wacom tablet. Specifically: https://bitbucket.org/AnomalousUnderdog/pythonmactabletlib
I also hacked support for the Myo armband and mouse support.
Also just a heads up on the Amanufactory website the font in the Plans section is really hard to read, you might want to check that out ( http://i.imgur.com/Klvmorc.png ).
Edit: Thanks, fixed the amanufactory.com bug.
Something along the lines of embedding a bump map into the 2d image to give subtle depth information. Let me know if anyone needs an artist to do the art side of this.
Example: https://youtu.be/ip5Bt_-Yxsc?t=7m
You could look at the firmware used to control the stepper motors/end stops that much of the reprap community is using at https://github.com/MarlinFirmware/Marlin. This uses GCODE as well, and deals with acceleration around turns.
You could probably even use the generated electric pulses from the steppers as your input.
https://www.youtube.com/watch?v=bbdQbyff_Sk http://research.gold.ac.uk/9255/
I actually truncated the recording to remove the test strokes at the beginning.