Pen came up on its own while drawing

Home Evil Mad Scientist Forums AxiDraw Pen came up on its own while drawing

This topic contains 25 replies, has 2 voices, and was last updated by  vincentP 1 week ago.

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #27988

    Windell Oskay
    Keymaster

    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.

    https://axidraw.com/doc/cli_api/#toggle

    #27989

    Windell Oskay
    Keymaster

    Separately: Axidraw -M pen_up is 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 -M specifies which manual_cmd to run, but since you have not specified any mode other than the default mode (plot), the AxiDraw will run in plot mode and ignore the value of the -M switch.

    #27992

    vincentP
    Participant

    Thanks again.

    “Toggle” is further down the page than “pen_up”
    I stopped reading at “pen_up”

    🤡

    #27994

    Windell Oskay
    Keymaster

    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. :)

    #28000

    vincentP
    Participant

    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.

    #28001

    Windell Oskay
    Keymaster

    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.

    #28002

    vincentP
    Participant

    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?

    #28003

    Windell Oskay
    Keymaster

    If pen up and pen down are the same level, toggling between them will show no movement.

    #28004

    vincentP
    Participant

    Connected axidraw to laptop running inkscape.

    Everything works except pen up / pen down.

    This looks like bad servo.

    #28005

    Windell Oskay
    Keymaster

    I’m sorry to hear that — it looks like you’ve followed up separately about a replacement.

    #28008

    vincentP
    Participant

    Replaced the pen lift servo.
    Working properly again.

    Thanks for the quick turnaround on that.

Viewing 11 posts - 16 through 26 (of 26 total)

You must be logged in to reply to this topic.