Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Resistance Caluculator with GUI using MATLAB

2020, MATLAB Research Project

This paper relates to the information on creating a MATLAB application with resistor value calculation program. In this application, use Graphical User Interface (GUI) for ease to use. It notes the use of color code technique to manually calculate value of resistors. This color code calculator will help to determine the value of resistors marked with color bands and tolerance band. It can be used for 3 and 4 band resistors. We can input the color of bands in the GUI and then it calculates the value of resistor and its tolerance in ohms.

Examination Paper for Foreign Graduates Course: Matlab Programming 10-06-2020 Date: Title of the Report: Resistance Caluculator with MATLAB Name: Maliha Iqbal Student No.: LS1902201 School of Electronic and Information School: Category: Nationality: Specialty: Compulsory/Elective: Score: Engineering  Master Program □ Doctoral Program Pakistani Circuits & System Compulsory Project report for Matlab Programming 2019 Fall Semester BEIHANG UNIVERSITY Resistance Calculator with MATLAB Maliha Iqbal (LS1902201) School of Electronic and Information Engineering Beijing University of Aeronautics and Astronautics Beijing, China 01malihaiqbal@buaa.edu.cn Abstract—This paper relates to the information on creating a MATLAB application with resistor value calculation program. In this application, use Graphical User Interface (GUI) for ease to use. It notes the use of color code technique to manually calculate value of resistors. This color code calculator will help to determine the value of resistors marked with color bands and tolerance band. It can be used for 3 and 4 band resistors. We can input the color of bands in the GUI and then it calculates the value of resistor and its tolerance in ohms. Keywords—MATLAB 2018, Graphical User Interface Design Environment (GUIDE), Color Band. I. INTRODUCTION Table1. Resistance Color-Code chart with tolerance, temperature co-efficient and failure rate. The resistor is a passive electrical component to create resistance in the flow of electric current. A few examples for applications include delimit electric current, voltage division, and fix time constants. Practically all leaded resistors with a power rating up to one watt are marked with color bands. Together they specify the resistance value, the tolerance and sometimes the reliability. The resistance color code calculator will help to determine the value of resistors marked with color bands. It can be used for 4 band resistors. So we can enter the color of the corresponding bands in the table. Then, calculates the value of the resistor and display it on the output table. B. Resistance 4-Band Figure1. 4-Band Resistor 1. Brown Color - Significant value 2. Black Color - Significant value II. DESIGN AND IMPLEMENTATION 3. Red Color - Multiplying Factor A. Color Code The color code is given by several bands. Together they specify the resistance value, the tolerance. The number of bands varies from three to six. As a minimum, two bands indicate the resistance value and one band serves as multiplier. 4. Silver Color - Tolerance C. Graphical User Interface Design Environments (GUIDE) : GUIDE stores GUI’s in two files: .fig file - contains a complete description of the GUI figure. .m file - contains the code that controls the GUI 1. Coding File (.m file) .m file - contains the code in MATLAB 2018 that controls the GUI. In this file, we can program the callbacks in this file using the M-file editor. 1 Project report for Matlab Programming 2019 Fall Semester 3. Red color for multiplying factor 4. Gold color for tolerance By considering Table 1, resistor value determined as: Resistance Value = 1(Brown)0(Black)*100(Red) = 1000 with a 10% tolerance = 1K Ohm Figure 2. M file 2. Figure Window (.fig file) .fig file - contains a complete description of the GUI figure layout and the components of the GUI. In this file changes can be done using Layout Editor. Figure 4. Figure-window (Resistance value calculator) This resistor color code calculator will help to determine the value of resistors marked with color bands. It can be used for 4 band resistor. We can put the colors of the corresponding bands in the table. The output panel will display the value of the resistor in ohms, Kilo ohms and tolerance in ohms. Typical stages of creating a GUI are: i. Designing the GUI using select button, edit button, axis, panel, push button, pop-up menu, static text, channel box etc. IV. CONCLUSION This resistor color code calculator will help to determine the value of resistors marked with color bands. It can be used for 4 band resistor. We can put the color of the corresponding bands in the input panel. Finally, the output panel will display the value of the resistor. V. FUTURE SCOPE In future, this application will be use for the measurement of resistance value, tolerance and temperature co-efficient and failure rate for 6 band color code resistor. REFERENCES Figure 3. Fig file [1]. Rafael C. Gonzalez and Richard E. woods, “Digital Image Processing”, Pearson Education, Second Edition,2005. ii. Laying out the GUI - Using the Layout Editor. iii. Programming the GUI - Writing callbacks in the M-file editor iv. At last, saving and running the GUI. [2]. Vivek Panchabhaiya, EFY, Volume April 2014“Resistor value calculation standalone application with MATLAB. [3]. Y. Kirani Singh and B.B. Chaudhury, “MATLAB Programming” PHI Publication, First Edition, 2007. [4]. Delores M.Etter, Introduction to Matlab, Edition 2010. III. TESTING [5]. GUI of system identification Toolbox for MATLAB Hiroyunki Takanashi and Shui-chi Adachi, Akita Prefectural, University Keio University, Japan. A. Manual Calculation For figure window 4 band resistor: 1. Brown color for significant value [6]. Justyna Inglot, ‘Advanced image processing with MATLAB’, Bachelor’s Thesis Information Technology, May 2012, Date of the Bachelor Thesis 07.05.2010, Mikkeli University of Applied Science. 2. Black color for significant value 2 Project report for Matlab Programming 2019 Fall Semester [9]. Pawan J.Ramana, D.V., Chadha R. k 2012, A Matlab Based GUI application in Hydro seismicity of the Koyna – Warna Region, India. International Journal of Computer Applications Volume 52(10), 38-43. [7]. Jokinen. J and Kukkonen. I. T. 1999.a Random Chapman, Stephen J. 2002. Matlab Programming for Engineers (2nd Edition), Brooks/Cole. [8]. Witten, A. 2004. A Matlab based three dimensional viewers, Computers, Geosciences, 30, 693-703 3 Project report for Matlab Programming 2019 Fall Semester 4