Docs: Add panel width calculation table

main
rkcf 2023-02-06 19:29:47 -06:00
parent 4e261e08fa
commit 1f927c1e04
1 changed files with 37 additions and 12 deletions

View File

@ -44,18 +44,43 @@ Functional groups
* Misc * Misc
** Eurorack Panel Calculator ** Eurorack Panel Sizes
#+name: Eurorack Panel Calculator - 3U height = 128.55 +0/-0.15 mm
#+begin_src python :results output :var hp=4 - Widths have a tolerance of +0/-0.2 mm
width = (hp * 5.08) - 0.3 - Mounting holes have a vertical distance between them of 122.50 ±0.2 mm
u = 3 - Widths are calculated as follows:
height = (u * 44.45) - 4.8
hole_distance = (u * 44.45) - 10.85 #+name: Eurorack Panel Width
print("A %dU %dhp panel is %1.2fmm x %1.2fmm" % (u, hp, height, width)) #+begin_src python :results value
print("The Holes are %1.2fmm appart" % hole_distance) sizes = [x for x in range(2,37) if x % 2 == 0]
table = []
table.append(("HP", "Width (mm)"))
for hp in sizes:
width = (hp * 5.08) - 0.3
table.append((hp, round(width, 2)))
return table
#+end_src #+end_src
#+RESULTS: Eurorack Panel Calculator #+RESULTS: Eurorack Panel Width
: A 3U 4hp panel is 128.55mm x 20.02mm | HP | Width (mm) |
: The Holes are 122.50mm appart | 2 | 9.86 |
| 4 | 20.02 |
| 6 | 30.18 |
| 8 | 40.34 |
| 10 | 50.5 |
| 12 | 60.66 |
| 14 | 70.82 |
| 16 | 80.98 |
| 18 | 91.14 |
| 20 | 101.3 |
| 22 | 111.46 |
| 24 | 121.62 |
| 26 | 131.78 |
| 28 | 141.94 |
| 30 | 152.1 |
| 32 | 162.26 |
| 34 | 172.42 |
| 36 | 182.58 |