-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AxiDraw SE/A1 with Brushless Servo Upgrade is not supported to control pen up/down #1
Comments
Thanks for trying it out! I don't have a Brushless Servo Upgrade Kit to test with, but if you would be so kind as to help me test a solution then I think we can get it working. I've made a test sketch here: https://editor.p5js.org/jmpinit/sketches/GsWZ7_OKC If you click the sketch you should be able to connect the AxiDraw. Then if you click at different Y heights it should tell the AxiDraw to set the servo to different positions. It might only move a little bit but that's okay for the purposes of the test, as long as it moves at all. If that works then I should be able to add support for the brushless servo upgrade, but I'll ask your help again for testing it if you don't mind. Notes for myself: The brushless servo is connected to the third header from the bottom (as explained in the installation instructions). This is labeled "B2" and corresponds to pin RP5, so the pin index for the S2 command is 5. |
@jmpinit Thanks for looking into this! const dutyCycle = constrain(map(mouseY, 0, height, 0, 0.25), 0, 2); I changed the mapping so I could test with more fidelity and its working great! |
Hi, |
@benoitwimart does your brushless servo kit work correctly with the software from Evil Mad Scientist? Maybe it's running an older version of the firmware? Could you let me know what firmware version is installed? One way to do this is to use the AxiDraw CLI: https://axidraw.com/doc/cli_api/#version |
It's run with Inkscape and Saxi (with a fork for brushless), I think it's the last firmware (but I will check). |
I have this :
In Chrome (not Firefox) Mouse-control sketch paste in this works for XY but not Z. |
@benoitwimart do you mean that the linked sketch does make the pen move, but only in Chrome and not in Firefox? It would definitely be out of range with the default, because it is set to the maximum possible. You could try using the range that @melaniehuang found to work for the Just in case because you mentioned webpack - it should only be necessary to setup the JS build (yarn, webpack, etc.) if you are making changes to the source code of the library. If you just want to use it in a sketch then you can just include the p5.axidraw.js file from the latest release in your sketch. Or if you want to use this branch you could copy the p5.axidraw.js file that is part of the sketch linked above. Someday maybe I'll get a brushless servo upgrade and then I can add proper support. For anyone else reading this - PRs are also welcome if you happen to have one and want to do it 🙏 . |
Firefox (Mac OS) can't connect to Axidraw with your extension (it's work with Saxi). Yes, webpack is running so I can build the code to do some tests. I make a short message on ems-chat discord :) Windell Oskay help me to hack Saxi for my brushless servo. |
For me it's OK with |
Great! To answer your question above - yes I'll make it so that One small note - a duty cycle value greater than 1 is not valid and should trigger an error. Melanie wasn't hitting that because her |
axi.moveTo() works great however the axi.penUp() and penDown() shows no response.
My hypothesis is that the SE/A1 with Brushless Servo upgrade requires a different configuration. See equivalent config additions here that were added to the Python library:
The text was updated successfully, but these errors were encountered: