Home › Evil Mad Scientist Forums › AxiDraw › Using AxiDraw as WaterColor bot
- This topic has 21 replies, 4 voices, and was last updated 4 years ago by Pepmore.
-
AuthorPosts
-
January 12, 2018 at 11:45 pm #20685ToniParticipant
Hi, since the control-board is the same and only the motor configuration differs, is it possible to use Inkscape Watercolor bot extension with the AxiDraw? I’d like to use AxiDraw to write Chinese characters with a real-brush and would need it to re-ink the brush in the same way the watercolor bot dips the brush in the color. Which configuration file would need to be changed ?
Thanks for your help
ToniJanuary 13, 2018 at 7:02 am #23016Windell OskayKeymasterHi Toni,
The two machines do have a lot in common, and we have even discussed making a special “watercolor” edition of the AxiDraw that would include the paint pans and water dishes.There are several potential issues with using the WaterColorBot extensions for Inkscape. First, the left three inches of the plotting are are (by default) reserved for the water dishes and the paint pans. These values — both the offset distances and the location of the various dishes — are set in the wcb_conf.py configuration file.
Since you likely will want to operate in the “dip pen” mode — refreshing ink only, but not dipping in water also — you change the “paint” location (where your ink is located) to be near the left hand side of the plotting area, and reserve less distance (maybe one inch, instead of three) for paint dishes.
Second, the total travel area will be less on the AxiDraw than on the WaterColorBot. You’ll want to edit the page width ( N_PAGE_WIDTH ) to be lower, so that the AxiDraw doesn’t run off the page to the right. Note that (0,0) is the upper left corner of the paper, but the “parking” position — the home corner — is (-3 inches,0).
Next, the resolution in terms of motor steps per inch, set by the F_DPI_16X parameter, will be different on the AxiDraw. Although I have not checked it, I believe that the correct factor will be about 2874 steps per inch, however this does depend on the exact method that you use to compensate for the final factor below. In order to check, you may wish to draw an object of known size on your screen and ensure that the printout is the right size.
Finally, the WaterColorBot uses independent motors for X and Y motion, but the AxiDraw uses a mixed-axis geometry, where the two motors turning together drive the carriage in the X direction, but the two motors turning in opposite directions drive the carriage in the Y direction. While this can be somewhat complex to deal with properly (and cover all possible cases), we’ve built a little “cheat” into the firmware that does allow a rather quick adaptation. If you find the place in wcb.py where the motor movement command is sent (search for **’SM’**, quotes included), you can replace the SM with XM, and that should do the trick. If the motion is not going in the right direction, use the “reverse motor” options in the Options tab to compensate.
When testing things like this, be ready to press the pause button quickly, should anything go wrong– and it most likely will at some point.
January 14, 2018 at 6:14 pm #23017ToniParticipantDear Windell, thanks a lot, your solution works like a charm. I had the minor problem that first I needed to update the firmware, which thanks to the related wiki-article is easy.
Then the X-axis was out-of-scale. Changing the N_PAGE_WIDTH value did the trick, even though I was a bit astonished that this value has an effect on the motor travel, I thought it only limits the page width.
Cheers
ToniJanuary 14, 2018 at 10:12 pm #23018ToniParticipantIn the meantime I started drawing my first characters. One little problem I observed is that the re-inking is done strictly by distance. It would be better, if the current path is at least finished before re-inking, otherwise the natural flow is interrupted. Can I put this on the development wish list :smile:
January 14, 2018 at 10:23 pm #23019Windell OskayKeymasterI’m glad to hear that it’s mostly working.
There is an old feature request for that, still open here:
https://github.com/evil-mad/wcb-ink/issues/24Dipping before every path is a little “iffy” as a general technique, because individual paths may be hours long, and if there are a lot of short paths, then it will spend an absurd amount of time re-dipping, and (with a brush at least) that can lead to too much ink on the page as well. It really needs to have some smarter mechanism (or at least a lot of choices) to overcome this.
October 26, 2019 at 6:36 am #27958gecParticipantHi,
I have a somehow related question: Can I use a Watercolorbot (or similar) with the new axidraw software?
I could not find a similarly easy way regarding the movement of the axes (independent as in a cartesian and not the axidraw core-xy movement). Modifying motor_dist1/2 calculation in axidraw.py (and the conversion back with delta_x/y_inches_rounded ) did work for manual movement but not for svg-printing.
I would be very happy for any hint where further modifications are necessary and how I could achieve them.
Thank you for your help, ChrisOctober 26, 2019 at 10:53 am #27959Windell OskayKeymasterThere are several different possible meanings to the “new axidraw software” — if you can clarify which specific software package(s) you mean, or what feature is that you’re looking for, that might be helpful.
AxiDraw does not use a CoreXY geometry, but it does have mixed axes. It is possible to modify AxiDraw software to work with the WaterColorBot (and vice versa) — it has been done quite a few times. However, the AxiDraw software does not have built-in support for features like brush washing or automatic re-inking.
October 27, 2019 at 1:10 am #27960gecParticipantDear Windell,
thanks for your fast reply. I should have been more precise.
Using the python API/CLI of the most recent release (Jul 2019) I print on my setup (modified WCB setup, Cartesian XY (i.e. one motor for each axis), EBB board controlling magnetic encoders on the stepper motors using PID). Using standard settings, a svg is rotated 45°, as mentioned in the code.
After modifying axidraw.py at line 2158/9 and 2174/5, i.e. the calculation of motor_dist1/2 (and its conversion back to delta_x/y_inches_rounded) I get the correct movement behavior using the manual/interactive mode using walk_x etc. However, printing an svg with this setting results in somehow erratic behavior, where the carriage walks out of bounds each time.
I’m new to this and happy for any hint where the problem might be. I would like to use the python api, since it offers smoother movements (acc-/deceleration) and far more options for automatic printing.
Thank you for your help!October 27, 2019 at 1:15 am #27961gecParticipantTo complete my question. My modification of the axidraw.py so far (lines 158/9 and 2174/5):
motor_dist1 = delta_x_inches
motor_dist2 = delta_y_inches
and
delta_x_inches_rounded = motor_dist1_rounded
delta_y_inches_rounded = motor_dist2_roundedand of course adapting the plotting area in the config file..
Is there any other element of the code that needs modification (especially when printing a svg-file) using another setup/axes-movements?
October 27, 2019 at 9:04 am #27962Windell OskayKeymasterThe APIs and Inkscape based software use the same motion control code– there is a difference in how you can control it, but not a difference in the smoothness of motion.
At a minimum, you’ll need to modify the configuration file as well, to set the limits and resolution.
One other approach that you could possibly use would be to substitute
doABMove
fordoXYMove
— This moves as<AxisA> + <AxisB>
, and<AxisA> - <AxisB>
. I’m not sure that the signs are right (you might need to invert one or both), but it will rotate the coordinate system by 45 degrees.November 24, 2020 at 10:31 am #28775PepmoreParticipantHello,
I will also love to paint with one ink like Toni. I have an AxiDraw V3/A3 and i tried to use de recommendations but unfortunately it did not work for me. In wcb_conf.py I changed the N_PAGE_WIDTH to 8In and the F_DPI_16X to 2874 steps. Then i changed the wcb.py from SM to XM. The scale seems to be correct but the drawing seems to be rotated 45°. With the Control watercolor i can move manually in the x and y axis without a problem.
I am using the Control WatercolorBot inkscape extension Release 1.6.0
Thanks in advance!November 24, 2020 at 10:34 am #28776Windell OskayKeymasterWe now have a branch of the WCB software configured to use with the AxiDraw: https://github.com/evil-mad/wcb-ink/tree/V1_axidraw
November 24, 2020 at 10:38 am #28777PepmoreParticipantThanks for the super fast answer Windell! I will try it right now.
November 24, 2020 at 12:01 pm #28778PepmoreParticipantI tried the axidraw branch version but unfortunately i am getting the following message
File “wcb.py”, line 395
self.resumeMode = False
^
TabError: inconsistent use of tabs and spaces in indentationDo you know how can I modify the file to fix it? thanks a lot
November 24, 2020 at 12:21 pm #28779Windell OskayKeymasterThat’s not what’s on line 395 of wcb.py version in the AxiDraw branch, so it looks like you have some other version.
-
AuthorPosts
- The topic ‘Using AxiDraw as WaterColor bot’ is closed to new replies.