Three recent physical projects: Difference between revisions

Created page with "'''dankblog! 2024-06-22, 2334 EST, at the danktower''' I recently got my [https://bambulab.com/en/x1 Bambu X1 Carbon] working again, after being offline for almost two years. Doing so motivated me to knock out some projects I'd been contemplating. ==Air contaminant detector== I wanted a CO detector, but figured I might as well detect everything I could. A [https://www.amazon.com/dp/B0CQ2F2884 sack of nine] MQ-series detectors runs about $15 o..."
 
No edit summary
Line 30: Line 30:
Finally, we'll want to add WiFi to this setup (the Mega has neither Ethernet nor WiFi built in). Get an [https://www.amazon.com/DIYmall-ESP8266-ESP-01S-Serial-Transceiver/dp/B00O34AGSU ESP8266 ESP-01S] WiFi module along with a [https://www.eitkw.com/product/esp-01-adapter-module-3-3-5-v-arduino-compatible/ 3.3V-5V adapter]. Without the adapter, you'll need to level shift the 5V UART TX signal from the Mega, and add some resistors on the power hookup. This $0.50 adapter handles that for you. Stick it in the top, and solder all four points. Obviously, use unoccupied horizontal channels. Two wires for V and G, four solder points, you know the drill. We'll also need two longer wires for RX and TX. Solder them in, and prepare a 1x2P Dupont hookup. These will be going into RX3 and TX3 on the Mega.
Finally, we'll want to add WiFi to this setup (the Mega has neither Ethernet nor WiFi built in). Get an [https://www.amazon.com/DIYmall-ESP8266-ESP-01S-Serial-Transceiver/dp/B00O34AGSU ESP8266 ESP-01S] WiFi module along with a [https://www.eitkw.com/product/esp-01-adapter-module-3-3-5-v-arduino-compatible/ 3.3V-5V adapter]. Without the adapter, you'll need to level shift the 5V UART TX signal from the Mega, and add some resistors on the power hookup. This $0.50 adapter handles that for you. Stick it in the top, and solder all four points. Obviously, use unoccupied horizontal channels. Two wires for V and G, four solder points, you know the drill. We'll also need two longer wires for RX and TX. Solder them in, and prepare a 1x2P Dupont hookup. These will be going into RX3 and TX3 on the Mega.


We'll want some kind of housing to keep these sensors and plugs in place, but we don't want to block the air intakes. I designed the following in a few minutes using [https://github.com/dankamongmen/openscad-models/blob/master/airmon.scad OpenSCAD]:
<syntaxhighlight>
include <cyl_head_bolt.scad>
outw = 37.5;
outl = 88.37;
thick = 1.5 + .6;
h = 8;
difference(){
cube([outw + 2, outl + 2, h]);
union(){
translate([1, 1, 2]){
cube([thick, outl, h]);
}
translate([outw + 1 - thick, 1, 2]){
cube([thick, outl, h]);
}
translate([(outw + 2) / 2, 5, h]){
  hole_threaded(name="M4", h, "yes", cltd=0.6);
}
translate([(outw + 2) / 2, outl - 5, h]){
  hole_threaded(name="M4", h, "yes", cltd=0.6);
}
}
}
</syntaxhighlight>
This results in a cuboid with two channels for the sensors, and a through for the plugs. I printed it with black ABS. Thread the plugs through, and then ensure all eight sensors are securely in their channels. If you'd like, add some superglue to these channels. You ought now have a secure sensor array.
That's the hard part. Now, print a case for the Mega; I liked [https://www.thingiverse.com/thing:4375248 this one] from Thingiverse. I used PLA here, mostly because I needed to print supports for the topside, and I didn't have any HIPS breakaway filament. PVA isn't suitable for ABS; the temperature mismatch will fuck up adhesion.
[[File:Megaprint.png|Printing the top]]
==Case faceplate with OLED display==
==Case faceplate with OLED display==