Download presentation
Presentation is loading. Please wait.
Published byEdgar Hunter Modified over 9 years ago
2
NAME OF THE PROJECT: RESISTOR CALCULATOR
3
CONTENTS: PURPOSE OF THE PROJECT HOW RESISTOR CALCULATOR WORKS ? EXPLANATION OF THE CODES THAT I USED CONCLUSION REFERENCES
4
Why did i decide to make this program ??? Because as an engineer; our purpose is making the things simpler by applying our knowledge to the real life events with respect to the combination of the economy and tecnique
5
To calculate the value of resistor, we need to know code of each 12 different colour:
6
As you see from last slide; in order to calculate value of the resistor we need to keep in our mind totaly: 28 different value, 12 different colour
7
YES, we can use multimeter, but it is impossible to have multimeter with us all the time. Also if we don’t have high-quality multimeter, we may have uncorrect results because of internal resistance of multimeters. Some of us may think we can measure value of resistor by using multimeter.
8
Instead of keeping in mind or carrying multimeter; why don’t we use C# program which is built for this purpose??? So, this is why i made this program. Thanks to my program, we are able to calculate value of resistor just less than a munite. Now, let’s see how this program works?
9
Interface of the Program: In this program i used; TabControl MenuStrip 14 PictureBox 9 ComboBox 5 GroupBox 3 RadioButton 10 Button 13 TextBox 30 Label
10
To see the result we must click the Calculate button Steps to follow:
11
Tab Control: The TabControl manages tab pages where each page may host different child controls I used 2 tabControl,one for 4-Band Resistors another one for 5-Band Resistors
12
I used switch-case structure in the ComboBoxs For Colour 1TextBox2 For colour 2 TextBox3 For Multiplier TextBox4
13
Whenever we click to Calculate button, program does; For Colour 1TextBox2 For Colour 2 TextBox3 For Multiplier TextBox4
14
If we press to the >> button; We will see converting options. I collect all members in ‘converting menu’ groupbox. By clicking ‘Convert to…’ button we can see the results in m,K or M ohm range
15
Ideas are same for both 4-Band and 5-Band Resistor tabs
16
It is more easy to calculate the value of resistor by dragging colours from colours section of the program into the resistor picture
17
To use dragging property, first i defined MouseDown events for all colours
18
Then, i defined DragDrop Events for all labels which i used on Resistor PictureBox label25 pictureBox13
19
By clicking «calculate by dragging» button, forms is expanding
20
As you see, calculating the value of resistor is much more easy by this program
21
REFERENCES:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.