Lab2
.docx
keyboard_arrow_up
School
San Jose State University *
*We aren’t endorsed by this school
Course
104
Subject
Electrical Engineering
Date
Dec 6, 2023
Type
docx
Pages
29
Uploaded by CountWolfMaster424
San Jose State University
Department of Electrical Engineering
EE104, Fall 2022, Pham
Laboratory Assignment #2
Objectives
This lab introduces you the art of integration a few tools that you are already familiar to provide a business solution that you can use in
the real life application.
In this lab, we will implement a COVID-19 registration GUI using a new method, a simple database application using Excel, an email method to send a reminder emails for the 2
nd
vaccination shot, and a text method to send a reminder text message to a given phone number for the 2
nd
vaccination shot.
Grading
Refer to the section Python Programming
for grading criteria.
Bibliography
I would like to acknowledge the Python open-source community and respective suppliers for making the material available. Jose Estrada Ramirez from EE104 Spring 2021 contributed some parts to this lab.
References:
https://www.simplifiedpython.net/python-gui-login/
https://stackoverflow.com/questions/46268167/how-to-search-for-data-in-an-xlsx-file-using-python-3
https://pythonguides.com/python-tkinter-label/
https://stackoverflow.com/questions/42491486/setting-an-image-as-a-tkinter-window-background
https://www.geeksforgeeks.org/python-simple-registration-form-using-tkinter/?ref=rp
https://riptutorial.com/tkinter/example/29713/grid--#:~:text=tkinter%20grid()&text=The%20grid()%20geometry%20manager,%2C%20row%20%2C
%20rowspan%20and%20sticky%20
. https://stackoverflow.com/questions/17267140/python-pack-and-grid-methods-together
https://northernlights.imanet.org/home?ssopc=1
https://www.freecodecamp.org/news/exception-handling-python/
https://www.twilio.com/docs/sms/quickstart/python
https://medium.com/paul-zhao-projects/sending-emails-with-python-c084b55a2857
High-level Process
It is time for a person to receive a COVID19 vaccination. The following is a typical process in the Santa Clara County.
1.
IT staff creates 2 databases. One for medical staff admins, and one for patient records.
2.
IT staff creates an admin record for a medical staff and save the information to the staff database.
3.
The medical staff creates a patient record and saves in the patient database with name, DOB, phone number, email, etc.
4.
The medical staff administer a vaccination shot for the patient, and log in today’s date. a.
At this time, the patient database saves the first shot record, and automatically schedule the 2
nd
shot for 21 days later.
b.
An IT automated messaging service sends the first text message to the patient congratulating on the 1
st
vaccination, and show the date for the 2
nd
shot.
c.
An IT automated email service sends the first email to the patient congratulating on the 1
st
vaccination, and show the
date for the 2
nd
shot.
5.
Three days before the 2
nd
appointment:
a.
An IT automated messaging service sends the reminding text message to the patient for the 2
nd
shot date.
b.
An IT automated email service sends the reminding email to the patient for the 2
nd
shot date
Of course the process continues for the 3
rd
and 4
th
shots, but we will stop at Step 5 above because when you know how to do it to this point, you can extend the program to any number of steps. Because of the text messaging and email services, you will need to leverage 3
rd
party tools. Continue to the next sections below.
1
Download, Installation, and Licensing
1.
Install necessary Python packages
You will need to PIP INSTALL the followings: pip install twilio
Reference to https://www.twilio.com/the-current/what-is-twilio-how-does-it-work
, we will use Twilio to send SMS phone messages.
Invoke Anaconda Powershell Prompt
Type pip install twilio
at the prompt.
1.
Procedure to create a free-trial Twilio Account
Overview
WITH TWILIO YOU CAN BUILD:
SMS marketing
Omnichannel contact center
Call tracking
Web chat
Push notifications
Alerts and notifications
Phone verification
2
Application: Lab 2 to send SMS text messages
Procedure to create a free-trial Twilio account
Go to https://www.twilio.com/try-twilio
and fill out the form:
You will receive an email with a link to confirm your email. Click on the link or copy and paste the URL into a browser to confirm:
Then you can log in
Now you must provide a phone number to start the free trial:
3
Enter the number Twilio texts to your phone and submit to start the trial.
On the next screen, select the choices as
4
5
After you click on the blue button above, you will see this screen
Copy the Account SID and AUTH TOKEN to your Lab2 Python code:
There are one location in the code that you must change to your own SID and AUTH TOKEN:
You will also get a Twilio phone number:
Press the button Choose this Number
6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
(02) DC Si Diode Circuit. (Course: Electronic Devices and Circuit Theory)
What is the minimum value for RL needed to turn Zener diode ON?, And what is the maximum value for RL needed to turn Zener diode is ON?
-Use Equation Operators or write it down on paper/digital paper.
-Redraw and Apply.
-You can add //comments for a better understanding.
-Please answer without abbreviation.
-Make it clean and clear typing/writing.
Thank you.
arrow_forward
I need the correct expert solution with explanation of the steps of the solution and the abbreviations, please.
arrow_forward
Pls help.me answer the following, show neat and whole solution and kindly send a screenshot of simulation.
arrow_forward
Build a thermostat using Arduino Uno, LCD display, temperature sensor and few
LED's.
Write a program in Arduino IDE which will work for the heating and cooling
process. Use the temperature sensor to measure the current temperature. Display
the current temperature on the LCD display. You need to use a loop for
comparison of current temperature with the set temperature. LCD display should
display the current and set temperature. Try to implement red and green LED’s for
heater and cooler side respectively.
Modify the project using the remote given in the kit. You should use the remote to
change the temperature up and down the set temperature.
arrow_forward
Evaluate the use of analogue and digital electronic devices, in complex systems like a scientific calculator and an amplifier.
For the calculator
look at the input components such as chips (IC) on a circuit board, switches what do they do. The processor (microprocessor) chip (IC), central processing unit (CPU), what does it do. The output, display screen LCD, what does it do. The power source, batteries, lithium, alkaline.
Where would you expect AND, OR, NOT, EXOR gates to be used. What are FULL ADDER/HALF ADDER circuits show the circuits. How is multiplication done.
For the amplifier
Look at the input, a small voltage/current is applied, uses the power supply to help to increase the input signal, via a transistor/op-amp integrated circuit (IC).
Uses, to drive headphones, speakers. Types of amplifiers, Audio frequency, Radio Frequency, video amplifiers etc. Classes of amplifiers such as class A, B, C and AB.
arrow_forward
Find the state graph for the following parallel counter:
QA
C
clk
clk
clk
(Handwriting solution is needed: include this in your pdf file)
CBA
B
arrow_forward
Produce a working circuit with the Integrated Circuits shown in the image.
arrow_forward
I opened a broken Coin Pusher Arcade game to fix, and I saw a burned IC. Between
Microprocessor and Microcontroller, what kind of IC do you think is that? And why?
arrow_forward
Obtain the state diagrams that would be used to design the circuits to detect the given sequences. Sequences may overlap. a) 01001 b) 000101. Sequences may overlap.
arrow_forward
Construct a 3 paragraph introduction about Kirchoff's Laws. (Voltage and Current Law). Also, give possible reasons for some discrepancies between the actual values of voltage and current and the manual computation of values.
arrow_forward
q2
arrow_forward
Explain the concept of integrated circuits (ICs) and how microchips are a subset of ICs. Provide examples of different types of microchips.
arrow_forward
Define and describe the various circuit stages required to design a DC power supply(specifically, explain the required circuit stages of the empty boxes as shown below). Your answershould include names of the circuit stages, a schematic of an appropriate circuit to accomplisheach stage (no need to define values), and a short description of each circuit stage.
arrow_forward
Create a circuit diagram for the prototype of "Motion Sensor Light Activator using Raspberry Pi Pico" with a 5w bulb.Note:
- Please include the names and values needed (voltages) of the materials on this prototype
arrow_forward
microprocessors to be submitted in 15 mins
arrow_forward
Assignment Statement 01: Briefly discuss about different fast charging protocols.
Your paper must contain
Working principle of fast charging.
Difference between fast charging and normal charging.
Analysis on the differences between different fast charging protocols. For example- How Dash
Charging (used by OnePlus) is different that Adaptive fast charging (used by Samsung).
Safety Issues.
Your take on this technology.
arrow_forward
Please quickly
arrow_forward
Project 3: - Design MCU based system to form the following state machine? Proj4:- redesign the project using active low method (method 2) for LEDs? Show all design parts (the circuit and the program) and the state machine diagram.
arrow_forward
topic: diodes
the data in the table is obtained using electronics workbench simulation. answer the following blanks using computation. (the second picture is the circuit illustration in forward biasing)
given:
Vs = 10V and R1 = 1.2KΩ
arrow_forward
Draw the circuit diagram and explain the working of digital voltmeter
arrow_forward
Please answer in typing format
arrow_forward
What will be the result if the difference between true value and measured value decreasing in the measurement
system?
O a. The accuracy is observed to be constant
O b. The accuracy is observed to be increasing
O C. The accuracy is observed to be decreasing
Od. The accuracy is observed to be infinite
40 ENG
Type here to se.
arrow_forward
I need to do introduction for this title below:
Title: DEVELOPMENT OF WIRELESS FAST CHARGING CHARGER FORCELL PHONE BY USING RECTIFIER
arrow_forward
Discuss the concept of integrated circuits (ICs) and how microchips are a subset of ICs. What advantages do microchips offer compared to discrete components?
arrow_forward
(01) DC Si Diode Circuit. (Course: Electronic Devices and Circuit Theory)
-Use Equation Operators or write it down on paper/digital paper.
-Redraw and Apply.
-You can add //comments for a better understanding.
-Please answer without abbreviation.
-Make it clean and clear typing/writing.
Thank you.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Electricity for Refrigeration, Heating, and Air C...
Mechanical Engineering
ISBN:9781337399128
Author:Russell E. Smith
Publisher:Cengage Learning
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Related Questions
- (02) DC Si Diode Circuit. (Course: Electronic Devices and Circuit Theory) What is the minimum value for RL needed to turn Zener diode ON?, And what is the maximum value for RL needed to turn Zener diode is ON? -Use Equation Operators or write it down on paper/digital paper. -Redraw and Apply. -You can add //comments for a better understanding. -Please answer without abbreviation. -Make it clean and clear typing/writing. Thank you.arrow_forwardI need the correct expert solution with explanation of the steps of the solution and the abbreviations, please.arrow_forwardPls help.me answer the following, show neat and whole solution and kindly send a screenshot of simulation.arrow_forward
- Build a thermostat using Arduino Uno, LCD display, temperature sensor and few LED's. Write a program in Arduino IDE which will work for the heating and cooling process. Use the temperature sensor to measure the current temperature. Display the current temperature on the LCD display. You need to use a loop for comparison of current temperature with the set temperature. LCD display should display the current and set temperature. Try to implement red and green LED’s for heater and cooler side respectively. Modify the project using the remote given in the kit. You should use the remote to change the temperature up and down the set temperature.arrow_forwardEvaluate the use of analogue and digital electronic devices, in complex systems like a scientific calculator and an amplifier. For the calculator look at the input components such as chips (IC) on a circuit board, switches what do they do. The processor (microprocessor) chip (IC), central processing unit (CPU), what does it do. The output, display screen LCD, what does it do. The power source, batteries, lithium, alkaline. Where would you expect AND, OR, NOT, EXOR gates to be used. What are FULL ADDER/HALF ADDER circuits show the circuits. How is multiplication done. For the amplifier Look at the input, a small voltage/current is applied, uses the power supply to help to increase the input signal, via a transistor/op-amp integrated circuit (IC). Uses, to drive headphones, speakers. Types of amplifiers, Audio frequency, Radio Frequency, video amplifiers etc. Classes of amplifiers such as class A, B, C and AB.arrow_forwardFind the state graph for the following parallel counter: QA C clk clk clk (Handwriting solution is needed: include this in your pdf file) CBA Barrow_forward
- Produce a working circuit with the Integrated Circuits shown in the image.arrow_forwardI opened a broken Coin Pusher Arcade game to fix, and I saw a burned IC. Between Microprocessor and Microcontroller, what kind of IC do you think is that? And why?arrow_forwardObtain the state diagrams that would be used to design the circuits to detect the given sequences. Sequences may overlap. a) 01001 b) 000101. Sequences may overlap.arrow_forward
- Construct a 3 paragraph introduction about Kirchoff's Laws. (Voltage and Current Law). Also, give possible reasons for some discrepancies between the actual values of voltage and current and the manual computation of values.arrow_forwardq2arrow_forwardExplain the concept of integrated circuits (ICs) and how microchips are a subset of ICs. Provide examples of different types of microchips.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Electricity for Refrigeration, Heating, and Air C...Mechanical EngineeringISBN:9781337399128Author:Russell E. SmithPublisher:Cengage LearningDelmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage Learning
Electricity for Refrigeration, Heating, and Air C...
Mechanical Engineering
ISBN:9781337399128
Author:Russell E. Smith
Publisher:Cengage Learning
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning