Giter Club home page Giter Club logo

ece_py's Introduction

ElecPy

ElecPy is a Python project created by Parshwanath V Jain (PVJ) on September 8, 2023. It aims to combine the fields of electronics and computer science on a surface level, making it easier to perform basic electronic calculations and experiments. The project provides a command-line interface for various electronic calculations and simulations.

Features

ElecPy offers the following features:

  1. Ohm's Law Calculator: Calculate voltage, current, or resistance using Ohm's Law.
  2. Drain Current Calculator: Compute drain current in a MOSFET based on input parameters.
  3. Common Source (CS) Amplifier Gain Calculator: Calculate midband gain for a CS amplifier.
  4. CS Amplifier Frequency Response Plotter: Generate frequency response plots for a CS amplifier.
  5. Common Emitter (CE) Amplifier Gain Calculator: Calculate midband gain for a CE amplifier.
  6. CE Amplifier Frequency Response Plotter: Generate frequency response plots for a CE amplifier.
  7. Signal Sampling: Plot the sampled version of various signals.
  8. Fast Fourier Transform (FFT) Calculator: Calculate and visualize the FFT of a given sequence.

Getting Started

To use ElecPy, follow these steps:

Prerequisites

  • Python 3.x installed on your system.
  • Required Python packages installed. You can install them using pip install -r requirements.txt.

Installation

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.

Usage

You can use ElecPy by running it from the command line with various arguments. Here are some examples:

Ohm's Law Calculator

python elecpy.py --ohm "10_V" "5_A"

Drain Current Calculator

python elecpy.py --dracurr 3.5 2.0

CS Amplifier Gain Calculator

python elecpy.py --csamp 10.0 20.0 0.01 50.0 100.0 1.0

CS Amplifier Frequency Response Plotter

python elecpy.py --csamp_g 1.0 20.0 1000.0

CE Amplifier Gain Calculator

python elecpy.py --ceamp 5.0 50.0 100.0 200.0 0.02 2.0 3.0 1000.0

CE Amplifier Frequency Response Plotter

python elecpy.py --ceamp_g 1.0 30.0 2000.0

Signal Sampling

python elecpy.py --sample 0

Always zero for execution you can choose different signals in the second menu. You can input the name of signal as mentioned in the menu for the type of signal and then you can enter specifications for each signal.

Fast Fourier Transform (FFT) Calculator

python elecpy.py --fft 1000.0 50.0

Choose the desired operation by passing the appropriate command-line arguments.

Contributing

ElecPy is open-source, and contributions from the community are welcome. If you have suggestions, bug reports, or want to contribute new features, please feel free to fork the repository and create a pull request.

License

This project is licensed under the MIT License. You can find the full license details in the LICENSE.md file.

Thank you for using ElecPy! I hope it helps you with your electronic calculations and experiments.

ece_py's People

Contributors

pvj023 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.