BEE_Project Work_Report

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

BASIC ELECTRICAL

ENGINEERING PROJECT
WORK
Presented By:
• Tamal Singha (K1- 25)

• Aritra Mukherjee (K1-26)

• Suparba Chowdhury (K1-27)

• Neelotpal Bhattacharjee (K1-28)

• Aditya Raj (K1-29)

• Prakhar Utkarsh (K1-32)

• Sopaan Sen (K1-33)

• Sayanti Dey (K1-35)

PROJECT GUIDE: Prof. Subhendu Banerjee Sir


(Email: subhendu.banerjee@iemcal.com)
Acknowledgement
We are overwhelmed in all humbleness and gratefulness to
acknowledge our depth to all those who have helped us to put
our ideas well above the level of simplicity and into
something concrete.

We would like to express our special thanks of gratitude to


Subhendu Bannerjee Sir , who gave us the golden opportunity to do
this wonderful project on finding equivalent resistance of a circuit
, which also helped us in doing a lot of research and we came
to know about so many new things. We would also like to
thank our college for providing us with the necessary
equipment and guidance required for this project. Every
member of our group is also thankful to the others for such
wonderful teamwork and coordination which led to the swift
completion of the project.

Any attempt at any level can‘t be satisfactorily completed


without the support and guidance of our parents and friends.
We would like to thank our parents who helped us with the
project work in times of need and also provided us emotional
and financial support. This project would not have been
possible without their support.
Aim Of The Project : To write a GUI based program in python to calculate
equivalent resistance in parallel and series circuit.

Project Code:
def calculate():
""" Calculate equivalent resistance """
value = "Parallel"
try:
r1 = float(enter1.get())
r2 = float(enter2.get())
r3 = float(enter3.get())
r4 = float(enter4.get())
if r1 + r2 > 0:
if value == "Parallel":
req = (r1 * r2 * r3 * r4) / ((r1 * r2 * r3) + (r1 * r2 * r4) + (r4 * r2
* r3) + (r1 * r4 * r3))
label5.config(text='Parallel resistance = ' + str(req))
else:
label5.config(text='division by zero error')
except ValueError:
label5.config(text='Enter numeric values for r1 and r2')

def setfocus2(dummy):
enter2.focus_set()

# create root window


root = Tk()
# create all the components
label1 = Label(root, text='Enter value of resistor1:', width=28)
enter1 = Entry(root, bg='yellow')
label2 = Label(root, text='Enter value of resistor2:')
enter2 = Entry(root, bg='yellow')
label3 = Label(root, text='Enter value of resistor1:', width=28)
enter3 = Entry(root, bg='yellow')
label4 = Label(root, text='Enter value of resistor2:')
enter4 = Entry(root, bg='yellow')
btn1 = Button(root, text='Calculate', command=calculate)
label5 = Label(root, text='', bg='green')
# pack the root window in that order
label1.pack(side=TOP, fill=X)
enter1.pack(side=TOP, fill=X)
label2.pack(side=TOP, fill=X)
enter2.pack(side=TOP, fill=X)
label3.pack(side=TOP, fill=X)
enter3.pack(side=TOP, fill=X)
label4.pack(side=TOP, fill=X)
enter4.pack(side=TOP, fill=X)
btn1.pack(side=TOP)
label5.pack(side=TOP, fill=X)
# cursor in enter1
enter1.focus()
# return key in enter1 sets focus to enter2
enter1.bind("<Return>", func=setfocus2)
# start event loop and program
root.mainloop()
Screenshots :

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy