Professional Documents
Culture Documents
Activity 3.1.6
If you are doing this activity away from the classroom, jump to
the flexible path DL: Activity 3.1.6 Open and Closed Loop
Systems.
INTRODUCTION
Many devices function without ever verifying whether they are doing the job that
they were programmed to do. They might run for a specific period or perform one
function and then stop. For example, if you set the clothes dryer to run for 45
minutes, your clothes might be dry or they might not be dry when the dryer stops.
A clothes dryer is an open loop system because the process provides no
feedback to the device. Newer clothes dryers have moisture sensors. The
moisture sensors inform the machine when the clothes are dry, at which point, the
dryer can stop running. The feedback provided by the sensor makes this a closed
loop system .
In this activity you will design an open loop program to control a motor to oscillate.
Then you will design a closed loop system using feedback from an input to control
the motor.
EQUIPMENT
Limit Switch
1 Modify the testbed so that the right motor has a gear with an indicator
standoff attached as shown in the following figures.
a. Remove the wheel from the right motor.
b. Thread a 1-inch hex screw through a ½-inch standoff.
c. Insert this through the gear as shown in Figure 3 and thread a ½-inch
standoff onto the screw on the other side of the gear.
d. Install gear assembly on the right motor.
3 Write a program that will oscillate the motor 0.5 second each way 20 times.
Add comments in your program to explain the purpose of each step.
7 Disconnect your existing code from the event handler and connect it to a
comment block that identifies the type of loop.
Select File and Save. Select Share and save the PDF for submission later.
10 Develop a program that oscillates the motor each way 20 times. One direction
will use the limit switch sensor input. The opposite direction will use a .5-
second time limit.
a. Begin with the standoff resting against the limit switch.
b. Run the program and observe the ending position of the indicator
standoff.
c. Add comments in your program to explain the purpose of each step.
12 Save the code as a PDF or get a screen capture as directed by your teacher.
CONCLUSION
1 Describe an open loop system that has not already been given as an
example. Could the system benefit from feedback? Justify your answer.
An open loop system example would be a toaster. Feedback we can change it to land on
2 Describe
the sameaspot
closed looptime
every system that has not already been given as an
example. Describe the feedback used. Explain why this type of feedback is
used.
A closed loop system example would be the thermostat. The feedback used is the repeat
and no if statement.
It is used because it can land on the same place each time and can be used to repeat
Proceed to next activity
things with out having different outcomes.