Grade 9 Ict - Lesson-04
Grade 9 Ict - Lesson-04
The basic functions of a computer are to input or collect data, process data according the given
instructions and to output necessary information.
The microcontroller processes data collected from sensors according to the given instructions and
releases necessary output. An example for microcontroller operation is shown below.
The microcontroller processes data gathered by the light sensors to light the bulb or to put it off.
For this purpose, the microcontroller needs to be fed with program instructions in a program.
Following equipment can collect data from sensors and controlled by a microcontroller.
Device to detect people or animals entering to a farm secretly.
Device to detect elephants entering to villages.
Microcontroller
A micro controller is actually a chip design to perform some operations according to the given
instructions.
Components of microcontroller
A microcontroller consists of four basic components.
1. Central Processing Unit (CPU).
2. Memory.
3. System clock.
4. Peripheral devices.
System clock
The system clock is an electronic device. It synchronizes all components.
Peripheral devices
Small pins used to input data or output information belong to this category. Data is collected in
both in analog and digital forms. Output is released in digital form.
1
Memory
There are two types.
a) Non-volatile memory
The data in the non-volatile memory does not get erased even if there is no electricity. The
program that the microcontroller should execute is stored in it.
b) Volatile memory
Data in the volatile memory gets erased if there is no electricity. It functions as the Random
Access Memory (RAM). This is used to store data as well as other results that are related when
the microcontroller is at work. Data and instructions for the CPU are also held here.
Washing machine
Pressing buttons, the user gives instructions to the microcontroller for the wash. The
microcontroller operates accordingly.
Microwave oven
The microcontroller in the microwave oven holds the heat for a specified period and stops. The
user has to instruct regarding the required temperature and the duration.
Use of microcontrollers
A microcontroller based kit can be used to obtain the required outputs. A few such microcontroller
based kits are shown below:
Micro:bit
Arduino
Raspberry pi
Micro:bit
The BBC institute has developed this microcontroller module to get inputs, process them and
produce outputs. This contains a memory too. Hence this board has the basic features of a
computer. Further, it contains sensors also. The architecture of the micro:bit module is as follows;
2
Front view of the micro:bit module
Arduino
Arduino is a microprocessor developed by Atmel Company. It consists of the components shown
below. It can receive input, process it and release output. It contains a memory as well. Therefore,
this board is similar to a basic computer.
3
4
A few Arduino boards used today are shown below;
5
Other peripherals connected to microcontrollers
Bread-board
Breadboards can be used to make circuits without resorting to welding to connect the circuit
components. On a breadboard;
All holes marked (+) ve (red) are connected together.
All holes marked (-) ve (blue) are connected together.
Holes in each green colored section are connected together.
Sensors
A sensor is a device which detects or measures a physical property and records, indicates or
otherwise responds to it.
Passive Infrared Sensor (PIR) Sensor
This is an electronic sensor that measures infrared objects (e.g. humans) in its field of view and
gives an output voltage accordingly.
6
Out of the two trimpots marked colour yellow, one enables adjusting the distance covered by the
sensor, while the other indicates the time delay to release the output.
Ultrasonic sensor
An ultrasonic sensor is used to estimate the distance from it to an object. This is done by ultra
sound signals to the object and then interpreting the reflected signals.
This sensor functions in a way similar to that of a bat finding its route.