Im planning on putting this sand table back out in the hallway like before. Ive been doing a lot of work on the enclosure to make it easier to access and troubleshoot- Here are the solidworks files if anyone is interested. Ill share all the progress from my work in a month or two when its hopefully all done. https://drive.google.com/file/d/1hkJau62FkkBEcNZvXqM29UEoGW-TNFo4/view?usp=sharing
I do have another questions - this machine will be out in the hallway and the front of the system is covered with clear plexiglass so students can see the inner workings. I want to include a small display which demos the G-Code pattern. Im hopefully using SandyPi as the main controller and FluidNC as the CNC controller but is there any easy way to just output the G-code 2D positioning to a display so students could see it.
As always - cheers for all the great advice over the years.
Tim
Im actually having fun trying to program this GRBL sender in Python. Here is a quick video of an update and code if it helps anyone. https://youtu.be/Bs1tPpQs2-0
Open grbl serial port
s = serial.Serial(â/dev/ttyUSB0â,115200)
Open g-code file
f = open(â/home/timcallinan/GCODE/Newâ,ârâ);
Wake up grbl
s.write(â\r\n\r\nâ.encode())
time.sleep(2) # Wait for grbl to initialize
s.flushInput() # Flush startup text in serial input
Stream g-code to grbl
for line in f:
l = line.strip() # Strip all EOL characters for streaming
print(âSending: â + l,)
s.write((l + â\nâ).encode()) # Send g-code block to grbl
grbl_out = s.readline() # Wait for grbl response with carriage return
grbl_out_str=str(grbl_out)
print(â : â + grbl_out_str)
Wait here until grbl is finished to close serial port and file.
@Mcunn, if you get the chance, can you share your configuration file? Slowly working through making one of my own, just making final tweaks (and troubleshooting the inevitable errors that pop up).
How do you guys actually run the gcode? I pulled some raw gcode off of sandify, but itâs only G01 movements (no feeds, etc.) and FluidNC doesnât recognize it. Do you use sandify for the movements and just edit in feed commands?
I think this is the latest copy . Iâll be in the office tomorrow where the machine lives at the moment and download a fresh copy. Note that the Steps per/mm are for my polar machine which definately wonât work on a cartesian machine like the xenxy.
@codingishard404 if you get that working, post the config and what board you have in the #software:fluidnc category. I am sure that will be helpful for others. Yours is the first corexy fluidnc config I have seen, I think.
That was the missing piece, thank you Michael. Speaks to my inexperience, but I wasnât sure if I could get away with a feed at the beginning or if every command needed one.
Yeah luckily on Cartesian you donât need one on every line. For polar you have to calc the feedrate for every move as it runs faster at the edge than in the center which is pain.