<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged diy</title>
<link>https://coderlegion.com/tag/diy</link>
<description>Powered by Question2Answer</description>
<item>
<title>Build a bird-feeder camera that sends photos to your phone (ESP32-CAM, one weekend)</title>
<link>https://coderlegion.com/33084/build-a-bird-feeder-camera-that-sends-photos-to-your-phone-esp32-cam-one-weekend</link>
<description>&lt;p&gt;&lt;em&gt;&quot;I want photos of birds at my feeder sent to my phone.&quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;A tiny camera board next to the feeder takes a photo when something moves and sends it to your phone. It's cheap and fun; the photos are decent, not wildlife-magazine sharp.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cost&lt;/strong&gt; $15–30 · &lt;strong&gt;Time&lt;/strong&gt; one weekend · &lt;strong&gt;Level&lt;/strong&gt; some experience helps · &lt;strong&gt;Power&lt;/strong&gt; USB (solar is harder)&lt;/p&gt;
&lt;h3 id=&quot;what-to-buy&quot;&gt;What to buy&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Part &lt;/th&gt;&lt;th&gt;Why this one &lt;/th&gt;&lt;th&gt;Rough cost&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;ESP32-CAM with its USB programming board (ESP32-CAM-MB) &lt;/td&gt;&lt;td&gt;Camera and WiFi on one small board. The add-on board makes uploading code easy. &lt;/td&gt;&lt;td&gt;$8–15&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;PIR motion sensor (e.g. AM312) &lt;/td&gt;&lt;td&gt;Detects warm, moving bodies. Small and low-power. &lt;/td&gt;&lt;td&gt;$1–3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;5V USB power supply, 2 A &lt;/td&gt;&lt;td&gt;The camera and WiFi together draw a lot; weak supplies cause random resets. &lt;/td&gt;&lt;td&gt;$5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Weatherproof box with a clear window &lt;/td&gt;&lt;td&gt;Keeps rain and condensation off the lens. &lt;/td&gt;&lt;td&gt;$5–10&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Prices are rough ranges, not quotes. Check the current price and stock before you order.&lt;/p&gt;
&lt;h3 id=&quot;what-to-install&quot;&gt;What to install&lt;/h3&gt;
&lt;p&gt;An Arduino sketch that wakes on motion, takes a photo and sends it through a Telegram bot (the UniversalTelegramBot library has ESP32-CAM examples). &lt;a rel=&quot;nofollow&quot; href=&quot;https://ntfy.sh&quot;&gt;ntfy&lt;/a&gt; can take photo attachments too.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;Runner-up:&lt;/strong&gt; a Raspberry Pi with its camera module. It costs more and uses more power, but takes much better photos and can spot motion in the image itself.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;build-it-in-three-steps&quot;&gt;Build it in three steps&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Take a photo on your desk.&lt;/strong&gt; Flash the camera web-server example that comes with the ESP32 Arduino package, and view the picture in a browser.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Send one to your phone.&lt;/strong&gt; Set up the bot, and send a photo when you wave at the motion sensor.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Move it outside.&lt;/strong&gt; Mount it 30–60 cm from the perch, facing away from the sun, and adjust from there.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;what-catches-people-out&quot;&gt;What catches people out&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Motion sensors miss small birds.&lt;/strong&gt; PIR sensors are made to spot people; a small bird a metre away may not trigger one. Mount the sensor close to the perch, or take a photo every few seconds and keep only the ones that changed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Focus.&lt;/strong&gt; The stock lens is usually focused further away. For close-ups it can be turned carefully to refocus (it's often held by a dab of glue), or move the camera back.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Random resets.&lt;/strong&gt; &quot;Brownout detector was triggered&quot; in the log means the power sagged. Use a good 5V supply and a short, thick cable.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Solar is a step up.&lt;/strong&gt; The camera draws a lot while it's awake. Get it working on USB before you try solar.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;This guide first appeared on &lt;a rel=&quot;nofollow&quot; href=&quot;https://iotmentor.dev/guides/bird-feeder-camera&quot;&gt;IotMentor&lt;/a&gt;, a free chat mentor for small electronics builds (I make it). If your setup is different (distance, power, budget, experience), you can ask it there and it will plan your version.&lt;/em&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/33084/build-a-bird-feeder-camera-that-sends-photos-to-your-phone-esp32-cam-one-weekend</guid>
<pubDate>Fri, 30 Oct 2026 11:14:48 +0000</pubDate>
</item>
<item>
<title>Built an AI Tool That Generates Wiring Diagrams and Code for Arduino Projects. Here's What I Learned.</title>
<link>https://coderlegion.com/18951/built-tool-that-generates-wiring-diagrams-and-code-for-arduino-projects-heres-what-learned</link>
<description>&lt;p&gt;I'm not an electrical engineer. But I kept wanting to build smart devices - a mosquito trap for the garden, a nightlight my kid controls with claps, a smart dog collar.&lt;/p&gt;
&lt;p&gt;Every time, I'd hit the same wall: which components are compatible? What pins do I connect? What libraries do I need?&lt;/p&gt;
&lt;p&gt;So I built &lt;a rel=&quot;nofollow&quot; href=&quot;https://make-it.ai&quot;&gt;Make-it&lt;/a&gt; - you describe a device in plain English and it generates:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A complete parts list with specs&lt;/li&gt;
&lt;li&gt;A wiring diagram with pin assignments  &lt;/li&gt;
&lt;li&gt;Working Arduino/ESP32/Raspberry Pi code&lt;/li&gt;
&lt;li&gt;A step-by-step build guide&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gawvz67fyuczbq4jo8pj.png&quot; alt=&quot;Image description&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;the-technical-challenge&quot;&gt;The technical challenge&lt;/h3&gt;
&lt;p&gt;The hard part isn't generating code - any LLM can do that. The hard part is making the output &lt;strong&gt;actually buildable&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;GPIO pin conflict detection across multiple sensors&lt;/li&gt;
&lt;li&gt;Component compatibility validation (will this sensor work with this board?)&lt;/li&gt;
&lt;li&gt;Correct library dependencies and imports&lt;/li&gt;
&lt;li&gt;Pin assignments that match the physical wiring&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A raw LLM will confidently tell you to connect a sensor to a pin that doesn't support analog input. The domain layer on top catches that.&lt;/p&gt;
&lt;h3 id=&quot;real-world-testing&quot;&gt;Real-world testing&lt;/h3&gt;
&lt;p&gt;I've been dogfooding by posting actual builds on Reddit:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An automated mosquito trap hit &lt;strong&gt;339K views&lt;/strong&gt; and #1 on r/homeautomation&lt;/li&gt;
&lt;li&gt;A clap-activated nightlight for kids got &lt;strong&gt;25K views&lt;/strong&gt; on r/arduino&lt;/li&gt;
&lt;li&gt;People are actually ordering parts and building these projects&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77qxnfh5aeum5fboaqyk.png&quot; alt=&quot;Image description&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;what-s-next&quot;&gt;What's next&lt;/h3&gt;
&lt;p&gt;I'm working on multi-board communication (Arduino + RPi over serial), better PCB-level layouts, and eventually simulation.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jyhbxai70fs004lkupoi.jpg&quot; alt=&quot;Image description&quot;&gt;&lt;/p&gt;
&lt;p&gt;Would love feedback from anyone who's tried using AI for hardware projects. What works? What breaks?&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://make-it.ai?utm_source=devto&amp;amp;utm_medium=organic&amp;amp;utm_campaign=first_post&quot;&gt;Try it here&lt;/a&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/18951/built-tool-that-generates-wiring-diagrams-and-code-for-arduino-projects-heres-what-learned</guid>
<pubDate>Tue, 26 May 2026 05:26:03 +0000</pubDate>
</item>
</channel>
</rss>