summaryrefslogtreecommitdiff
path: root/esp8266-sds011.scad
blob: 6e2032269feda2910ad81b768a6524820a20d9d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
wand = [2, 2, 2];

sds011 = [71, 71, 28];
sds011_anluft = [10, wand.y, 10];
sds011_anluft_offset = [wand.x + 15, 0, wand.z + 10];

esp8266 = [38, 71, 13];
esp8266_usb = [wand.x, 20, 13];
esp8266_usb_offset = [0, wand.y + 5, wand.z];

difference() {
    cube(sds011 + wand + [wand.x, 0, wand.z]);
    translate(wand) cube(sds011);
    translate(sds011_anluft_offset) cube(sds011_anluft);
}

translate([0, 0, wand.z + sds011.z]) difference() {
    cube(esp8266 + wand + [wand.x, 0, wand.z]);
    translate(wand) cube(esp8266);
    translate(esp8266_usb_offset) cube(esp8266_usb);
}