Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE

## What am I Learning today?

 I am learning how to develop a simple control system that includes a decision I am learning how to understand how the use of subroutines can make programs more efficient

## Lesson

We are saving all of of our work for this topic into a PowerPoint, that we started two weeks ago.

• You have two options

1. If you were here last week or the week beofre then open the PowerPoint that you saved your work into and add a new slide for Lesson 3.

2. if you were not here last week then click on the image below To download the PowerPoint and add a new slide for Lesson 3.

Don't for get to create a lesson 3 button on the menu page and add a hyperlink to it!

## Sensors

Today we are looking at control using sensors. Sensors are used to measure physical quantities such as temperature, light, pressure, sound, and humidity. They send signals to the processor, processor shorthand for central processing unit (CPU).

### A computer-controlled greenhouse

• To get the best plant growing conditions, the temperature and humidity (moisture in the air) have to be controlled.
• The greenhouse therefore has temperature and humidity sensors linked to a computer, and the computer has a control program storing details of the correct temperature and humidity settings. The greenhouse is fitted with a heater, sprinkler and window motor which are also linked to the computer.
• If the humidity falls below the values stored in the program, the computer activates the sprinklers and closes the windows. If the temperature falls outside the values stored in the program, the heater is activated by the computer.

• ## Complete the following tasks

1. Create a flowchart to turn the Heater ON if the temperature is less than 10 and turn the Heater OFF if the temperature is greater than or equal 10.
2. Create a flowchart to turn the Light ON when light from the Sun is less than 20 and turn the Light OFF when light from the Sun is greater than 50.
3. Create a flowchart to turn the Sprinkler ON for 5 seconds if the low moisture sensor is ON .

4. The following tasks require the use of Subroutines:

5. Create a subroutine flowchart to OPEN the Window.
6. Create a subroutine flowchart to CLOSE the Window.
7. Create a flowchart to OPEN the Window when the temperature is greater than 20 and CLOSE the Window if the temperature is less than 20.

• Add a screenshot of your completed flowchart into your PowerPoint?

• ### Summing it all up

Lets look at the learning outcomes and decide which one best describes our current level of understanding :

Tick the one you feel is closest to your level

## Learning Outcomes I need to learn how to develop a simple control system that includes a decision

• I have a basic understanding of how I can develop a simple control system that includes a decision with a little help from my teacher
• I can show my teacher that I can develop a simple control system that includes a decision without their help.
• I can develop a simple control system that includes a decision independently and I can also explain it to others and can complete any extension tasks I am given.

## 🠜 Now update your learning objectivesClick on the Assessment image

Complete the Flowchart for the 'Automatic home'

Complete each of the tasks below to help automate the home in the Automatic Home mimic:
1. Make the fan switch on automatically if the temperature in the room goes above 23°C.
2. Make the fire switch on automatically if the temperature in the room goes below 17°C.
3. Make the inside lamp switch on automatically if the light level (Sun) falls below 20.
4. Make the security light above the door turn on automatically if the light level (Sun) falls below 30 AND the security sensor is on.

5. Make the garage door open and close when the red Open and Close buttons are pressed.
• Add a screenshot of your completed 'Automatic Home' into your PowerPoint.

• ### Summing it all up

Lets look at the learning outcomes and decide which one best describes our current level of understanding :

Tick the one you feel is closest to your level

## Learning Outcomes I need to learn how to develop a simple control system that includes a decision

• I have a basic understanding of how I can develop a simple control system that includes a decision with a little help from my teacher
• I can show my teacher that I can develop a simple control system that includes a decision without their help.
• I can develop a simple control system that includes a decision independently and I can also explain it to others and can complete any extension tasks I am given.