Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Oct 4, 2024
0 parents commit 70a8597
Show file tree
Hide file tree
Showing 9 changed files with 1,171 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.stl
22 changes: 22 additions & 0 deletions README.md
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
39 changes: 39 additions & 0 deletions make-all.sh
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"
Loading

0 comments on commit 70a8597

Please sign in to comment.