{"id":5933,"date":"2025-12-02T08:19:32","date_gmt":"2025-12-02T08:19:32","guid":{"rendered":"https:\/\/antonyhall.net\/blog\/?p=5933"},"modified":"2025-12-02T08:34:07","modified_gmt":"2025-12-02T08:34:07","slug":"pond-computer-simulation","status":"publish","type":"post","link":"https:\/\/antonyhall.net\/blog\/pond-computer-simulation\/","title":{"rendered":"Pond computer simulation"},"content":{"rendered":"<p><strong><span data-preserver-spaces=\"true\"><br \/>\n<\/span><\/strong><span data-preserver-spaces=\"true\">I have found it helpful to think through my pond computer research using AI assited codeing. <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">In this patch, I created a simulated pond computer. An 8\u00d78 hypothetical sensor grid is imposed over a 2D simulation of daphnia-like particles swimming around. The daphnia are attracted to light. The 8\u00d78 grid represents LDRs and LEDs (though it could use camera tracking in the long run). Each cell adjusts its LED brightness to keep local daphnia density near a target level (trying to simulate a Stafford Beer-style homeostasis). This work in progress is far from perfect, but it has been helpful in my thinking process so far.<\/span><\/p>\n<p><iframe loading=\"lazy\" class=\"embed\" src=\"https:\/\/editor.p5js.org\/tonythevortex\/full\/Rg0DUNpJB\" width=\"700\" height=\"800\" allowfullscreen=\"allowfullscreen\"><br \/>\n<\/iframe><br \/>\n<strong style=\"font-size: revert;\">INSTRUCTIONS:<br \/>\n<\/strong>First click on the patch and try the vairous keys to change settings. You can view the system in different layers (particles only, LEDs only, sensor grid, or all combined), overlay numeric information per cell, and at any moment press <strong data-start=\"416\" data-end=\"421\">R<\/strong> to take a \u201cpond reading\u201d that converts the current 8\u00d78 LED state into a 64-bit pattern<\/p>\n<p>Use the slider to adjust ammount of daphnia.<\/p>\n<p>\/\/ Keys:<br \/>\n\/\/ 1 = full view (cells + LEDs + particles)<br \/>\n\/\/ 2 = particles only<br \/>\n\/\/ 3 = LED brightness only<br \/>\n\/\/ 4 = sensor squares only (grey\/black, no LEDs, no particles)<br \/>\n\/\/ N = toggle numeric overlay (bit + 0\u20135 density)<br \/>\n\/\/ L = toggle computation logic overlay (per-cell + global HUD)<br \/>\n\/\/ S = start \/ enable sound (&#8220;Daphnia Choir&#8221;)<br \/>\n\/\/ R = read latest barcode (bits + numeric value)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have found it helpful to think through my pond computer research using AI assited codeing. In this patch, I created a simulated pond computer. An 8\u00d78 hypothetical sensor grid is imposed over a 2D simulation of daphnia-like particles swimming around. The daphnia are attracted to light. The 8\u00d78 grid represents LDRs and LEDs (though&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5935,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[328,279],"tags":[337,341,302],"_links":{"self":[{"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/posts\/5933"}],"collection":[{"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/comments?post=5933"}],"version-history":[{"count":4,"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/posts\/5933\/revisions"}],"predecessor-version":[{"id":5941,"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/posts\/5933\/revisions\/5941"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/media\/5935"}],"wp:attachment":[{"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/media?parent=5933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/categories?post=5933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonyhall.net\/blog\/wp-json\/wp\/v2\/tags?post=5933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}