-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 70a8597
Showing
9 changed files
with
1,171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
all-tags: | ||
name: Make all tags | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install OpenSCAD | ||
run: sudo apt install --yes openscad | ||
|
||
- name: Make all tags | ||
run: ./make-all.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.stl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Maker Space wiki QR code tags | ||
|
||
Small 3D printable QR code plates that link to the wiki for attaching to things. | ||
|
||
## What do I need? | ||
|
||
- Bash | ||
- OpenSCAD | ||
|
||
## How do I do it? | ||
|
||
1. Add/edit/modify/mutilate the list in [`make-all.sh`](./make-all.sh) as required | ||
1. `./make-all.sh` | ||
1. In Bambu Studio, import all three files in the directory of the tag you want to print | ||
1. Select "Yes, load as one multi-part object" | ||
1. Switch to "Object" view in the left hand side bar | ||
1. Set materials appropriately for each layer | ||
1. Flip the model so that it prints with the QR code and text face down | ||
1. Slice and verify the QR code works and is correct (just use your phone camera pointed at the screen) | ||
1. Print | ||
1. ??? | ||
1. Profit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
# The OpenSCAD binary, set this appropriately | ||
OPENSCAD="openscad" | ||
# OPENSCAD="org.openscad.OpenSCAD" | ||
|
||
# Make output directory | ||
out="./out" | ||
mkdir -p "$out" | ||
|
||
# Build the main body and text parts once since they are the same for all tags | ||
$OPENSCAD tag_body.scad -o "$out/0-body.stl" | ||
$OPENSCAD tag_text.scad -o "$out/2-text.stl" | ||
|
||
make-tag() { | ||
# Generate the URL to encode in the QR code | ||
url="https://wiki.makerspace.org.uk/$1" | ||
|
||
# Make output directory for this tag | ||
tag_out="$out/$1" | ||
mkdir -p "$tag_out" | ||
|
||
# Copy the common models into the tag output directory | ||
cp "$out/0-body.stl" "$tag_out/0-body.stl" | ||
cp "$out/2-text.stl" "$tag_out/2-text.stl" | ||
|
||
# Build the tag specific QR code model | ||
$OPENSCAD -D "url=\"$url\"" tag_qrcode.scad -o "$tag_out/1-qrcode.stl" | ||
} | ||
|
||
# Make tags for all of the pages | ||
make-tag "equipment/laser_cutter" | ||
make-tag "equipment/bambulab_p1s" | ||
make-tag "equipment/prusa_mk3" | ||
make-tag "equipment/duratool_desolder_station" | ||
make-tag "equipment/axminster_bandsaw" | ||
make-tag "equipment/record_power_drill_press" | ||
make-tag "equipment/record_power_belt_and_disc_sander" | ||
make-tag "equipment/metal_lathe" |
Oops, something went wrong.