This is an old revision of the document!
there are three repos needed to get this going
the above fork of GRBL has been adapted to make servo handling easier (check commits).
there are also EEPROM kept states that need to be adapted to our machine.
$1=255 (thanks paul)the drawbot Inkscape extension also got some love, with a few fixes. notably, disregarding hidden layers, addition of x/y offset control.
cat drawbot_skeleton.gcode | llm -m openrouter/anthropic/claude-3.7-sonnet -x - | tee drawbot_claude37.gcode
; drawbot_skeleton.gcode ;extend the following gcode to draw an orthographic view of a rubic cube ; speed is F2200 ; limits are y:60 x:200 ; only one color ; do not draw occlude lines G21 ; Set units to millimeters G90 ; Set to absolute positioning M5 ; Pen up G4 P1 ; always Wait 1 second after pen up M3 S1000 ; Pen down
we came a long way
cat drawbot_skeleton.gcode | llm -m 3.5 -x - | tee drawbot_gpt35-turbo.gcode G1 X0 Y0 F2200 ; Move to starting position G1 X60 Y0 ; Draw first square of the rubic cube G1 X0 Y60 ; Draw second square of the rubic cube G1 X60 Y60 ; Draw third square of the rubic cube G1 X60 Y20 ; Draw fourth square of the rubic cube G1 X60 Y40 ; Draw fifth square of the rubic cube G1 X20 Y60 ; Draw sixth square of the rubic cube G1 X40 Y60 ; Draw seventh square of the rubic cube G1 X20 Y0 ; Draw eighth square of the rubic cube G1 X40 Y0 ; Draw ninth square of the rubic cube M5 ; Pen up G4 P1 ; Wait 1 second M2 ; End of program