mirror of
https://github.com/Luzifer/3dmodels.git
synced 2024-12-23 02:41:19 +00:00
Remove screw-holes
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1452ae72f8
commit
63f1a828ac
3 changed files with 217 additions and 22928 deletions
|
@ -6,4 +6,4 @@ In case you have use for those models thankfully to Github you can preview all m
|
||||||
|
|
||||||
| Model | Source | Version | Title |
|
| Model | Source | Version | Title |
|
||||||
| ----- | ------ | ------- | ----- |
|
| ----- | ------ | ------- | ----- |
|
||||||
| [`sonoff_dev_housing.stl`](sonoff_dev_housing.stl) | [`sonoff_dev_housing.jscad`](sonoff_dev_housing.jscad) | 0.2.3 | Sonoff DEV box for lamp post |
|
| [`sonoff_dev_housing.stl`](sonoff_dev_housing.stl) | [`sonoff_dev_housing.jscad`](sonoff_dev_housing.jscad) | 0.2.4 | Sonoff DEV box for lamp post |
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* title : Sonoff DEV box for lamp post
|
* title : Sonoff DEV box for lamp post
|
||||||
* author : Knut Ahlers
|
* author : Knut Ahlers
|
||||||
* revision : 0.2.3
|
* revision : 0.2.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// All measurements in mm
|
// All measurements in mm
|
||||||
|
@ -16,9 +16,6 @@ const lampPostSupport = lampPostRadius + 4.5 // adjust for proper grip
|
||||||
const powerInletHeight = 8 // Size of power adapter
|
const powerInletHeight = 8 // Size of power adapter
|
||||||
const powerInletWidth = 14 // Size of power adapter
|
const powerInletWidth = 14 // Size of power adapter
|
||||||
const powerInletPosY = boardSize / -2 + 13 + powerInletWidth / 2
|
const powerInletPosY = boardSize / -2 + 13 + powerInletWidth / 2
|
||||||
const screwBaseSize = 3 // block to screw the screw into
|
|
||||||
const screwHeadRadius = 1.25 // screw head diameter = 2*screwHeadRadius
|
|
||||||
const screwRadius = 0.7 // radius for the hole the screw is screwed into
|
|
||||||
const ventSize = 1
|
const ventSize = 1
|
||||||
const ventWidth = (boardSize + innerSpace - 5 * ventSize) / 2
|
const ventWidth = (boardSize + innerSpace - 5 * ventSize) / 2
|
||||||
const wall = 1.5 // wall thickness
|
const wall = 1.5 // wall thickness
|
||||||
|
@ -71,22 +68,6 @@ function main() {
|
||||||
center: true,
|
center: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
const screwHeadSink = sphere({
|
|
||||||
r: screwHeadRadius,
|
|
||||||
center: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
const screwHole = cylinder({
|
|
||||||
h: screwBaseSize,
|
|
||||||
r: screwRadius,
|
|
||||||
center: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
const screwBase = difference(
|
|
||||||
cube({ size: [screwBaseSize, screwBaseSize, screwBaseSize], center: true }),
|
|
||||||
screwHole
|
|
||||||
)
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
// Housing without lid
|
// Housing without lid
|
||||||
union(
|
union(
|
||||||
|
@ -165,83 +146,15 @@ function main() {
|
||||||
(boardSize / 2 - boardSupportEdgeDist) * -1,
|
(boardSize / 2 - boardSupportEdgeDist) * -1,
|
||||||
(boardSize / 2 - boardSupportEdgeDist) * -1,
|
(boardSize / 2 - boardSupportEdgeDist) * -1,
|
||||||
(innerSpaceHeight + wall) / 2 - (boardSupportHeight + wall) / 2,
|
(innerSpaceHeight + wall) / 2 - (boardSupportHeight + wall) / 2,
|
||||||
], boardSupport),
|
], boardSupport)
|
||||||
|
|
||||||
// Screw bases
|
|
||||||
translate([
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
((innerSpaceHeight + wall) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
], screwBase),
|
|
||||||
translate([
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
((innerSpaceHeight + wall) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
], screwBase),
|
|
||||||
translate([
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
((innerSpaceHeight + wall) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
], screwBase),
|
|
||||||
translate([
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
((innerSpaceHeight + wall) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
], screwBase)
|
|
||||||
).translate([(boardSize + innerSpace + wall + 5) * -0.5, 0, (innerSpaceHeight + wall) / 2]),
|
).translate([(boardSize + innerSpace + wall + 5) * -0.5, 0, (innerSpaceHeight + wall) / 2]),
|
||||||
|
|
||||||
// Lid
|
// Lid
|
||||||
difference(
|
difference(cube({ size: [
|
||||||
cube({ size: [
|
|
||||||
boardSize + innerSpace + wall * 2,
|
boardSize + innerSpace + wall * 2,
|
||||||
boardSize + innerSpace + wall * 2,
|
boardSize + innerSpace + wall * 2,
|
||||||
wall,
|
wall,
|
||||||
], center: true }),
|
], center: true })).translate([(boardSize + innerSpace + wall + 5) * 0.5, 0, wall / 2]),
|
||||||
|
|
||||||
// Screw holes
|
|
||||||
translate([
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
0,
|
|
||||||
], screwHole),
|
|
||||||
translate([
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
0,
|
|
||||||
], screwHole),
|
|
||||||
translate([
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
0,
|
|
||||||
], screwHole),
|
|
||||||
translate([
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
0,
|
|
||||||
], screwHole),
|
|
||||||
|
|
||||||
// Screw head sinks
|
|
||||||
translate([
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
screwHeadRadius - wall / 3,
|
|
||||||
], screwHeadSink),
|
|
||||||
translate([
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
screwHeadRadius - wall / 3,
|
|
||||||
], screwHeadSink),
|
|
||||||
translate([
|
|
||||||
(boardSize + innerSpace) / 2 - screwBaseSize / 2,
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
screwHeadRadius - wall / 3,
|
|
||||||
], screwHeadSink),
|
|
||||||
translate([
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
((boardSize + innerSpace) / 2 - screwBaseSize / 2) * -1,
|
|
||||||
screwHeadRadius - wall / 3,
|
|
||||||
], screwHeadSink)
|
|
||||||
).translate([(boardSize + innerSpace + wall + 5) * 0.5, 0, wall / 2]),
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
23022
sonoff_dev_housing.stl
23022
sonoff_dev_housing.stl
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue