<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dhananjay Kumar Seth]]></title><description><![CDATA[Dhananjay Kumar Seth]]></description><link>https://dhananjaykuseth.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 17:01:38 GMT</lastBuildDate><atom:link href="https://dhananjaykuseth.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I Built 4 Interactive Engineering Tools You Can Run in Your Browser]]></title><description><![CDATA[Live browser-based tools for DSP (FFT), PID control, digital logic, and communication systems — built in React with the math from scratch.]]></description><link>https://dhananjaykuseth.hashnode.dev/i-built-4-interactive-engineering-tools-you-can-run-in-your-browser</link><guid isPermaLink="true">https://dhananjaykuseth.hashnode.dev/i-built-4-interactive-engineering-tools-you-can-run-in-your-browser</guid><category><![CDATA[webdev]]></category><category><![CDATA[React]]></category><category><![CDATA[React]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Electronics]]></category><dc:creator><![CDATA[Dhananjay kumar Seth]]></dc:creator><pubDate>Tue, 14 Jul 2026 20:29:22 GMT</pubDate><content:encoded><![CDATA[<p>Most engineering concepts live in textbooks and MATLAB scripts — you read about a Fourier transform, a PID loop, or a constellation diagram, but you rarely get to <em>touch</em> one. I'm a game developer by day and an Electronics &amp; Communication Engineer by training, and I kept thinking: <strong>why can't these be things you just open in a browser and play with?</strong></p>
<p>So I built four of them. No installs, no accounts — click a link and start turning knobs. Each one is written from scratch in React + TypeScript with the actual math implemented by hand (no DSP or simulation libraries). Here's what I made and the interesting problem behind each.</p>
<hr />
<h2><strong>🌊 DSP Signal Lab — real-time FFT in the browser</strong></h2>
<p><strong>▶ Live demo:</strong> <a href="https://dsp-signal-lab.vercel.app/">https://dsp-signal-lab.vercel.app/</a> · <strong>Code:</strong> <a href="https://github.com/Dhananjay-ku-seth/dsp-signal-lab">https://github.com/Dhananjay-ku-seth/dsp-signal-lab</a></p>
<p>A signal generator (sine / square / sawtooth / triangle) feeding a live <strong>2048-point FFT</strong> spectrum analyzer, with injectable white noise and switchable digital filters (lowpass / highpass / bandpass / notch).</p>
<p>The fun part: the FFT is <em>real</em>, not a fake animation. It uses the Web Audio API's <code>AnalyserNode</code>, so when you pick a square wave you can watch the odd harmonics appear in the spectrum, then sweep a lowpass cutoff down and see them get attenuated in real time. Switch to <strong>microphone mode</strong> and whistle — the peak tracker finds your pitch.</p>
<h2><strong>🤖 PID Control Playground — tune a line-follower robot live</strong></h2>
<p><strong>▶ Live demo:</strong> <a href="https://pid-control-playground.vercel.app/">https://pid-control-playground.vercel.app/</a> · <strong>Code:</strong> <a href="https://github.com/Dhananjay-ku-seth/pid-control-playground">https://github.com/Dhananjay-ku-seth/pid-control-playground</a></p>
<p>A top-down robot follows a winding track using a real PID loop on its cross-track error. You drag the <strong>Kp / Ki / Kd</strong> sliders and watch the effect immediately.</p>
<p>Under the hood it's a <strong>double-integrator plant</strong> with sub-stepped Euler integration and integral anti-windup — so it behaves like a real control system. Set the derivative gain to zero and the robot oscillates around the line forever; add it back and the wobble damps out. There's a ⚡ disturbance button to kick it off course and watch the loop recover, plus a live error-vs-time strip chart.</p>
<h2><strong>🔌 Logic Circuit Simulator — drag, wire, and watch signals flow</strong></h2>
<p><strong>▶ Live demo:</strong> <a href="https://logic-circuit-sim.vercel.app/">https://logic-circuit-sim.vercel.app/</a> · <strong>Code:</strong> <a href="https://github.com/Dhananjay-ku-seth/logic-circuit-sim">https://github.com/Dhananjay-ku-seth/logic-circuit-sim</a></p>
<p>Place gates (AND / OR / NOT / NAND / NOR / XOR / XNOR), wire them port-to-port, toggle the inputs, and see the signals propagate live — with an auto-generated truth table.</p>
<p>The tricky bit was supporting <strong>sequential</strong> circuits, not just combinational ones. A naive left-to-right evaluator deadlocks on a feedback loop like an SR latch. I used an <strong>iterative relaxation solver</strong> (40 passes) that evaluates combinational logic instantly <em>and</em> converges feedback loops, so latches and flip-flops actually settle. Load the SR-latch example and toggle Set / Reset to see it work.</p>
<h2><strong>📡 Comms Simulator — modulation, constellations, and BER</strong></h2>
<p><strong>▶ Live demo:</strong> <a href="https://comms-simulator-pi.vercel.app/">https://comms-simulator-pi.vercel.app/</a> · <strong>Code:</strong> <a href="https://github.com/Dhananjay-ku-seth/comms-simulator">https://github.com/Dhananjay-ku-seth/comms-simulator</a></p>
<p>Three tabs covering a communication systems course:</p>
<ul>
<li><p><strong>Analog:</strong> AM/FM modulation in the time domain, with the AM envelope and over-modulation shown live.</p>
</li>
<li><p><strong>Constellation:</strong> BPSK / QPSK / 16-QAM ideal points plus the received cloud over an AWGN channel, with a live symbol-error rate.</p>
</li>
<li><p><strong>BER curve:</strong> a <strong>Monte-Carlo</strong> bit-error-rate simulation (60,000 bits per SNR point) plotted against the theoretical Q-function on a semilog axis.</p>
</li>
</ul>
<p>Everything uses unit-energy symbols, Gray-coded PAM-4 mapping, Box–Muller AWGN, and <code>Q(x) = ½·erfc(x/√2)</code>. The satisfying moment is watching the simulated BER curve hug the theoretical one — and seeing it floor out at ~10⁻⁵ because 60k bits can't resolve errors any rarer than that.</p>
<hr />
<h2><strong>How they're built</strong></h2>
<ul>
<li><p><strong>Stack:</strong> React + TypeScript + Vite, deployed on Vercel.</p>
</li>
<li><p><strong>No black boxes:</strong> every FFT, filter, control loop, logic solver, and modulation/demodulation routine is hand-written. The goal was to <em>understand</em> the math, not import it.</p>
</li>
<li><p><strong>Rendering:</strong> plain <code>&lt;canvas&gt;</code> and SVG — no charting libraries.</p>
</li>
<li><p><strong>Design:</strong> a shared dark "lab" aesthetic so they feel like one toolkit.</p>
</li>
</ul>
<h2><strong>Why bother?</strong></h2>
<p>Because interactive beats static every time. You can <em>read</em> that a PID controller overshoots without derivative gain — or you can drag a slider and watch it happen. I wanted tools a student (or a curious recruiter) could open and immediately get an intuition from.</p>
<p>If you find these useful or spot something to improve, I'd love to hear it — the repos are open.</p>
<p><strong>More of my work:</strong> <a href="https://dhananjay-kumar-seth.vercel.app/">https://dhananjay-kumar-seth.vercel.app/</a> <strong>GitHub:</strong> <a href="https://github.com/Dhananjay-ku-seth">https://github.com/Dhananjay-ku-seth</a> · <strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/dhananjay-kumar-seth-4a5b31283/">https://www.linkedin.com/in/dhananjay-kumar-seth-4a5b31283/</a></p>
<p><em>Thanks for reading — go break one of the demos. 🔧</em><br />*#*webdev #react #javascript #electronics</p>
]]></content:encoded></item></channel></rss>