CS2401ProgrammingAssignment3
docx
keyboard_arrow_up
School
University of the People *
*We aren’t endorsed by this school
Course
2401
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
docx
Pages
5
Uploaded by CommodoreBeePerson881
A. Identify the actors for the system and their goals
Each actor has a specific goal to perform an action to trigger an interaction with the system. The
actors that interact with the system-to-be are listed below. I have included a timer as an actor. Once the garage door light is activated by its motion detector, the timer then will begin a countdown to 0. When the timer has reached 0, the garage light automatically switches off. (Marsic, 2012)
Actor Actors Goal
Owner
For the door to open and close by using a garage door remote transmitter or manual button Motion detector
To detect motion within a specific perimeter and to activate the garage light
Electric eye sensor
To detect if someone or something passes under the garage door as it’s closing and activates it to automatically stop and reverse the function of the garage door
Timer
schedules the automatic switch of the light off
B. Derive only the use cases relevant to the system objective and write brief or casual text description of each a. These are the use cases listed that are relevant to the system object: I.
Auto Open use case. The owner has the ability to open the garage by using the remote control. II. Auto Close use case.
The owner has the ability to close the garage by using the remote control.
III.
Manual Open use case
. The owner has the ability to open the garage door using a manual button. IV.
Manual Close use case.
The owner has the ability to close the garage door using the manual button. V.
Light On use case
. The light is automatically turned on when the motion detector has been activated. VI
. Light Off use case.
When the light on use case happens, the timer is then activated. The light automatically turns off when the timer hits 0. VII Auto Stop use case
. The system automatically stops and activates either the Auto Close use case or the Manual Close use case.
C. Draw the use case diagram for the system
Please See Attachment for diagram
In my diagram, I used the term < > to illustrate use cases that are related to another use case. As an example, when starting the Auto Stop use case by the eye sensor actor, the system stops
automatically and will activate either the Auto Close or the Manual Close use case.
D. For the use case that deals with the remote-controlled garage door opening, write a fully dressed description
Use Case: Auto Open
Initiating actor
Owner
Actor’s goal Either entering or exiting the garage
Preconditions ● The garage door has to be closed ● The remote control & receiver need to be
configured to work together
Post Condition: The Garage door will open.
My Flow of events for the main success scenario →
1. The user presses the remote-control button
←
2. (a). The remote control provides a signal to open the door to the remote (b) The remote control receives the message, then confirms that it is assembled with the
remote control ← 3. The system uses the motor that opens the garage door →
4. The user can enter or exit the garage Alternate Scenarios
→ 1. The user presses the remote-control button
←
2. (a). The remote-control transmitter sends the signal to open the door to the remote receiver (b). The remote receiver receives the message and cannot validate that it is configured with the remotecontrol
transmitter
→ 1. The user presses the remote-control button
→ The Garage door stays closed
Keep in mind, The system will alert the owner that the remote control is not configured. Therefore it would not be functional.
2. The owner stops the garage door from opening by pressing the remote control → The user presses the button on their remote control
← 2(a). The remote control sends the signal to open the door to the remote receiver 2(b). The receiver gets the message and will validate configuration with the remote control ←
3. The system utilizes the motor in order to open the garage door
→
4. The user can press the remote control button again
←
5. The remote control gets the message and activates the Auto Stop use case E. Draw the system sequence diagram(s) for the use case selected in (d)
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
See attached diagrams
Owne
r
Syste
m
Send Open Message
Validate configuration
Send Validation Message
open the garage door
Scenario E
F. Show the operation contracts for the operations of the use case selected in (d)
Operation AutoOpen()
Cross Reference
Use case: Auto Open
Preconditions The garage door needs to be closed. The remote-control needs to be put together in
order for it to work.
Postconditions The garage door is opened
References: Marsic, I. (2012). Software engineering. Rutgers University. http://www.ece.rutgers.edu/~marsic/books/SE/book-SE_marsic.pdf. Owner
System
Send Open Message
Send Invalidation Message
Validate configuration
Keep the garage door closed
Alternate Scenario for E
Related Questions
I have a wooden toy train that runs on wooden tracks. I would like to place two ESP-WROOM-32 Boards on top of the train. Broadcast communication (which involves radio frequency, not Wi-Fi) would help communicate about the train's lateness to five other wooden trains on the same track. Local communication would help communicate to the train station about the train's lateness. I would also need radio frequency Tx-Rx Modules for discharging and undergoing the signal, and repeaters just in case the signal loses power due to long-distance traveling. My wooden train should be automated. It should run at 4 inches per second, keep a minimum distance of 30 seconds away from the other wooden trains, and make a 17-second-long stop every 500 seconds.
What's the procedure to connect the components?
What's the Arduino code (C++) for this project?
arrow_forward
Note: Give me right solution according to the question. Don't copy from other websites solution,if I noticed copied solution I will give dislike.... Thank you
A mechanical press has a stopping time for its press-brake mechanism of 0.34 sec and a stopping time for the control circuit of 0.04 sec. The brake monitor is set for 0.48 sec, and the minimum object sensitivity is 0.76 in. Calculate the minimum safe distance that the light curtain can be installed from the press.
arrow_forward
A temperature sensor and a pressure sensor (consider NO switch) are used tocontrol a mixer which consists of an AC motor. When the set pressure andtemperature are achieved, the motor will automatically turn on. In addition, themotor can be turned on using manual pushbutton A, whereas the releasing actionof the pushbutton A will turn on the motor. The motor will not turn on as long asthe manual start pushbutton is pressed.
i) Provide a list of components and address table for the required items.
arrow_forward
I have an O Gauge track and would like to convert it into a “sensored” track. Additionally, I would like to connect that track to an ESP-WROOM-32 board that should flash an LED whenever the track detects a non-moving train. Please list all the components (and how many of each) needed. Also, what’s the procedure for connecting the components?
arrow_forward
Using the notation scheme for defining manipulator configurations, draw diagrams of the following robots. Label each
joint in the diagram.
(i)
TVR:TR
(ii) VROT:R
arrow_forward
Q14) An assembly line has 3 fail safe sensors and one emergency shutdown switch.
The line should keep moving unless any of the following conditions arise:
(i) If the emergency switch is pressed
(ii) If the senorl and sensor2 are activated at the same time.
(iii) If sensor 2 and sensor3 are activated at the same time.
(iv) If all the sensors are activated at the same time
Suppose a combinational circuit for above case is to be implemented only with
NAND Gates. How many minimum number of 2 input NAND gates are required?
arrow_forward
I am designing a tremor/arthritis glove. its primary functions are to heat and vibrate. Provided with the following parts: electrical heating pads/elements, temperature sensor, 2 x compact motors/ actuators, 2 x potentiometers to regulate the temperature and vibrations, accelerometer, control board, power supply in form of a battery, and other electronic components, build a block cicuit diagram detailing how and where each is connected. If possible provide an image of the circuit connection. The circuit should have a power switch
arrow_forward
7.a. Photoelectric eye alignment is typically a PM task for a(n)A. electrician.B. lubricator.C. machine operator.D. mechanic.7.b. Mean time before failure describesA. how long it will take between failures at your plant.B. how long before one component in a group will fail.C. how a failure will occur on a component that’s inside a machine.D. the amount of time a component will last when it’s heavily loaded.7.c. Under an ISO 9000 program, which one of the following employees is responsible for checkingcompleted work to make sure it has been performed to company specifications?A. The maintenance general managerB. The PM program administratorC. A shop foremanD. A maintenance technician
arrow_forward
The subject is Power Electronics and Smart Power System
Please send the answer by typing i don't want any handretten.
Also, don't copy past from net as plagiarism will be counted.
arrow_forward
Problem description:
In a car security system, we usually want to connect the siren in such a way that the siren will activate when it is triggered by one or more sensors. In addition, there will be a master switch to turn the system on or off. Let us assume that there is a car door switch D, a vibration detector switch V, and the master switch M. We will use the convention that when the door is opened D = 1, otherwise, D = 0. Similarly, when the car is being shaken, V = 1, otherwise, V = 0. Thus, we want the siren S to turn on, that is, set S = 1, when either D = 1 or V = 1, or when both D = 1and V = 1, but only for when the system is turned on, that is when M = 1. However, when we turn off the system, and either enter or drive the car, we do not want the siren to turn on. Hence, when M = 0, it does not matter what values D and V have, the siren should remain off.
Instruction:
Start by constructing a truth table, which is basically a precise way of stating the operations for the…
arrow_forward
Q1: Answer by YES or NO for the following sentences:
1- Detectors that are applied to radiation dosimetry are often used in pulse mode.
2- Radiation detectors used for nuclear reactors' power monitoring are most often
operated in current mode.
3- Pulse mode detectors measure the average current over many interactions.
4- The amplitude of the signal in the pulse mode is proportional to the charge
generated within the detector.
5- The sensitivity in the current mode is many factors greater than when using pulse
mode.
6- The information on individual pulse amplitude is lost in the current mode.
7- Peaks in the DPHS indicate pulse amplitude about which few pulses occur.
8- Valleys appear in DPHS means a region of maximum slope observed in the
integral distribution.
9- Minimum sensitivity to drifts in discrimination level is achieved at the plateaus
of the counting curves.
10- When the value of the resolution decreased, the resolution of the detector
decreased too.
11- The statistical noise…
arrow_forward
ACTIVITY TITLE: SAFETY PRECAUTIONS ON ASSEMBLING ELECTRONIC
LIGHT DIMMER
DIRECTIONS: Look at the pictures below and write something about hazards, how it
can harm someone and what OHS strategy to be follow. You can write your answers
in English, Tagalog or combination of English and Tagalog.
LOOK!
THINK!
WORKPLACE
DO!
HAZARD/ACCIDENT
What is the
Can the hazard
OHS strategy?
hazard?
harm someone?
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,
Related Questions
- I have a wooden toy train that runs on wooden tracks. I would like to place two ESP-WROOM-32 Boards on top of the train. Broadcast communication (which involves radio frequency, not Wi-Fi) would help communicate about the train's lateness to five other wooden trains on the same track. Local communication would help communicate to the train station about the train's lateness. I would also need radio frequency Tx-Rx Modules for discharging and undergoing the signal, and repeaters just in case the signal loses power due to long-distance traveling. My wooden train should be automated. It should run at 4 inches per second, keep a minimum distance of 30 seconds away from the other wooden trains, and make a 17-second-long stop every 500 seconds. What's the procedure to connect the components? What's the Arduino code (C++) for this project?arrow_forwardNote: Give me right solution according to the question. Don't copy from other websites solution,if I noticed copied solution I will give dislike.... Thank you A mechanical press has a stopping time for its press-brake mechanism of 0.34 sec and a stopping time for the control circuit of 0.04 sec. The brake monitor is set for 0.48 sec, and the minimum object sensitivity is 0.76 in. Calculate the minimum safe distance that the light curtain can be installed from the press.arrow_forwardA temperature sensor and a pressure sensor (consider NO switch) are used tocontrol a mixer which consists of an AC motor. When the set pressure andtemperature are achieved, the motor will automatically turn on. In addition, themotor can be turned on using manual pushbutton A, whereas the releasing actionof the pushbutton A will turn on the motor. The motor will not turn on as long asthe manual start pushbutton is pressed. i) Provide a list of components and address table for the required items.arrow_forward
- I have an O Gauge track and would like to convert it into a “sensored” track. Additionally, I would like to connect that track to an ESP-WROOM-32 board that should flash an LED whenever the track detects a non-moving train. Please list all the components (and how many of each) needed. Also, what’s the procedure for connecting the components?arrow_forwardUsing the notation scheme for defining manipulator configurations, draw diagrams of the following robots. Label each joint in the diagram. (i) TVR:TR (ii) VROT:Rarrow_forwardQ14) An assembly line has 3 fail safe sensors and one emergency shutdown switch. The line should keep moving unless any of the following conditions arise: (i) If the emergency switch is pressed (ii) If the senorl and sensor2 are activated at the same time. (iii) If sensor 2 and sensor3 are activated at the same time. (iv) If all the sensors are activated at the same time Suppose a combinational circuit for above case is to be implemented only with NAND Gates. How many minimum number of 2 input NAND gates are required?arrow_forward
- I am designing a tremor/arthritis glove. its primary functions are to heat and vibrate. Provided with the following parts: electrical heating pads/elements, temperature sensor, 2 x compact motors/ actuators, 2 x potentiometers to regulate the temperature and vibrations, accelerometer, control board, power supply in form of a battery, and other electronic components, build a block cicuit diagram detailing how and where each is connected. If possible provide an image of the circuit connection. The circuit should have a power switcharrow_forward7.a. Photoelectric eye alignment is typically a PM task for a(n)A. electrician.B. lubricator.C. machine operator.D. mechanic.7.b. Mean time before failure describesA. how long it will take between failures at your plant.B. how long before one component in a group will fail.C. how a failure will occur on a component that’s inside a machine.D. the amount of time a component will last when it’s heavily loaded.7.c. Under an ISO 9000 program, which one of the following employees is responsible for checkingcompleted work to make sure it has been performed to company specifications?A. The maintenance general managerB. The PM program administratorC. A shop foremanD. A maintenance technicianarrow_forwardThe subject is Power Electronics and Smart Power System Please send the answer by typing i don't want any handretten. Also, don't copy past from net as plagiarism will be counted.arrow_forward
- Problem description: In a car security system, we usually want to connect the siren in such a way that the siren will activate when it is triggered by one or more sensors. In addition, there will be a master switch to turn the system on or off. Let us assume that there is a car door switch D, a vibration detector switch V, and the master switch M. We will use the convention that when the door is opened D = 1, otherwise, D = 0. Similarly, when the car is being shaken, V = 1, otherwise, V = 0. Thus, we want the siren S to turn on, that is, set S = 1, when either D = 1 or V = 1, or when both D = 1and V = 1, but only for when the system is turned on, that is when M = 1. However, when we turn off the system, and either enter or drive the car, we do not want the siren to turn on. Hence, when M = 0, it does not matter what values D and V have, the siren should remain off. Instruction: Start by constructing a truth table, which is basically a precise way of stating the operations for the…arrow_forwardQ1: Answer by YES or NO for the following sentences: 1- Detectors that are applied to radiation dosimetry are often used in pulse mode. 2- Radiation detectors used for nuclear reactors' power monitoring are most often operated in current mode. 3- Pulse mode detectors measure the average current over many interactions. 4- The amplitude of the signal in the pulse mode is proportional to the charge generated within the detector. 5- The sensitivity in the current mode is many factors greater than when using pulse mode. 6- The information on individual pulse amplitude is lost in the current mode. 7- Peaks in the DPHS indicate pulse amplitude about which few pulses occur. 8- Valleys appear in DPHS means a region of maximum slope observed in the integral distribution. 9- Minimum sensitivity to drifts in discrimination level is achieved at the plateaus of the counting curves. 10- When the value of the resolution decreased, the resolution of the detector decreased too. 11- The statistical noise…arrow_forwardACTIVITY TITLE: SAFETY PRECAUTIONS ON ASSEMBLING ELECTRONIC LIGHT DIMMER DIRECTIONS: Look at the pictures below and write something about hazards, how it can harm someone and what OHS strategy to be follow. You can write your answers in English, Tagalog or combination of English and Tagalog. LOOK! THINK! WORKPLACE DO! HAZARD/ACCIDENT What is the Can the hazard OHS strategy? hazard? harm someone?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Introductory Circuit Analysis (13th Edition)Electrical EngineeringISBN:9780133923605Author:Robert L. BoylestadPublisher:PEARSONDelmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage LearningProgrammable Logic ControllersElectrical EngineeringISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
- Fundamentals of Electric CircuitsElectrical EngineeringISBN:9780078028229Author:Charles K Alexander, Matthew SadikuPublisher:McGraw-Hill EducationElectric Circuits. (11th Edition)Electrical EngineeringISBN:9780134746968Author:James W. Nilsson, Susan RiedelPublisher:PEARSONEngineering ElectromagneticsElectrical EngineeringISBN:9780078028151Author:Hayt, William H. (william Hart), Jr, BUCK, John A.Publisher:Mcgraw-hill Education,
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,