October 30, 2019 at 8:57 am #27988
The “Toggle” command is provided specifically for this purpose. It toggles the pen between up and down, and does not require a file name. This is the equivalent of the toggle option in the Setup tab of AxiDraw Control within Inkscape.
October 30, 2019 at 9:05 am #27989
- This reply was modified 1 week, 5 days ago by Windell Oskay.
Axidraw -M pen_upis not a valid command for the AxiDraw CLI.
I *think* that what you are looking for is:
axicli -m manual -M raise_pen, which will raise the pen and does not require an input file name.
If you use
axicli -M raise_pen(or
axicli -M pen_up), it will require a document, and plot that document, rather than raising pen. The
-Mspecifies which manual_cmd to run, but since you have not specified any mode other than the default mode (
plot), the AxiDraw will run in
plotmode and ignore the value of the -M switch.October 30, 2019 at 4:37 pm #27992
“Toggle” is further down the page than “pen_up”
I stopped reading at “pen_up”
🤡October 30, 2019 at 4:39 pm #27994
No worries; don’t hesitate to ask if something doesn’t work as expected. Sometimes it’s a bug that we don’t know about. :)October 31, 2019 at 5:35 pm #28000
Well, I’m back.
The servo has apparently quit completely.
Is there a way to test this?
“Axicli -m toggle” no longer moves the pen (it did for a while).
I might get a prompt back immediately as if it had worked, or I might get a “failed to connect to axidraw” message after a bit of a wait.
I had one sketchy usb cable, but replacing it (with several different cables) has not gotten the servo to move.
So, it does not respond to “axicli -m toggle” and it does not respond when attempting a plot, that is, the pen holder runs around the paper as expected when plotting but the pen does not move up or down where I would expect it to.
Dead servo? Is there way to test other than “toggle” ?
And separately: the toggle command solves my issue with adjusting the pen, but earlier attempts to get axidraw extensions installed in inkscape on raspian suggest that this may be difficult, if not impossible.
Commands to update and install inkscape thinks an old inkscape is current, and my attempts to install from a personal repository suggest that raspian won’t recognize the commands to do that.
The command line interface seems to meet all my needs so far, but someone else down to line might get frustrated by this.October 31, 2019 at 6:05 pm #28001
It sounds like you have multiple unrelated issues going on here– from USB cables to difficulty installing Inkscape. I would highly recommend that you try to solve one at a time. This can get frustrating quickly otherwise.
If you are getting messages that say “failed to connect to axidraw”, then something is wrong. That could be a USB cable, trying to connect to the AxiDraw too soon after starting up the Raspberry Pi (I suggest to give it a solid 15 second waiting period after booting for it to recognize USB devices), or something entirely different. If you aren’t sure whether an issue is due to the RPi or the AxiDraw, you might try connecting to your computer instead.
There are any number of different commands that can test whether the servo is moving — these include (yes) toggle, but you can also use the manual lift and lower commands, direct commands from the interactive python API, direct EBB commands, the setup tab in Inkscape, and plotting files.
If the servo motor is not raising and lowering but X and Y motion are working correctly, then the servo could be dead, but that can also result from having the pen-up and pen-down heights set the same or having the servo motor disconnected.
I’m not sure what the toggle issue has to do with installing Inkscape.
I have not had difficultly installing Inkscape on Raspberry Pi, but I definitely recommend against doing it– it’s a small computer with relatively few resources (speed and memory). If there is any way to do what you need to on the R Pi _without_ using Inkscape, I highly recommend that you do so.October 31, 2019 at 6:33 pm #28002
The obvious approach, connecting the axidraw back to my laptop, did not occur to me. I’ll try that tomorrow.
Pretty sure the “failed to connect” issue was a bad usb cable (a working cable that died while I was using it).
If pen up and pen down were somehow set the same, would “toggle” show movement?October 31, 2019 at 7:20 pm #28003
If pen up and pen down are the same level, toggling between them will show no movement.November 1, 2019 at 6:49 am #28004
Connected axidraw to laptop running inkscape.
Everything works except pen up / pen down.
This looks like bad servo.November 1, 2019 at 11:25 am #28005
I’m sorry to hear that — it looks like you’ve followed up separately about a replacement.November 4, 2019 at 5:52 pm #28008
Replaced the pen lift servo.
Working properly again.
Thanks for the quick turnaround on that.
You must be logged in to reply to this topic.