<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shaunak Sayta</title>
    <description>The latest articles on DEV Community by Shaunak Sayta (@shaunak_sayta_d92f8b9ca86).</description>
    <link>https://dev.to/shaunak_sayta_d92f8b9ca86</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3880455%2F086fdab3-b05a-4f5a-b2a1-0faadd6b5b9e.jpg</url>
      <title>DEV Community: Shaunak Sayta</title>
      <link>https://dev.to/shaunak_sayta_d92f8b9ca86</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shaunak_sayta_d92f8b9ca86"/>
    <language>en</language>
    <item>
      <title>How I built a solar-powered RS-485 soil sensor node for orchard management (open hardware)</title>
      <dc:creator>Shaunak Sayta</dc:creator>
      <pubDate>Wed, 15 Apr 2026 12:09:54 +0000</pubDate>
      <link>https://dev.to/shaunak_sayta_d92f8b9ca86/how-i-built-a-solar-powered-rs-485-soil-sensor-node-for-orchard-management-open-hardware-ffh</link>
      <guid>https://dev.to/shaunak_sayta_d92f8b9ca86/how-i-built-a-solar-powered-rs-485-soil-sensor-node-for-orchard-management-open-hardware-ffh</guid>
      <description>&lt;p&gt;I've been building a per-tree precision agriculture platform for a 2,100-tree &lt;br&gt;
Alphonso mango orchard in Gujarat, India. After a year of hand-wired prototypes, &lt;br&gt;
I commissioned a proper carrier board. The hardware is now fully open — Gerbers, &lt;br&gt;
BOM with LCSC part numbers, and PickAndPlace for JLCPCB assembly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the board does
&lt;/h2&gt;

&lt;p&gt;Each node wakes hourly, reads one or more RS-485 Modbus soil sensors (EC, pH, &lt;br&gt;
moisture, temperature, NPK), posts the data to a Cloudflare Workers API, then &lt;br&gt;
goes back to deep sleep. The whole thing runs on a 20W solar panel and a 12.8V &lt;br&gt;
LiFePO4 battery — enough for 15-20 days of monsoon reserve with no sun.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hardware stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MCU&lt;/strong&gt;: Waveshare ESP32-S3-Nano (socketed, not soldered to board)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RS-485&lt;/strong&gt;: MAX485ESA+ with SM712 TVS surge protection&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Power&lt;/strong&gt;: LM2596S 12V→5V buck, dual AO3400A MOSFETs for sensor and USB power switching&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Battery monitoring&lt;/strong&gt;: INA219AIDR over I2C&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connectivity&lt;/strong&gt;: USB-A port (power only) for a 4G LTE dongle that creates a WiFi hotspot — one SIM serves the whole orchard&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The MOSFET power switching is the critical piece for battery life. Sensors draw &lt;br&gt;
40-80mA at 12V continuously. The 4G dongle draws 200-400mA when active. Both are &lt;br&gt;
switched off during deep sleep. Only the LM2596S quiescent draw (~5-10mA) remains &lt;br&gt;
between wake cycles.&lt;/p&gt;

&lt;h2&gt;
  
  
  The software stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Firmware&lt;/strong&gt;: ESP32 Arduino, Modbus RTU, deep sleep, OTA updates via Cloudflare R2 presigned URLs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: Cloudflare Workers + D1 + KV + R2&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI layer&lt;/strong&gt;: Claude dual-model stack (Haiku for fast auditing, Sonnet for deep agronomic analysis)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Firmware flashing&lt;/strong&gt;: Browser-based via Web Serial API — no IDE, no drivers&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why RS-485 and not I2C or WiFi sensors
&lt;/h2&gt;

&lt;p&gt;Cable runs in an orchard are 10-50 metres to the root zone. I2C degrades badly &lt;br&gt;
beyond a few metres. WiFi sensors need their own power management and are &lt;br&gt;
significantly more expensive. RS-485 handles 100m runs reliably at 4800 baud with &lt;br&gt;
a simple twisted pair. Three terminal blocks wired in parallel means up to three &lt;br&gt;
sensors per node sharing one bus.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case study that proved the concept
&lt;/h2&gt;

&lt;p&gt;One tree — we call it Pradyumna — was near-dead when monitoring began 300+ days &lt;br&gt;
ago. Root zone EC was consistently high with no nocturnal drawdown (the signature &lt;br&gt;
of a tree that isn't absorbing anything). The system guided a recovery protocol: &lt;br&gt;
soil leaching, biological drench sequencing, fertigation timing aligned to the &lt;br&gt;
first confirmed uptake windows. The tree is now in active flush with documented &lt;br&gt;
fruit set.&lt;/p&gt;

&lt;p&gt;That 300-day longitudinal dataset — every soil reading, every intervention, every &lt;br&gt;
observed response — is what the intelligence layer is built on. The hardware is &lt;br&gt;
commodity. The data is the moat.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open hardware, proprietary intelligence
&lt;/h2&gt;

&lt;p&gt;The Gerbers, BOM, and PickAndPlace are published at &lt;br&gt;
&lt;a href="https://sankhyafarms.com/open-hardware.html" rel="noopener noreferrer"&gt;sankhyafarms.com/open-hardware.html&lt;/a&gt;. &lt;br&gt;
Anyone can order these boards from JLCPCB for under $10 for 5 pieces. &lt;/p&gt;

&lt;p&gt;The intelligence layer — uptake index model, agronomic AI prescriptions, &lt;br&gt;
longitudinal per-tree analysis — runs entirely server-side and is not open. The &lt;br&gt;
hardware being open removes the adoption barrier without giving anything meaningful &lt;br&gt;
away. Our moat is 300+ days of per-tree soil data that nobody else has.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Deploying 5 nodes across 5 irrigation zones. Adding solenoid valve control and &lt;br&gt;
pump monitoring (amp draw via Tuya smart switch telemetry as irrigation ground &lt;br&gt;
truth). Eventually: per-vine deployment in wine grape vineyards, which is where &lt;br&gt;
this architecture scales most interestingly.&lt;/p&gt;

&lt;p&gt;Hardware page with interactive component map: &lt;a href="https://sankhyafarms.com/open-hardware.html" rel="noopener noreferrer"&gt;sankhyafarms.com/open-hardware.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions on the PCB design, the Modbus register maps, or the &lt;br&gt;
Cloudflare Workers architecture.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>esp32</category>
      <category>iot</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
