Zum Inhalt springen

English:Programmable and control devices - Design And Technology Year 12

Aus MOOCsWiki Staging
aiMOOC-Siegel aiMOOC

Programmable and control devices - Design And Technology Year 12

QR-Code


Introduction

Design a controller for a simulated demonstration cabinet. A model fan should switch on when the cabinet warms and switch off when it cools. Compare a timed program with a feedback controller, examine a short Python model and verify its boundaries, manual pause and sensor fault behaviour using recorded input sequences.

Choose a device for the job

A microcontroller usually combines a processor, memory and input and output facilities on a chip. A classroom microcontroller board adds connections and components that make programming and observation easier. A programmable logic controller is a controller often designed for robust automation with appropriate input and output modules and predictable operating cycles. Device selection depends on timing, number and kind of signals, environment, electrical ratings and maintenance. A fixed timer or comparator can also meet a simple requirement without a complex program.

Photograph of components on a programmable classroom board
Identify which parts support reading inputs, running a program and producing outputs.

The demonstration model needs one temperature value, a manual pause input, a fan command and a status display. A program makes it possible to review the thresholds and response to missing data. Select an appropriate device by listing inputs and outputs, expected response time and a way to test it. Treat the fan as a simulated output in this lesson. Building installations have different requirements and their actual protective behaviour needs its own engineering assessment.


Compare open-loop and feedback control

An open-loop controller applies a command without measuring the controlled outcome. A time switch that runs the model fan for two minutes regardless of cabinet temperature illustrates open-loop operation. In feedback control a sensor measures an outcome and the measurement influences later commands. The purpose of the fan example is to change the future measured temperature. A copied status lamp indicating when a relay is commanded is useful feedback to the user but provides no measurement of the thermal outcome.

Block diagram with a control path and measured feedback
Trace where a measured result can affect a later command.

In the demonstration, warm conditions may lead to a cooling command and a later lower reading may lead the controller to remove that command. Mark the intended feedback path and the effect of an outside change such as a warmer room. A measurement is sampled, so rapid changes between samples may be missed. Choose a sample interval based on the time scale of the demonstration and confirm whether the model responds as intended over repeated independent traces.

Define two thresholds and preserve the state

For the example let a temperature of 27 degrees Celsius or higher turn the command on. A reading of 24 degrees Celsius or lower turns it off. Between those two values, preserve the previous setting. This hysteresis gives distinct boundaries for starting and stopping, which can reduce repeated switching due to small fluctuations. A value of 26 degrees can therefore lead to an on or off command depending on what happened earlier. The two boundary temperatures are example design choices.

A missing reading is represented by None in the model. The program turns the simulated command off and shows Sensor fault. A pause input returns an off command with Paused when the reading is otherwise valid. The pause in this model is active while the pause input is asserted. Decide and document the expected restart behaviour. Here, when a valid reading resumes after fault or pause, it is compared against the off state until the on threshold is reached again. These choices must be verified for this model and reconsidered for another application.

Trace a small controller and its output

The function accepts a valid numeric temperature or None, a Boolean showing the previous command and a Boolean pause input. Each call returns the new command and a status. Give the next call the command from the preceding one to represent the remembered setting. For a standard 1 or 0 digital control output the command would remain at a chosen state until it changes. Pulse-width modulation gives another option for a suitably designed output. An on-time of 2 ms in a period of 5 ms corresponds to a 40 percent duty cycle. The resulting device behaviour depends on the output stage and the load.

def cabinet_step(temperature, was_on, pause=False):
    if temperature is None:
        return False, "Sensor fault"
    if pause:
        return False, "Paused"
    if temperature >= 27:
        return True, "Cooling"
    if temperature <= 24:
        return False, "Idle"
    return was_on, "Cooling" if was_on else "Idle"

Start off and trace the following twelve readings: 23, 26, 27, 26, 25, 24, 25, 28, missing, 28 with pause, 26, 24. The command is on for steps 3, 4, 5 and 8. The missing reading and the paused step are distinguished in the status. The resumed reading of 26 leaves the command off as it falls between the thresholds and the preceding state was off.

Verify sequences and evaluate the design

Test thresholds and conditions separately. Cover valid cases below, at and above both thresholds. Test the same intermediate temperature after an on and an off command. Compare sequences with a sensor fault, a manual pause and then a valid resumption. Record the expected status and command before running the code. A single correct reading gives little information about whether the state logic works across a complete changing sequence.

Consider a model with a single threshold at 26 degrees. Compare its outputs with the two-threshold version for a sequence repeatedly crossing 26 degrees while remaining between 24 and 27. The separate thresholds should reduce unnecessary switching in this test, but also allow the controlled quantity to travel across a range before the command changes. Use observations of the intended cabinet or simulation to judge whether that response suits the brief. If the response is too slow, compare a revised interval and decide what evidence shows the effect.

Interactive Tasks


Quiz: Test Your Knowledge

Which device is often designed for robust industrial automation with suitable modules? (A programmable logic controller) (!A light-dependent resistor alone) (!A fixed mechanical label) (!A voltage reference only)




What makes the fixed timer an open-loop design in this example? (It runs without a measurement of the resulting temperature) (!It uses a timer so it must measure temperature continuously) (!It always runs until a target is reached by measurement) (!Its output is digital rather than analogue)




Which observation is the feedback measurement for temperature control? (The resulting cabinet temperature over time) (!A label printed with the fan model number) (!The controller's command light alone) (!The colour chosen for the case)




When does a valid temperature of 27 degrees change an unpaused off command? (At that step it turns the command on) (!The command stays off until time expires) (!It gives a sensor fault) (!The command turns on only after reaching 28 degrees)




What happens at exactly 24 degrees in the normal model? (The command turns off) (!The previous setting is always preserved) (!The command turns on) (!The status indicates a missing sensor)




Why can 26 degrees lead to either command? (It is between the thresholds and the previous command is preserved) (!The sensor must be disconnected at all intermediate temperatures) (!The program selects an output randomly) (!One threshold equals 26 in all conditions)




What is returned when the sensor value is missing? (An off command and Sensor fault) (!Cooling and an on command) (!Idle with the previous command unchanged) (!Paused with the command on)




At which step does the 12-reading sequence first turn the command on? (Step 3) (!Step 1) (!Step 2) (!Step 6)




What is the duty cycle of an output on for 2 ms in a 5 ms period? (40 percent) (!20 percent) (!60 percent) (!250 percent)




What is a strong verification case for state retention? (Pass the same reading of 26 after an on command and after an off command) (!Compare two different sensor names without running the function) (!Test only at 24 with the cabinet initially off) (!Record a single on command after reading 27)





Memory Game

Microcontroller compact processor and input-output hardware with programmable behaviour
Feedback using a measured outcome to influence later control action
Open loop control without a measurement of the controlled outcome
Hysteresis using different thresholds when changing between two control states
Duty cycle proportion of a periodic signal's time spent in the on state
Test trace recorded sequence of inputs, expected states and observed outputs





Drag and Drop

Match the situations Possible responses
Select a controller document required input types, outputs and timing
Compare with a timer check whether the command responds to a measured outcome
Handle an intermediate temperature retain the previously commanded state
Interpret a missing sample record the defined fault status and command
Check a proposed threshold change rerun relevant sequences and compare expected with observed outcomes





Crossword Puzzle

FEEDBACK What is the return of a measured outcome to influence control?
HYSTERESIS What rule can use different values to switch on and off?
SAMPLE What is an individual reading of the input at a chosen time?
THRESHOLD What value can trigger a change of state?
PERIOD What is the time for one complete recurring pulse cycle?
TRACE What is a sequence record used to compare controller outputs?





LearningApps

If the search returns no suitable result, use the matching task on this page.


Cloze Text

Complete the text.
Measure the outcome to provide

. Each

records a value for the controller. An on

can differ from the off value. That difference creates

. In pulse-width modulation compare on-time with the full

. Retain a test

for every boundary case.



Open Tasks


Easy

  1. List the model signals: Name the input, the pause input and the two outputs in the example.
  2. Distinguish two controllers: Compare a time switch with a detector that measures the resulting cabinet temperature.
  3. Check the two boundaries: State the normal action at 24 and 27 degrees.
  4. Calculate the pulse proportion: Find the duty cycle for 2 ms on in a 5 ms period.


Standard

  1. Compare two device choices: Explain one reason for using a school board and one reason a different industrial project might need a PLC.
  2. Trace an intermediate value: Compare the return from a valid unpaused reading of 26 degrees after true and false previous commands.
  3. Read the test sequence: List the on steps and explain the statuses at steps 9 and 10.
  4. Design a boundary table: Give expected command and status for four readings chosen to test the two switching values.


Advanced

  1. Select and defend a sample interval: Relate sampling to the time scale of the model and explain one risk of slow or unreliable measurements.
  2. Prioritise competing inputs: Compare what happens if a reading is missing while pause is active with what happens if a valid hot reading arrives during pause.
  3. Test resumption after a fault: Trace an on command followed by missing, 26 and 27 and justify each change.
  4. Evaluate a revised comparison: Design a test contrasting one threshold with hysteresis for fluctuations that never reach either outer boundary.


Learning Check

  1. Specify a programmable device: Give a justified controller choice for the school model and identify what would change in a more demanding setting.
  2. Describe the feedback path: Specify what the feedback measurement represents and how it can change a future command compared with a timer.
  3. Verify the exact decisions: Give the on and off thresholds, behaviour between them and the effects of missing input and a valid paused input.
  4. Predict a trace from the program: Starting off, give the commands and statuses for valid temperatures 27 and 26, missing, then 26 and then 28.
  5. Show that the controller uses earlier state: Give two different preceding traces with the same final reading and explain the expected contrast.
  6. Test and choose an improvement: Propose a revised sample rate or threshold band. State a common input sequence and what outcome would support the revision.


Worked checks

  1. A classroom controller or a software simulation is appropriate for experimenting with a reading, a pause and an output command. An industrial installation may require different input-output modules, protection, timing guarantees and maintenance support.
  2. The measured cabinet temperature affects the future cooling command. The new action can change the next temperature. A timer has no measurement of that result in the given open-loop example.
  3. At 27 degrees or above the command is on. At 24 or below it is off. Between them it retains the previous command. Missing gives Sensor fault and off, while valid pause gives Paused and off.
  4. The trace gives on Cooling, on Cooling, off Sensor fault, off Idle, and on Cooling. The off command after the sensor fault is the previous state used by the valid 26 reading.
  5. The traces 23 then 26 and 27 then 26 end with the same reading. The first is off and the second is on because the intermediate value preserves the preceding command.
  6. Select one change, such as a different threshold band, and run both controllers on the same recorded varying input. Compare response to the cabinet's intended use, transition count and fault and pause cases before accepting the change.


Learning evidence

Retain the selected device and signal list, a feedback drawing, the function, a recorded trace and an ordered table of boundary, memory, fault and pause cases. Record one improvement supported by comparable observations.

OER and Wikipedia


Linked learning areas


aiMOOC Projects



Schulfach+




aiMOOCs



aiMOOC Projekte









MOOCwiki · Deutsch

Nach dem Lernen ist vor dem Lernen

Entdecke direkt den nächsten Lernkurs. Weitere Inhalte erscheinen, wenn Du weiter nach unten scrollst.

Zur MOOCwiki-Hauptseite

Mediathek

Suche verfeinern

Dein Lernplan bestimmt, was oben steht. Alle anderen Inhalte bleiben erreichbar. Seitenaufrufe beeinflussen die Auswahl nicht.

Inhalte werden geladen ...

Mediathek wird aus dem Wiki geladen ...