Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | camp:allgemein:toilet_keys [2022/09/04 12:37] (aktuell) – angelegt phantomix | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | Toilet key hacking | ||
+ | |||
+ | The toilet keys on the camping site consist of a plastic carrier holding a 4x3 matrix of magnets. Each magnet encodes one bit, but the pattern looks like an L-shape. | ||
+ | |||
+ | 0 = S | ||
+ | 1 = N | ||
+ | | ||
+ | 1 0 0 | ||
+ | 1 0 0 | ||
+ | 1 0 0 | ||
+ | 1 1 1 | ||
+ | |||
+ | Someone did a draft for a 3d printed version in openscad; the magnet size is 5mm in diameter and 2mm in height. | ||
+ | |||
+ | NOTE: This is only a draft and may still need some adaption, as we didn't have enough magnets to test | ||
+ | y_magnet_pos = [31, | ||
+ | x_magnet_pos = [5,14,23]; | ||
+ | magnet_spacing = 9; | ||
+ | magnet_dia = 5; | ||
+ | magnet_h = 2; | ||
+ | | ||
+ | module magnet() | ||
+ | { | ||
+ | color([.6, | ||
+ | } | ||
+ | module camping_toilet_key() | ||
+ | { | ||
+ | difference() { | ||
+ | cube([28, | ||
+ | translate([23, | ||
+ | for(y = y_magnet_pos) { | ||
+ | for(x = x_magnet_pos) { | ||
+ | translate([x, | ||
+ | cylinder(d=magnet_dia+.4, | ||
+ | for(xd = [-2,0,2]) | ||
+ | translate([x + xd, y, 4.2]) cube([1, | ||
+ | } | ||
+ | translate([28/ | ||
+ | cube([28, | ||
+ | translate([28/ | ||
+ | cube([28, magnet_dia/ | ||
+ | translate([28/ | ||
+ | cube([26, (magnet_spacing - magnet_dia - 1), magnet_h+.4], | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | camping_toilet_key(); |