Skip to content
dgentechnologiesPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CircuitCalc

Fast, accurate, zero-fluff calculators built for embedded & electronics engineers.

CircuitCalc is a free, high-precision, client-side electronics calculation suite. Built with Next.js 14 (App Router), TypeScript, and Tailwind CSS using an oscilloscope-dark lab instrument design language.


🛠️ The 13 Engineering Calculators

Passives & Codes

  1. Resistor Color Code Calculator (/resistor-color-code) — 4, 5, and 6-band resistor color decoding, reverse value-to-bands calculation, and SVG physical resistor preview.
  2. SMD Resistor Code Calculator (/smd-resistor-code-calculator) — Decode 3-digit (5%), 4-digit (1%), and EIA-96 precision codes with realistic SMD chip graphic.
  3. Capacitor Code Calculator (EIA 3-Digit) (/capacitor-code-calculator) — Decode 3-digit ceramic disc & film capacitor markings, tolerance letter codes (J, K, M), and voltage ratings.
  4. Inductor Color Code & SMD Calculator (/inductor-color-code-calculator) — 4/5-band axial RF molded chokes and 3-digit SMD inductor codes in microhenries ($\mu\text{H}$).
  5. Series & Parallel Calculator (/parallel-series-resistance-calculator) — Dynamic component manager calculating equivalent series and parallel resistance and capacitance.

Power & Timing

  1. Ohm's Law & Power Solver (/ohms-law-calculator) — Reactive 4-quadrant circuit matrix solving for any two known values of Voltage, Current, Resistance, or Power with full formula reference wheel.
  2. Voltage Divider Calculator (/voltage-divider-calculator) — Unloaded and loaded divider solver with Thévenin resistance analysis, standard E24 resistor recommendations, and schematic representation.
  3. RC Filter & Time Constant Calculator (/rc-filter-calculator) — Time constant ($\tau$), step response settling time ($5\tau$), $-3\text{dB}$ cutoff frequency ($f_c$), and AC attenuation.
  4. 555 Timer Calculator (/555-timer-calculator) — Astable free-running oscillator frequency/duty cycle and Monostable one-shot pulse width calculator.
  5. Battery Life Estimator (/battery-life-calculator) — Continuous and IoT duty-cycle runtime estimation with chemistry-specific derating (Li-ion, LiFePO4, Alkaline, Coin Cell).

PCB & Hardware Layout

  1. PCB Trace Width Calculator (/pcb-trace-width-calculator) — IPC-2221 standard solver for internal/external copper layers, thermal rise ($\Delta T$), copper thickness (0.5 oz to 3.0 oz), trace resistance, and voltage drop.
  2. Wire Gauge (AWG) Ampacity Calculator (/wire-gauge-ampacity-calculator) — Full AWG table (0000 to 40 AWG) with chassis vs power transmission ampacity limits, copper resistance, and round-trip voltage drop.
  3. LED Series Resistor Calculator (/led-resistor-calculator) — Calculates exact current-limiting resistors, standard E12/E24 commercial values, resistor power dissipation, and recommended wattage ratings.

⚡ Core Architecture

  • 100% Client-Side Computation: Zero backend/database required. All calculations run with instant reactivity as you type. Completely free-tier Vercel compatible.
  • Oscilloscope Instrument Design: Styled to feel like lab test equipment (#0D1210 CRT-dark background, #4ADE80 phosphor-green signal readouts, schematic graph-paper grid, multimeter-style inputs).
  • Continuous Calculation Chains: Calculators pass values forward via URL search parameters (e.g. LED calculator → Resistor color code → Ohm's law).
  • AdSense Compliance: Includes native-bordered <AdSlot> panels with fixed dimensions to prevent Cumulative Layout Shift (CLS), along with detailed 300–500 word engineering explainers and reference tables.
  • Statutory Pages: /about, /privacy-policy, /terms-of-service, /contact, /sitemap.xml, and /robots.txt.

🚀 Getting Started

1. Install Dependencies

npm install

2. Run the Local Development Server

npm run dev

Open http://localhost:3000 in your browser.

3. Build for Production

npm run build
npm run start

🌐 Deploying to Vercel

  1. Push this repository to GitHub (git add . && git commit -m "..." && git push).
  2. Import the repository into your Vercel account.
  3. (Optional) Set the environment variable NEXT_PUBLIC_ADSENSE_CLIENT_ID (e.g. ca-pub-XXXXXXXXXXXXXXXX) once approved for Google AdSense.
  4. Deploy!

📄 License & Attribution

Created by Tirthankar Dasgupta (Dgen Technologies).

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages