GithubHelp home page GithubHelp logo

resistor-calculator's Introduction

ResistorCalculator

Automation for calculate resistors value

Information for people who don't have knowledge about resistors;

   - We begin to read colors on the resistor with the closest color to edge so that's it.

You have two option;

  • key to color; This option requires color values on the resistor to calculate numeric value of resistor. This app doesn't use tolerance value while calculating the Ohm.

How it works

for example if your value of resistor is 2.6 ohm; you need to enter your firstInteger and secondInteger like, they're single number without point between them (as 26), then you need to find your point place like; if we divide 26 to 0.1 it gives us 2.6 and, it means our pointPlace has value as 0.1.

point place is a multipler value;

multipler_values = {
    "black": 1, "brown": 10, "red": 100, "orange": 1000, "yellow": 10000,
    "green": 100000, "blue": 1000000, "gold": 0.1, "silver": 0.01
}

we need to multiple this value and color values;

main_color_values = {
    "black": 0, "brown": 1, "red": 2, "orange": 3, "yellow": 4, "green": 5,
    "blue": 6, "purple": 7, "gray": 8, "white": 9
}
  • color to key; takes color values from you and makes reverse process to get key value of the resistor

TODO FOR GETTING IT IS AS A DESKTOP APP

for linux;

1- Make it executable

chmod +x resCalc.py

2- Access your application folder from this command

sudo (your favorite text editor) /home/$USER/.local/share/applications/resCalc.desktop

3- paste this lines to your text editor

#!/usr/bin/env xdg-open

[Desktop Entry]
Type=Application
Terminal=True
Icon=/home/berkay/Masaüstü/SelfMade/res-logo.png
Name=Res Calc
Exec=/home/(username)/(repository's path)/resCalc.py

4- save and search it from your app menu

resistor-calculator's People

Contributors

ybgirgin3 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

akivishnu473

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.