An interactive web application for exploring the I-V characteristics of an NMOS transistor. The application provides both 3D and 2D visualizations of the transistor's behavior.
- Interactive 3D surface plot showing the relationship between drain current (I_D), drain-source voltage (V_DS), and gate-source voltage (V_GS)
- 2D projection plots for fixed V_DS or V_GS values
- Real-time updates as you change parameters
- User-friendly interface with intuitive controls
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate- Install the required packages:
pip install -r requirements.txtTo start the application, run:
streamlit run app.pyThe application will open in your default web browser. If it doesn't, you can access it at http://localhost:8501
- Use the sidebar controls to select whether you want to fix V_DS or V_GS
- Enter the desired value for the fixed parameter
- The 2D plot will update automatically to show the corresponding I-V curve
- Interact with the 3D plot using your mouse to rotate, zoom, and pan
The application uses the ideal square-law model for NMOS transistors with the following parameters:
- Threshold voltage (Vth) = 1.0V
- Process transconductance parameter (k) = 100e-6 A/V²