Electronic Circuit Simulator¶
Welcome to the documentation for the Electronic Circuit Simulator, a simple SFML-based project that visualizes the behavior of basic electronic and physics concepts such as resistance, current, and power using real-time rendering.
โ๏ธ Setting Up the Project (Visual Studio + SFML)¶
Follow these steps to build and run the simulator on Windows:
- Install Visual Studio 2022 (with C++ Desktop Development tools).
- Download and install SFML 2.6+.
- In your Visual Studio project:
- Add SFML include and library paths (
IncludeandLibfolders). - Link the required SFML libraries:
sfml-graphics,sfml-window,sfml-system. - Copy the SFML
binDLLs to your projectโs executable directory. - Build and run the project.
For a visual setup guide, watch this tutorial:
๐ก What is SFML?¶
SFML (Simple and Fast Multimedia Library) is a C++ library for graphics, audio, and input handling.
It allows developers to easily create 2D visualizations, games, and interactive tools.
This project uses SFML to render electronic circuit diagrams and visualize the current and voltage distribution dynamically.

๐งฉ Project Idea and Code Overview¶
The project demonstrates how basic electrical circuits โ especially series-parallel resistor networks โ can be visualized dynamically using C++ and SFML.
Core Functionality¶
- The user enters resistor values and configuration (series and parallel).
- The program calculates:
- Equivalent resistance
- Total current and voltage
- Individual resistor current, voltage drop, and power
- Results are displayed in both text and graphical form.
Main Components¶
- main.cpp: Handles input/output, performs calculations, and launches visualization.
- resources.h / resources.cpp: Handle data storage, calculations, and all SFML rendering logic.
๐ง The visualization window shows resistor groups as nodes and connections, with interactive data overlays.
๐งช Demo Implementation¶
Hereโs a video of the running simulator:
๐ฅ Watch the Demo Video
This demo shows the real-time rendering of resistor nodes and circuit data as entered by the user.
๐ Running the Executable¶
- Download the ZIP file (same name as repository) from the projectโs main directory.
- Extract it into any folder.
- Run the exe file:
(Currently supports Windows only.)
No installation or configuration needed โ everything is self-contained.
๐ Concepts Learned & Future Scope¶
Concepts Learned¶
- Working with SFML graphics and event handling
- Structuring C++ OOP code for simulation logic
- Implementing real-time data visualization and physics-based computation
- Handling user input and file I/O efficiently
Future Scope¶
- ๐งฑ Improved and interactive UI
- ๐ง Cross-platform builds (Linux / macOS)
- โก Support for more complex circuits (capacitors, inductors, voltage sources)
- ๐งฎ Integration with a physics engine or symbolic solver
- ๐พ Option to save and load user-created circuit layouts
๐งญ Credits¶
Developed by Once-1296
Licensed under the MIT License
This documentation site is built with MkDocs Material, featuring dark/light mode, navigation sidebar, and full-text search.
