Comments on: Gondola PlottyBot is born https://ben.akrin.com/gondola-plottybot-is-born/ Thu, 16 Jan 2025 18:21:31 +0000 hourly 1 https://wordpress.org/?v=7.1 By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-909 Thu, 16 Jan 2025 18:21:31 +0000 https://ben.akrin.com/?p=11797#comment-909 In reply to Tomasz.

It does seem to work well. I investigated every possible SVG->Gcode converter under the Sun several years ago and found them all to be lacking in some respect. Except one that I had to tweak so it could work on the enormous SVGs that I was throwing at it.

This one is new, and it seems to work quite well! I’ll do more testing with it in the future, I’m rethinking a lot of the PlottyBot stack and thinking about improvements as I’m about to port it to other devices. I was able to get it working by having it say “(Start cutting path id:)” and “(End cutting path id:)” around the pen strokes, it lets you do that in the settings (even though it has issues doing so exactly how I want it). But it did work and I was able to stick the GCode in the PlottyBot web interface and have it render.

Ultimately all my GCode parsing does is look for (Start cutting path id:) & (End cutting path id:). I will generalize this when I revisit this part of the stack :).

Great find!

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-908 Thu, 16 Jan 2025 07:32:15 +0000 https://ben.akrin.com/?p=11797#comment-908 In reply to ben.

Hi

Thank you very much for your help, changing BIARC helped, the drawings are smoothed
I watched the comments, you wrote that you can adapt your algorithm to other types of gcode
I think this algorithm works well and is interesting, but not good for PlottyBot
Maybe you could find some time to adapt it.

https://github.com/sameer/svg2gcode

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-907 Tue, 14 Jan 2025 14:54:06 +0000 https://ben.akrin.com/?p=11797#comment-907 In reply to Tomasz.

That’s normal, my GCode parser does not support advanced instructions such as arc descriptions. I just translate X,Y points as I see them. The solution is that, when you save to GCode, you tell it to give you many more intermediary point. If memory serves in Inkscape they call this “Biarc interpolation tolerance”, if you make that setting lower when you save as GCode, I think that should do it.

I hope this helps.

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-906 Mon, 13 Jan 2025 21:20:23 +0000 https://ben.akrin.com/?p=11797#comment-906 Hi Ben it’s me again

can you suggest something about gcode
I have here an example of MerlinLOGO code in preview gcode,
letters are rounded, on PlottyBot they come out broken
I have this in many codes, I need arcs I have broken.
I use Inkscape
Can you see this code ? Please

%
(Header)
(Generated by gcodetools from Inkscape.)
(Using default header. To add your own header create file “header” in the output dir.)
M3
(Header end.)
G21 (All units in mm)

(Start cutting path id: polygon7833)
(Change tool to Default tool)

G00 Z5.000000
G00 X121.188134 Y53.194569

(Start cutting path id: path7829)
(Change tool to Default tool)

G00 Z5.000000
G00 X115.492950 Y36.865483

G01 Z-1.000000 F100.0(Penetrate)
G01 X115.492950 Y39.985284 Z-1.000000 F400.000000
G03 X114.712610 Y42.023056 Z-1.000000 I-3.050879 J-0.000000
G03 X113.043673 Y42.767730 Z-1.000000 I-1.668937 J-1.497845
G03 X111.335838 Y42.008909 Z-1.000000 I-0.000000 J-2.301272
G03 X110.557275 Y39.985284 Z-1.000000 I2.240601 J-2.023625
G01 X110.557275 Y36.865483 Z-1.000000
G01 X115.492950 Y36.865483 Z-1.000000
G00 Z5.000000

(End cutting path id: path7829)

(Start cutting path id: path7829)
(Change tool to Default tool)

G00 Z5.000000
G00 X119.908945 Y25.356173

G01 Z-1.000000 F100.0(Penetrate)
G01 X119.908945 Y17.893658 Z-1.000000 F400.000000
G01 X115.492627 Y17.893658 Z-1.000000
G01 X115.492627 Y34.504364 Z-1.000000
G01 X110.593750 Y34.504364 Z-1.000000
G01 X110.593750 Y17.893658 Z-1.000000
G01 X110.593750 Y12.792629 Z-1.000000
G01 X115.492627 Y12.792629 Z-1.000000
G01 X119.908945 Y12.792629 Z-1.000000
G01 X124.807499 Y12.792629 Z-1.000000
G01 X124.807499 Y17.893658 Z-1.000000
G01 X124.807499 Y25.481948 Z-1.000000
G02 X125.971810 Y28.488937 Z-1.000000 I4.465132 J-0.000000
G02 X128.518213 Y29.613815 Z-1.000000 I2.546403 J-2.319727
G02 X131.805562 Y27.293369 Z-1.000000 I0.000000 J-3.488797
G02 X132.117889 Y25.481948 Z-1.000000 I-5.096730 J-1.811421
G01 X132.117889 Y12.792629 Z-1.000000
G01 X136.018399 Y12.792629 Z-1.000000
G03 X136.526054 Y13.011384 Z-1.000000 I0.016728 J0.659604
G03 X137.017090 Y14.293126 Z-1.000000 I-1.427337 J1.281743
G01 X137.017090 Y25.356173 Z-1.000000
G03 X134.520791 Y32.243637 Z-1.000000 I-10.749650 J0.000000
G03 X128.518213 Y35.052566 Z-1.000000 I-6.002578 J-5.009182
G03 X122.447756 Y32.249895 Z-1.000000 I0.000000 J-7.975500
G03 X119.908945 Y25.356173 Z-1.000000 I8.089970 J-6.893721
G01 X119.908945 Y25.356173 Z-1.000000
G00 Z5.000000

(End cutting path id: path7829)

(Footer)
M5
G00 X0.0000 Y0.0000
M2
(Using default footer. To add your own footer create file “footer” in the output dir.)
(end)
%

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-905 Tue, 07 Jan 2025 20:00:27 +0000 https://ben.akrin.com/?p=11797#comment-905 In reply to Tomasz.

Oh ok! That gives me a clue about what it going on, but I’m still baffled about how it could result in taking down the Pi altogether. I’ll do some testing knowing this. Thank you for sticking with it and reporting this back.

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-904 Tue, 07 Jan 2025 19:57:20 +0000 https://ben.akrin.com/?p=11797#comment-904 In reply to Tomasz.

Thank you for your idea with zoom, I just solved the problem, simply pasting the margin value, ctrl+v and success, that’s the last idea I had, I’m starting to fight with g-code, I’ll definitely get back to you, Thank you

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-903 Tue, 07 Jan 2025 06:23:20 +0000 https://ben.akrin.com/?p=11797#comment-903 In reply to ben.

Hi
Without changing the margines everything works fine, once I managed to change it to 50 but then
engines didn’t start, only the servo worked, I’ll try changing other values, maybe enter 0.3 as a percentage value

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-902 Tue, 07 Jan 2025 02:58:54 +0000 https://ben.akrin.com/?p=11797#comment-902 In reply to Tomasz.

Tomasz, what does happen if you just have it draw something without changing the margins? You don’t need to have a pen or even hook up the belt on the motors, just have it draw anything to see if the motors spin.

It’s so hard to believe, but it wouldn’t be the first time I ran into an IT challenge that was unbelievable :). When you set the margins, it doesn’t do anything to the electronics, it literally just changes 1 variable in software. Speaking of which, what happens if you change some of the other tunables in there? Is it just the margins that create this bizarre behavior?

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-901 Mon, 06 Jan 2025 22:08:48 +0000 https://ben.akrin.com/?p=11797#comment-901 In reply to ben.

Hi Ben
Pi zero 2w works fine, unfortunately I still have a problem with setting margines, I did a lot of tests,
it always looks like this, after changing the margines value the page Panel or maybe raspberry does not respond, setting values ​​undefined, the plotter panel not find any networks, waiting does not change anything only reset. I connected to Windows and Linux Mint nothing helps.
You have an idea?

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-900 Tue, 03 Dec 2024 19:42:20 +0000 https://ben.akrin.com/?p=11797#comment-900 In reply to Tomasz.

I’m not sure if a Pi Zero 2W will work, I think it will but I haven’t tested a full build.

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-899 Tue, 03 Dec 2024 19:31:52 +0000 https://ben.akrin.com/?p=11797#comment-899 In reply to Tomasz.

“Tomasz, are you saying that the website became unavailable because you tried to changed the margin again? Or that it was unavailable and so you couldn’t change the margin? ”

Yes, the page became unavailable after changing the margin, later I had to turn off Pi could not connect Wifi

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-898 Tue, 03 Dec 2024 19:24:09 +0000 https://ben.akrin.com/?p=11797#comment-898 In reply to ben.

Thank you,
It could be a short circuit or a loose wire, I have 5V voltage, now RPi is broken,
I isn’t know that it could affect the execution of the program, I will be more careful and start connecting and checking as you wrote,
Do you think Pi Zero 2W will be good?

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-897 Tue, 03 Dec 2024 13:39:48 +0000 https://ben.akrin.com/?p=11797#comment-897 In reply to Tomasz.

Tomasz, are you saying that the website became unavailable because you tried to changed the margin again? Or that it was unavailable and so you couldn’t change the margin? It sounds like your Pi is getting hung regardless of your trying to set the margins. If that’s the case you might have a loose connection somehewhere in your circuit, maybe a short. Do you have a voltmeter to verify that the Pi is getting 5V? If this is me, I’m unplugging everything from the Pi except power, I turn that on, make sure it work without getting hung, try a few operations like setting the margins, nothing will happen since everything is unplugged but that’s ok we’re just testing the Pi. Then I’m doing the same reintroducing one motor at a time.

I’m unclear on your questions about my process for sending drawings, but really it’s fairly irrelevant until you can get the machine to behave properly.

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-896 Tue, 03 Dec 2024 09:35:36 +0000 https://ben.akrin.com/?p=11797#comment-896 In reply to ben.

Hi
I set it once 30, change later unavailable, website does not connect to RPI,
Pi Zero 2W will be good? I wanted to buy one.
What is your method to place the drawing in one quarter, moving in Inkscape and doing g-code does not give the correct result

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-895 Mon, 02 Dec 2024 22:07:47 +0000 https://ben.akrin.com/?p=11797#comment-895 In reply to Tomasz.

Hey Tomasz,

that’s odd I adjust the margins all the time without issue. Out of curiosity, what are you trying to set them to? I could try to do the same.

]]>
By: Tomasz https://ben.akrin.com/gondola-plottybot-is-born/#comment-894 Mon, 02 Dec 2024 17:44:20 +0000 https://ben.akrin.com/?p=11797#comment-894 Hello
I built a plotter I did some tests and everything works fine, the problem started when I changed the margines, only once I managed to do it.
Many times RPi hung up turning off the power burned RPi.
Please advise how and when to change margines and what is your method of placing the drawing only on a piece of canvas for example in a corner not on the whole area

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-893 Fri, 27 Sep 2024 14:30:10 +0000 https://ben.akrin.com/?p=11797#comment-893 In reply to Jan Haddock.

It’s difficult to speculate on what might be going wrong with what little information you offer, and it would have been wise to not pursue the rest of the instructions when the first stepper didn’t turn. Are you soldering everything or using Dupont connectors? All I can think of here is loose connections. Did you get the exact same drivers I listed for the Stepper motors?

]]>
By: Jan Haddock https://ben.akrin.com/gondola-plottybot-is-born/#comment-892 Fri, 27 Sep 2024 14:06:30 +0000 https://ben.akrin.com/?p=11797#comment-892 In reply to Jan Haddock.

When I report (with the test setup in operation) that I know what I am doing, I sometimes succeed in executing penup and pendown (usually not) but I cannot get the stepper motors to move.

]]>
By: Jan Haddock https://ben.akrin.com/gondola-plottybot-is-born/#comment-891 Thu, 26 Sep 2024 14:54:15 +0000 https://ben.akrin.com/?p=11797#comment-891 In reply to ben.

Hi Ben, I have made a test setup (and checked the connections) to check if everything works. I want to test the stepper motors and the pen movement in the Mechanics sector but nothing works. Do I have to log in somewhere or something like that?

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-890 Thu, 12 Sep 2024 21:26:02 +0000 https://ben.akrin.com/?p=11797#comment-890 In reply to Jan Haddock.

Ah yeah ok, that’s not too surprising coming from them, they are over zealous with this and making sure you get ads too.

]]>
By: Jan Haddock https://ben.akrin.com/gondola-plottybot-is-born/#comment-889 Thu, 12 Sep 2024 18:37:40 +0000 https://ben.akrin.com/?p=11797#comment-889 In reply to ben.

Hi Ben, I found the problem; GOOGLE’s security was too high. I temporarily disabled security and then everything worked.
Thanks for the support!

]]>
By: ben https://ben.akrin.com/gondola-plottybot-is-born/#comment-888 Thu, 12 Sep 2024 12:18:33 +0000 https://ben.akrin.com/?p=11797#comment-888 In reply to Jan Haddock.

I’m not sure what to say it works for me. I can click on it and it starts to download the image file. Could you possibly try another browser? Do you have a non-standard internet connection? (satellite, cellular). Do you have a way to try from another internet connection?

]]>
By: Jan Haddock https://ben.akrin.com/gondola-plottybot-is-born/#comment-887 Wed, 11 Sep 2024 18:11:55 +0000 https://ben.akrin.com/?p=11797#comment-887 In reply to ben.

Yes, it looks like he wants to open a site but in the end nothing happens. I’ve tried this before, see Roger’s comment.

]]>