mirror of
https://github.com/Luzifer/3dmodels.git
synced 2024-12-22 18:31:19 +00:00
Fix not working measurements
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
55d97f7e02
commit
e568e00102
3 changed files with 7798 additions and 7508 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 |
|
||||
| ----- | ------ | ------- | ----- |
|
||||
| [`sonoff_dev_housing.stl`](sonoff_dev_housing.stl) | [`sonoff_dev_housing.jscad`](sonoff_dev_housing.jscad) | 0.2.5 | Sonoff DEV box for lamp post |
|
||||
| [`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 |
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
/*
|
||||
* title : Sonoff DEV box for lamp post
|
||||
* author : Knut Ahlers
|
||||
* revision : 0.2.5
|
||||
* revision : 0.2.6
|
||||
*/
|
||||
|
||||
// All measurements in mm
|
||||
const boardSize = 51 // 51x51mm
|
||||
const boardSupportHeight = 6 // pins to put the board on
|
||||
const boardSupportRadius = 1.25
|
||||
const boardSupportEdgeDist = 2.5 // 2.5mm from the edges
|
||||
const innerSpace = 7 // free room on the inside from the board not to bend the cables that hard
|
||||
const boardSupportEdgeDist = 3 // mm from the edges to hole center
|
||||
const innerSpace = 10 // free room on the inside from the board not to bend the cables that hard
|
||||
const innerSpaceHeight = 20
|
||||
const lampPostRadius = 7 // 14mm diameter
|
||||
const lampPostSupport = lampPostRadius + 4.5 // adjust for proper grip
|
||||
const powerInletHeight = 8 // Size of power adapter
|
||||
const powerInletWidth = 14 // Size of power adapter
|
||||
const powerInletPosY = boardSize / -2 + 13 + powerInletWidth / 2
|
||||
const powerInletPosY = boardSize / -2 + 11 + powerInletWidth / 2
|
||||
const ventSize = 1
|
||||
const ventWidth = (boardSize + innerSpace - 5 * ventSize) / 2
|
||||
const wall = 1.5 // wall thickness
|
||||
const wall = 1 // wall thickness
|
||||
|
||||
function addVents(obj) {
|
||||
const ventRow = difference(
|
||||
|
@ -162,11 +162,21 @@ function main() {
|
|||
boardSize + innerSpace,
|
||||
wall,
|
||||
], center: true }),
|
||||
// cut out inside to save material
|
||||
cube({ size: [
|
||||
boardSize + innerSpace - 2 * wall,
|
||||
boardSize + innerSpace - 2 * wall,
|
||||
wall,
|
||||
], center: true })
|
||||
], center: true }),
|
||||
// cut out corners as they don't really fit when printed
|
||||
cube({ size: [5 * wall, 5 * wall, wall], center: true })
|
||||
.translate([(boardSize + innerSpace - wall) / 2, (boardSize + innerSpace - wall) / 2, 0]),
|
||||
cube({ size: [5 * wall, 5 * wall, wall], center: true })
|
||||
.translate([(boardSize + innerSpace - wall) / -2, (boardSize + innerSpace - wall) / 2, 0]),
|
||||
cube({ size: [5 * wall, 5 * wall, wall], center: true })
|
||||
.translate([(boardSize + innerSpace - wall) / -2, (boardSize + innerSpace - wall) / -2, 0]),
|
||||
cube({ size: [5 * wall, 5 * wall, wall], center: true })
|
||||
.translate([(boardSize + innerSpace - wall) / 2, (boardSize + innerSpace - wall) / -2, 0])
|
||||
).translate([0, 0, wall])
|
||||
).translate([(boardSize + innerSpace + wall + 5) * 0.5, 0, wall / 2]),
|
||||
]
|
||||
|
|
15282
sonoff_dev_housing.stl
15282
sonoff_dev_housing.stl
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue