diff --git a/addpic.sh b/addpic.sh new file mode 100755 index 0000000..da2026d --- /dev/null +++ b/addpic.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +[ $# -ne 2 ] && { + echo "Usage: addpic.sh " + echo "Example: $0 ~/Pictures/Screenshot\ 2024-08-18\ at\ 23.32.55.png fusion.png" + exit +} + +infile=$1; shift +outfile=$(basename $1); shift + + +[ -r "$infile" ] || { + echo "Can't read infile $infile" + exit +} + +today=$(date +%Y-%m-%d) + +cmd="magick \"$infile\" -resize 400x static/img/thumbnails/$today/$outfile" +echo "Running: $cmd" +eval $cmd + +cmd="magick \"$infile\" -resize 4000000@\> static/img/fullsize/$today/$outfile" +echo "Running: $cmd" +eval $cmd diff --git a/content/blog/wk3day7.md b/content/blog/wk3day7.md index e73da71..90f60af 100644 --- a/content/blog/wk3day7.md +++ b/content/blog/wk3day7.md @@ -1,7 +1,61 @@ --- -title: "Week 3, Sunday:" +title: "Week 3, Sunday: Prototyping and 3D Printing" date: 2024-08-18T21:55:00+02:00 -draft: true --- {{< image frame="true" width="17em" float="right" src="/img/headline/noraenpure-03.png" alt="Credit: Nora en Pure, Youtube" >}} + +Today for most of the day I tinkered with the physical parts of my PDU project. I'm building a +16-port sensed 19" rack mountable power distribution unit. I have these slick modbus based 16x5A +ammeter coils which take 8-30V in and an A/B pair for RS485. I should be able to read those with the +ethernet based ESP32 microcontroller. + +In the morning I took some measurements of the plastic 19" rack mountable box, which has four +mounting pins 128mm apart, and four additional screw caps 48mm from those pins. I spent most of the +whole afternoon prototyping a backplate with 220V C13 (aka computer) connector and a hole where the +RJ45 ethernet connector goes. + +There were two problems today, both of which took several hours: + +1. Mongoose OS every now and again crashes with heap corruption and a pretty much unusable + coredump. I spent a long time upgrading Mongoose OS from its default ESP IDF 4.2 to a still old + but somewhat more modern ESP IDF 4.4. It did not help. Then I spent an even longer time reading + up (somewhat nerd-sniped) on the heap allocator code in Espressif's SDK. I learned a lot, but + did not get closer to a solution. +1. What I originally thought was a 145mm x 90 spacing on the ammeter, turned out to be a 146x91mm + (who would've thunk!), so I had to rework and re-print the ammeter brackets. But once that was + done, it fit snugly. + +I also finished the 220V wiring; in total for one PDU, that's 22 wires all cut to the correct length +and crimped. But for eight, that would be: a lot more :) I finished just before dinner time. I had +prepared the potatoes, baked beans and chicken croquantes, but Marina was so kind as to finish the +cooking for me, as the green spool of PLA is a bit twisted, not unlike my humor, and I need to +babysit this last print and every now and again untangle the spool. + +After dinner, I pre-baked two nice loaves for next week. I mixed 500g of _Buuremehl_ with 300ml of +water and added yeast and salt - that's it! The dough had a first rise of 2hrs, and after dinner I +formed the loaves, left them in the oven for 45min, and had the oven automatically turn itself on, +bake for 40min at 160C, and presto. + +In the mean time, we watched a movie - Quinn chose _Requiem for a Dream_ and it's one of my all time +favorite "Don't do drugs"-style movies. A truly stellar performance from Ellen Burstyn, and a very +pretty Jared Leto and Jennifer Connelly. Such a sad story - highly recommended. + +After the movie, I went downstairs to babysit a few more 3D printer parts - every two hours turning +on a new batch. I'm planning on making eight of these PDUs after all, so printing will take a small +while (about 6hrs of print time per individual PDU). I had a drink of wine, and before I knew it, it +was 02:00. I went upstairs to nosh on some _Parmigiano_ cheese, before going to bed. + +## Pictures of the Day + +{{< gallery-category >}} + {{< gallery-photo fn="2024-08-19/IMG_0713.JPG" caption="A mostly finished PDU - with the ESP32-ETH01 in its own little box, and brackets that will hold the ammeter." >}} + {{< gallery-photo fn="2024-08-19/IMG_0714.JPG" caption="One side of the box will be green, the other red. This is to signify that there are two 220V C13 inputs each with their own 8 C14 plugs on the front." >}} + {{< gallery-photo fn="2024-08-18/fusion.png" caption="The fusion design - top right has what I call the floorplan, with the individual screw holes and pegs of the chassis. THe other things are the parts that go within." >}} + {{< gallery-photo fn="2024-08-18/IMG_0710.JPG" caption="We watched Jared Leto and Jennifer Connelley in Requiem for a Dream." >}} + {{< gallery-photo fn="2024-08-18/IMG_0711.JPG" caption="The two loaves of bread baked themselves on a timer!" >}} + {{< gallery-photo fn="2024-08-18/IMG_0712.JPG" caption="Another tray of parts is freshly printed in black PLA. I will need to make eight batches of these." >}} +{{< /gallery-category >}} + +{{< gallery-modal >}} +{{< gallery-script >}} diff --git a/static/img/fullsize/2024-08-18/IMG_0710.JPG b/static/img/fullsize/2024-08-18/IMG_0710.JPG new file mode 100644 index 0000000..f1e358d --- /dev/null +++ b/static/img/fullsize/2024-08-18/IMG_0710.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5a24d7a3161e61ccb9a3c8739ecdbbeaf32b7530950f3c46c13cd1fb0a283c2 +size 827809 diff --git a/static/img/fullsize/2024-08-18/IMG_0711.JPG b/static/img/fullsize/2024-08-18/IMG_0711.JPG new file mode 100644 index 0000000..b796ae7 --- /dev/null +++ b/static/img/fullsize/2024-08-18/IMG_0711.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:372ae71c04645181c3eed09be8c2b9d3963f81b9536476cecc599f6f47dc81ff +size 1490372 diff --git a/static/img/fullsize/2024-08-18/IMG_0712.JPG b/static/img/fullsize/2024-08-18/IMG_0712.JPG new file mode 100644 index 0000000..abec2a0 --- /dev/null +++ b/static/img/fullsize/2024-08-18/IMG_0712.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe03711d9ecc570a3cc3f1c8a5d742cd609688be77323e3fbd622fa05b1ace85 +size 2254274 diff --git a/static/img/fullsize/2024-08-18/fusion.png b/static/img/fullsize/2024-08-18/fusion.png new file mode 100644 index 0000000..bcc1d98 --- /dev/null +++ b/static/img/fullsize/2024-08-18/fusion.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:941168d0b87213a1460825e42e608bef556b46bbdf47a35ef33b037ea0ca8f8d +size 691361 diff --git a/static/img/fullsize/2024-08-19/IMG_0713.JPG b/static/img/fullsize/2024-08-19/IMG_0713.JPG new file mode 100644 index 0000000..0787114 --- /dev/null +++ b/static/img/fullsize/2024-08-19/IMG_0713.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2870599c9765c9941f9691a96798a961df65371dac6245e94ccaf9521d5e88de +size 708580 diff --git a/static/img/fullsize/2024-08-19/IMG_0714.JPG b/static/img/fullsize/2024-08-19/IMG_0714.JPG new file mode 100644 index 0000000..4b80f1e --- /dev/null +++ b/static/img/fullsize/2024-08-19/IMG_0714.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6ad18fc612aa24533dc80bbc8dc1200f6ace4c1ba763fdd09ed5388870cee98 +size 651221 diff --git a/static/img/headline/mldbeast-nora.png b/static/img/headline/mldbeast-nora.png new file mode 100644 index 0000000..b382b50 --- /dev/null +++ b/static/img/headline/mldbeast-nora.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f887deb22f93fe574dc9e9941c6e1725a7c98f52d5501e25bd7ab45c1eedc66 +size 112995 diff --git a/static/img/thumbnails/2024-08-18/IMG_0710.JPG b/static/img/thumbnails/2024-08-18/IMG_0710.JPG new file mode 100644 index 0000000..a847329 --- /dev/null +++ b/static/img/thumbnails/2024-08-18/IMG_0710.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45e8a0a1ff5037b20d3bdb05dec230b02ff72a117e62496a82dd67f7c0ea90b3 +size 29403 diff --git a/static/img/thumbnails/2024-08-18/IMG_0711.JPG b/static/img/thumbnails/2024-08-18/IMG_0711.JPG new file mode 100644 index 0000000..ccf21cd --- /dev/null +++ b/static/img/thumbnails/2024-08-18/IMG_0711.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c675d12abbea51848038746bfec4c8493dd70b52e51b887ea0ddbadd28ff446 +size 44600 diff --git a/static/img/thumbnails/2024-08-18/IMG_0712.JPG b/static/img/thumbnails/2024-08-18/IMG_0712.JPG new file mode 100644 index 0000000..bc121e2 --- /dev/null +++ b/static/img/thumbnails/2024-08-18/IMG_0712.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8ce2ae941ccc3dda5848dfd1c44d736b17b2d3d2da751fd23ce842f35e4888a +size 44506 diff --git a/static/img/thumbnails/2024-08-18/fusion.png b/static/img/thumbnails/2024-08-18/fusion.png new file mode 100644 index 0000000..d9d6619 --- /dev/null +++ b/static/img/thumbnails/2024-08-18/fusion.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbaee946de1e26547fbd4e46a6d3367037de626e9918a0f0b14f0eb2308f7c0d +size 43349 diff --git a/static/img/thumbnails/2024-08-19/IMG_0713.JPG b/static/img/thumbnails/2024-08-19/IMG_0713.JPG new file mode 100644 index 0000000..4ed34b9 --- /dev/null +++ b/static/img/thumbnails/2024-08-19/IMG_0713.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17858d31db2499e8d1015848f9c17b02c13974f9dd42cfd10919922e4a609804 +size 39855 diff --git a/static/img/thumbnails/2024-08-19/IMG_0714.JPG b/static/img/thumbnails/2024-08-19/IMG_0714.JPG new file mode 100644 index 0000000..0618628 --- /dev/null +++ b/static/img/thumbnails/2024-08-19/IMG_0714.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:612bd5f58ef79db6271e62bc81c9446d0ccffc3acc7dbc11fe702e3421dbdd4f +size 36637