Home › Forums › DIY Sand Table › Sandify Patterns
Tagged: @dfronek @MattG @hoopty
- This topic has 5 replies, 3 voices, and was last updated 2 years, 10 months ago by geri.
-
AuthorPosts
-
July 11, 2021 at 2:48 pm #838HendrikV22Participant
Good evening fellow peeps,
So, with the help of @dfronek, I managed to get the bot drawing some patterns designed in Sandify.
Thank you very much @dfronek for the assistance so far.
However, I’m still struggling to get the bot from drawing any other patterns available on the internet (If there is anyone who maybe can assist will be appreciated).
So, Sandify is really great for the start at the moment to start enjoying the table pattern drawing…. But it seems like I managed to find a glitch somewhere…Below is trying to explain what I’m experiencing:
Using the standard circle function, a managed to draw a circle with different size circles a well as different amounts of loops. My settings on Sandify were the following:
Shape: Circle
Number of Lobes: 1
Direction: Clockwise
Initial width: 10
Initial Height: 10
X offset: 0
Y offset: 0
Reverse Path: unselected
Loop and transform – Number of Loops: 10
When transforming shape: Smear
Scale: 138
Spin: Not Selected
Track: Not Selected
Machine settings:
Polar Machine with Max radius of 492mmSo, now I wanted to create a pattern with sandify where the circle is off-center…Therefore, with the majority of settings staying the same but the following settings changed:
X offset: -78
Y offset: -4When I tried this design, the bot is drawing random patterns. Every time when I design a pattern that does not start in the center the bot doesn’t want to draw… It draws random patterns with no resemblance… Which I believe now is the reason why none of my other patterns may be working….?
The arm lengths of my bot are both 246mm… making it a total radius arm of 492mm and a total table drawing diameter of 984mm.
I changed the setting is in the Bot configuration so that the maxval is 246 om both areas where you need to change. In the Sandify app, I indicated the Max Radius under “Machine” tab as 492mm. I played with the Start point and endpoint but it seems that this is also not assisting with the current challenge.
So my question… did anyone else experience this challenge or know why the bot might not be able to draw patterns that are off-center?
Kind Regards
July 18, 2021 at 5:48 pm #847HendrikV22ParticipantHi Guys,
Bumping this post to see if anyone maybe have a possible solution or are experiencing the same challenge?
Kind Regards
August 8, 2022 at 12:59 pm #1019scott_12345Participanthi, it seems like the website doesn’t make the centre of the circle (0,0) and tries to make an odd path there, I have made a program I’m python that does fix this and will make them useable if you would like it just let me know
August 16, 2022 at 1:18 pm #1020geriParticipanthello I would be interested in your program and also in the traces if you have made any lg
August 16, 2022 at 1:33 pm #1021scott_12345Participanthi, it’s written in python, it’s not much but it works, enter the file name and the length of one arm(mm) and it should correct the gcode, if you have any issues just let me know, thanks
import re fileName = input("enter file name: ") armLength = float(input("enter single arm length(mm): ")) header = [] coords = [] with open(fileName + ".gcode") as file: for line in file: if "G01" in line: coords.append(line) else: header.append(line) def updateHeader(list): newCoords = [] for i in list: newCoords.append(i) h = ''.join(newCoords) return h def updateCoords(list): newCoords = [] for i in list: coord = (re.findall("[+-]?\d+\.\d+", i)) coord[0] = float(coord[0]) coord[0] = round(coord[0] - armLength * 2, 3) coord[1] = float(coord[1]) coord[1] = round(coord[1] - armLength * 2, 3) x = str(coord[0]) y = str(coord[1]) line = "G01 " + "X" + x + " " + "Y" + y + "\n" newCoords.append(line) s = ''.join(newCoords) return s f = open("Updated " + fileName + ".Gcode", "w+") f.write(updateHeader(header)) f.write(updateCoords(coords))
August 20, 2022 at 12:49 am #1025geriParticipantthanks i will test it
-
AuthorPosts
- You must be logged in to reply to this topic.