This repo contains code The Atlas / Axiom robot.
atax
are for the "main pi" / "burn pi"image_display
are for the "image display" piimages
contain user
and base
for user-selected gcode image files and base image file segments, respectively.state
control state. 3 files.On the burn pi, you'll need 3 terminal windows open:
torch.py
, gcode_repl.py
, or direct_ugi.py
.Zero with UGS.
start_ugs
from anywhere.Check the state files, and make sure they're ok.
state/base_image_state.json
should have the same base image file reference as the command you want to run. Otherwise, you need to run the script with the basefile matching what's in state, OR remove the state files.rm state/*
from the terminal. Be carfeful with this; if you do it, you can't get them back.atlas
directory, then run the main file. We're going to try 2 different variants; the first (atax_burner.py
) has cooler stuff including camera and audio and light control, but the second (burntest.py
) has been proven to work.Variant 1 (try this for camera/lights/audio):
cd ~/atlas
python atax/atax_burner.py --basefile B1_heart_gear
Variant 2 (for a simple burn experience):
cd ~/atlas
python atax/burntest.py --basefile B1_heart_gear
There are 3 ways we could potentially run this, let's start with most ambitious, and scale back to simpler methods if needed.
For the first 2, start by opening a terminal window on the image display pi.
Variant 1 (user presses physical buttons to determine images):
cd atlas-axiom/image-display
python3 image_display.py
Variant 2 (Alan used keyboard input on image display Pi to determine images):
cd atlas-axiom/image-display
python3 image_display_k.py
Notes on the keyboard script:
O
(capital O) to start.1-16
followed by Enter
to select images.R
to clear the screen if you want to start over.S
to submit your selection. You can submit even after entering just one number.Variant 3 (cut out the image display pi completely, and run the following on the BURN PI):
cd ~/atlas
python atax/direct_ugi.py
Instructions are printed when you start the script.
Hit ctrl+c ONCE to stop the burn script.
Cannot connect to GRBL:
Cannot connect to the serial port for the GC on image display pi:
[probably other stuff but I can't think of it right now]...
cd ~/atlas
python atax/gcode_repl.py
# then type any gcode, and enter it. Type "exit" to quit.
cd ~/atlas
python atax/torch.py
# then type "on" to turn it on, "off" to turn it off, "exit" to exit.
Just run start_ugs
from anywhere. This should actually work now.