1
0
Fork 0
mirror of https://github.com/Luzifer/3dmodels.git synced 2024-12-22 18:31:19 +00:00

Add eink_2-13_case

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-08-12 00:40:13 +02:00
parent e8d74403d5
commit 5d9b11ba0e
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 5833 additions and 0 deletions

View file

@ -7,6 +7,7 @@ In case you have use for those models thankfully to Github you can preview all m
| Model | Source | Version | Title |
| ----- | ------ | ------- | ----- |
| [`change-holder.stl`](change-holder.stl) | [`change-holder.jscad`](change-holder.jscad) | 0.1.1 | Spare-Change holder |
| [`eink_2-13_case.stl`](eink_2-13_case.stl) | [`eink_2-13_case.jscad`](eink_2-13_case.jscad) | 0.1.1 | Case for 2.13" Lilygo eink display |
| [`pir-holder.stl`](pir-holder.stl) | [`pir-holder.jscad`](pir-holder.jscad) | 0.1.1 | PIR holder |
| [`razorholder.stl`](razorholder.stl) | [`razorholder.jscad`](razorholder.jscad) | 0.1.1 | Holder for T-Shape razor |
| [`sonoff_dev_housing.stl`](sonoff_dev_housing.stl) | [`sonoff_dev_housing.jscad`](sonoff_dev_housing.jscad) | 0.2.6 | Sonoff DEV box for lamp post |

62
eink_2-13_case.jscad Normal file
View file

@ -0,0 +1,62 @@
/*
* title : Case for 2.13" Lilygo eink display
* author : Knut Ahlers
* revision : 0.1.1
*/
const boardD = 6
const boardH = 37 + 4
const boardW = 67
const displayH = 25
const displayW = 49.5
const wall = 2
const genCap = () => difference(
cube({ size: [boardW + 2 * wall, boardH + 2 * wall, wall], center: true }),
cube({ size: [wall, wall, wall], center: true })
.translate([boardW / 2 + wall / 2, boardH / 2 + wall / 2, 0]),
cube({ size: [wall, wall, wall], center: true })
.translate([boardW / -2 + wall / -2, boardH / 2 + wall / 2, 0]),
cube({ size: [wall, wall, wall], center: true })
.translate([boardW / 2 + wall / 2, boardH / -2 + wall / -2, 0]),
cube({ size: [wall, wall, wall], center: true })
.translate([boardW / -2 + wall / -2, boardH / -2 + wall / -2, 0])
)
const genInner = () => union(
// Inner without holding cylinders
difference(
cube({ size: [boardW, boardH, boardD], center: true }),
cylinder({ h: boardD, r: 1, center: true })
.translate([31, 16.5, 0]),
cylinder({ h: boardD, r: 1, center: true })
.translate([-31, 16.5, 0]),
cylinder({ h: boardD, r: 1, center: true })
.translate([31, -16.5, 0]),
cylinder({ h: boardD, r: 1, center: true })
.translate([-31, -16.5, 0])
),
// Display cut-out
cube({ size: [displayW, displayH, wall], center: true })
.translate([boardW / -2 + displayW / 2 + 3, 0, boardD / -2 + wall / -2]),
// Port cut-out
cube({ size: [9, wall, boardD], center: true })
.translate([boardW / 2 - 4.5 - 19.5, boardH / -2 + wall / -2])
)
/* exported main */
function main () {
return union(
difference(
// Block
cube({ size: [boardW + 2 * wall, boardH + 2 * wall, boardD + 2 * wall], center: true }),
genInner(),
genCap().translate([0, 0, boardD / 2 + wall / 2])
),
genCap().translate([0, 2 * boardH, 0])
)
}
// vim: set ft=javascript:

5770
eink_2-13_case.stl Normal file

File diff suppressed because it is too large Load diff