• 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 :

ColorDigit valueMultiplierMultiplied OutTolerance
Black01001
Brown110110
Red2102100
Orange31031,000
Yellow410410000
Green5105100,000
Blue61061,000,000
Violet710710,000,000
Gray8108100,000,000
White91091,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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Arduino and LED Bar Display : Circuit Diagram, Code

    Here is a Guide Explaining the Basics, Circuit Diagram, Code on Arduino and LED Bar Display. LED Bar Display is Actually Like Multiple LED.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Talking Calculator in right click context menu without any software

    Talking Calculator in right click context menu without any software for your Windows 7 or any version of Windows PC.

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 (24.3K 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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

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

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