• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Online Resistor Calculator Cloud App Free Software

By Abhishek Ghosh July 20, 2015 8:02 pm Updated on July 20, 2015

Online Resistor Calculator Cloud App Free Software

Advertisement

Here is an Online Resistor Calculator Cloud App Free Software to Calculate Resistance of the 4 Band Color Coded Registers. It Can Run on OpenStack Based CDN, OpenShift PaaS, Anywhere and on localhost. We found the Javascript on a website with no proper licensing.

This app is required to calculate the resistance of the registers used in electronics work without a multimeter. It is tough work to calculate using the reference table :

Color Digit value Multiplier Multiplied Out Tolerance
Black 0 100 1
Brown 1 101 10
Red 2 102 100
Orange 3 103 1,000
Yellow 4 104 10000
Green 5 105 100,000
Blue 6 106 1,000,000
Violet 7 107 10,000,000
Gray 8 108 100,000,000
White 9 109 1,000,000,000
Gold ±5%
Silver ±10%

We only released it for educational purpose. You can download and use it with GNU GPL 3.0 License.

 

Advertisement

---

Online Resistor Calculator Cloud App Free Software

 

You can see the demo of Online Resistor Calculator running on HP Cloud CDN. Obviously we have a GitHub Repo of this web application. Usage is very easy :

Online Resistor Calculator Cloud App Free Software

 

Explaining the Online Resistor Calculator Cloud App

 

The main Javascript is this :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<script language="JavaScript">
function calcResistance(input) {
    msv = document.colorSelect.band1.value;
    lsv = document.colorSelect.band2.value;
    mult = document.colorSelect.band3.value;
    tol = document.colorSelect.band4.value;
    var bgColors = new Array("black", "#583030", "red", "orange", "yellow", "green", "blue", "purple", "gray", "white", "gold", "silver");
    var fgColors = new Array("white", "white", "white", "black", "black", "white", "white", "white", "black", "black", "black", "black");
    resistText = msv + lsv;
    for (var i=0; i<mult; i++) {
        resistText += "0";
    }
    resistText = addCommas(resistText); // Insert commas
    resistText += " \u2126 \u00B1"; // Add ohm, space, plus/minus sign
    if (tol == "10")
        resistText += "5%";
    else if (tol == "11")
        resistText += "10%";
    
    document.colorSelect.band1.style.background = bgColors[parseInt(msv)];
    document.colorSelect.band1.style.color = fgColors[parseInt(msv)];
    document.colorSelect.band2.style.background = bgColors[parseInt(lsv)];
    document.colorSelect.band2.style.color = fgColors[parseInt(lsv)];
    document.colorSelect.band3.style.background = bgColors[parseInt(mult)];
    document.colorSelect.band3.style.color = fgColors[parseInt(mult)];
    document.colorSelect.band4.style.background = bgColors[parseInt(tol)];
    document.colorSelect.band4.style.color = fgColors[parseInt(tol)];
    document.getElementById("resistorValue").innerHTML=resistText;
}
 
function addCommas(x) {
    return x.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
</script>

This must be rendered with this HTML code :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<table>
<tr align="center"><td>Band 1</td><td>Band 2</td><td>Band 3</td><td></td><td>Band 4</td></tr>
<tr align="center"><td>Value 1 (MSV)</td><td>Value 2</td><td>Weight</td><td></td><td>Tolerance</td></tr>
<tr>
<form name="colorSelect" method="" action="">
<td><select name="band1" value="1" onChange="calcResistance(this)" style="width: 150px; color: white; background: #583030;">
<option value="0" style="color: white; background: black;">Black (0)</option>
<option value="1" style="color: white; background: #583030;" selected>Brown (1)</option>
<option value="2" style="color: white; background: red;">Red (2)</option>
<option value="3" style="color: black; background: orange;">Orange (3)</option>
<option value="4" style="color: black; background: yellow;">Yellow (4)</option>
<option value="5" style="color: white; background: green;">Green (5)</option>
<option value="6" style="color: white; background: blue;">Blue (6)</option>
<option value="7" style="color: white; background: purple;">Violet (7)</option>
<option value="8" style="color: white; background: gray;">Gray (8)</option>
<option value="9" style="color: black; background: white;">White (9)</option>
</select></td>
<td><select name="band2" value="0" onChange="calcResistance(this)" style="width: 150px; color: white; background: black;">
<option value="0" style="color: white; background: black;" selected>Black (0)</option>
<option value="1" style="color: white; background: #583030;">Brown (1)</option>
<option value="2" style="color: white; background: red;">Red (2)</option>
<option value="3" style="color: black; background: orange;">Orange (3)</option>
<option value="4" style="color: black; background: yellow;">Yellow (4)</option>
<option value="5" style="color: white; background: green;">Green (5)</option>
<option value="6" style="color: white; background: blue;">Blue (6)</option>
<option value="7" style="color: white; background: purple;">Violet (7)</option>
<option value="8" style="color: white; background: gray;">Gray (8)</option>
<option value="9" style="color: black; background: white;">White (9)</option>
</select></td>
<td><select name="band3" value="2" onChange="calcResistance(this)" style="width: 150px; color: white; background: red;">
<option value="0" style="color: white; background: black;" selected>Black (1)</option>
<option value="1" style="color: white; background: #583030;">Brown (10)</option>
<option value="2" style="color: white; background: red;" selected>Red (100)</option>
<option value="3" style="color: black; background: orange;">Orange (1k)</option>
<option value="4" style="color: black; background: yellow;">Yellow (10k)</option>
<option value="5" style="color: white; background: green;">Green (100k)</option>
<option value="6" style="color: white; background: blue;">Blue (1M)</option>
<option value="7" style="color: white; background: purple;">Violet (10M)</option>
<option value="8" style="color: white; background: gray;">Gray (100M)</option>
<option value="9" style="color: black; background: white;">White (1G)</option>
</select></td>
<td>&nbsp;&nbsp;&nbsp;</td>
<td><select name="band4" value="0" onChange="calcResistance(this)" style="width: 150px; color: black; background: gold; size:5;">
<option value="10" style="color: black; background: gold;">Gold (&plusmn; 5%)</option>
<option value="11" style="color: black; background: silver;">Silver (&plusmn; 10%)</option>
</select></td></tr>
<tr><font size="24"><center><td colspan="2" align="right"><h4>Resistance:&nbsp;&nbsp;</h4></td><td colspan="3" align="left"><h4><text id="resistorValue">1,000 &ohm; &plusmn;5%</text></h4></td></center></font></tr>
</form>
</table>

You can play here on CodePen.

Tagged With sofer resitor onlen

This Article Has Been Shared 295 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Online Resistor Calculator Cloud App Free Software

  • Setup own URL Shortening Service for Websites on Rackspace Cloud

    Setup own URL Shortening Service for Websites on Rackspace Cloud within fraction of a minute using Free Google Apps Labs Short Links service.

  • Cloud Computing Disaster Recovery For WordPress After Hacking

    Cloud Computing Disaster Recovery Cheat Sheet for WordPress presents the clever ways to make the hacker fool and get your website back within few minutes.

  • PubSubHubbub and Rackspace Cloud Queue

    PubSubHubbub is a networking protocol. Rackspace is Open Source but infamous for difficult to understand API documentation by normal human.

  • How to Upload Backup to Dropbox from Cloud Server

    Here is How to Upload Backup to Dropbox from Cloud Server in Case You Want To Keep Your Backup of Files and Database on a Free Cloud Storage.

  • Install Nginx PHP5-FPM on HP Cloud

    Here is How To Install Nginx PHP5-FPM on HP Cloud. HP Cloud means HP Helion Public Cloud. It is basically very easy to work with HP Cloud. People fear HP Helion Public Cloud very much. The basic reason possibly is not understanding the basics of Security Group Rules. So, you need to read our previous […]

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Safe Chargers for Samsung Galaxy S22 Ultra June 27, 2022
  • How Telecoms Can Use The Cloud To Power Their 5G Network June 24, 2022
  • A Beginner Guide to Cloud Computing for Development June 22, 2022
  • 5 Benefits of Using a Virtual Data Room Today June 19, 2022
  • Top System Administration Courses 2022 June 18, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Online Resistor Calculator Cloud App Free Software," in The Customize Windows, July 20, 2015, June 29, 2022, https://thecustomizewindows.com/2015/07/online-resistor-calculator-cloud-app-free-software/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy