-
Notifications
You must be signed in to change notification settings - Fork 55
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
Wrong dimensions in the final plot #120
Comments
I updated the EBB firmware to v2.8.1 (latest). Same thing. Curiously, when I update the Inkscape plugin to v.3.5.0 (latest), it also gives the strange 0.8 scaling factor. Surely some parameter changed from one version to the other. I'll keep investigating. |
Ok, found the problem. In the Inkscape plugin there is a 'native_res_factor' parameter in the axidraw_conf.py file. The default value is 1016.0 and it is used to compute the steps/in rate of the machine.
The machine vendor provided a customized plugin. I checked it and the only thing that seems to change is this parameter which is tuned to the value Indeed, when I configure the latest inkscape plugin to this number the machine prints in the correct size. Also, the 0.8 scale factor is exactly the ratio between these two numbers. I did not find anywhere in the saxi source code where the steps/in rate is computed to try to fix it. |
I was able to make successful plots with this machine after changing the stepsPerMm parameter to Why not expose this setting (or a machine selection setting) on the GUI? |
Just dropping in to save someone heading down the rabbit hole I've been pursuing for the last few hours (based on confidence having seen this issue): @joseedil is talking about the original iDraw A3 and not the newer iDraw v2.0 A3. The newer v2.0 line do not use the EBB protocol but instead use g-code. It cannot currently be hooked up to saxi. 😢 If you have such a plotter and you're trying to use it using tools other than Inkscape then I suggest reading this and this. |
I've delved into this matter and discovered that it's not an issue per se. I currently share a similar requirement, albeit for different reasons. I've developed a customized plotter utilizing the same EBB board. However, my GT2 motor pulley has 16 teeth, unlike the Axidraw's 20 teeth. In response to additional requirements, I've created a fork that hasn't been pushed as a pull request yet. WIP. In this fork, I've incorporated a dropdown menu enabling users to select the device and its associated settings. Feel free to explore it, and any feedback you may have would be greatly appreciated. node cli.js --firmware-version https://github.com/thierryc/saxi/tree/xylodraw branch: xylodraw @joseedil the iDraw A3 plotter. |
I'm not aware of other clones, but this whole discussion was enlightening. |
I ran into the same issue with my own built pen plotter, controlled by an EBB Board v2.7.: With the Axidraw Inkscape plugin everything turns out correctly. I edited the stepsPerMm parameter within planning.js, saved the file and restarted the saxi server, but the change did not show any effect, I get the same dimensions. |
Hi @FS-12, Please try using my version and let me know how it works for you: https://github.com/thierryc/saxi/tree/xylodraw Using the "Xylodraw" option in the menu should work. Make sure to count your pulley teeth—do you have 16 or 20? If it doesn't work properly, please let me know. Make sure to set the size correctly, remove the margin, and send me the results you get. I will then try to fix the issue. |
Hi @thierryc I still don't know why changing the stepsPerMm to 6.25 with a text editor did not show any effect?! But I also dont have much experience with github and forks etc. |
Thank you for your feedback. What is the name and the version of your plotter? (to add it into the menu) I will continue to keep my version up to date. |
Its based on the A3+ Drawing Machine with some tweaks I did myself and powered by the EBB board. But I assume that the core difference between all EBB-based plotters is the size (maximum X/Y distances) and pulley teeth (GT2 16/20 teeth → scaling of the drawing influenced by stepsPerMm. So instead of adding all potential pen plotter options out there it might be a better idea to allow adjustment of these core parameters?! |
@thierryc Your fork works, thanks! |
@FS-12 You're correct; the dropdown is just a convenient way to switch between machines. All the settings are already in place, and if you have multiple machines, it's an easy way to switch between them. However, you can simply change the stepsPerMm parameter. My SAXI fork version also includes some other custom properties. |
Hi, as a Git noob, how do I go about using this repository? I've succesfully cloned it to my rpi but have no idea how to install/start this cloned version. Thanks |
Hey, thanks for the great tool.
I'm using saxi on a headless raspberry pi to control an iDraw A3 plotter. The machine uses the Axidraw firmware (currently with v2.6.5, not sure if it will work if I update it).
When using the Axidraw Inkscape plugin (v2.7.0) it correctly prints the SVG. But when using saxi I'm getting a consistent 0.8 scale factor in both X and Y directions. In the picture, it's supposed to make 10mm squares spaced 10mm from the paper border.
On the saxi interface, I disabled 'fit page' and 'crop to margins'. The preview looks OK.
I get the same 0.8 scaling factor if I use 'fit to page' with margins.
I would guess the tool is set to a different turns/mm ratio then the one on my machine.
Am I missing something?
Could you point me to where to look for in the code to help tweak it (I skimmed through it and did not locate where this kind of setting is being handled).
The text was updated successfully, but these errors were encountered: