To control of the movement of a 'turtle' on a computer screen. We gave them instructions or commands by typing it. We use this to make a design or a diagram or shape. Here are some of the command that we can type:
🔸forward x : move x cm forward
🔸backward x: move x cm backward
🔸left x: turn left x degrees
🔸right x: turn right x degrees
🔸repeat x: repeat the drawing x times
🔸unrepeat: finish the repeatition
🔸pen up: lift the pen up
🔸pen down: lower the pen
Application using sensors:
There are 2 types of sensors, monitoring and control application.
In monitoring, the computer can only give us signals. For example, if there is a burglar the computer can only beep or give us light signals. They aren't stop if we don't turn the beep or the light signals off.
In controlling application, the computer proceed or making an action that we firstly already set. For example, in the greenhouse we already set the computer if the temperature of the room is higher than 15 degrees the computer need to open the ventilation or turn on the AC.
Examples of monitoring:
Patient's vital signs in a hospital.
A burglar alarm system.
Environmental monitoring.
Examples of controlling application:
Controlling a greenhouse environtment.
A set of traffic lights.
Central heating system.
Computer can only read digital data. Sensors, motor, valves and many more can only read analogue data. To connect them, they will need a converter. Analogue to digital converter (ADC) and digital to analogue converter (CAD).
The advantage of using the sensors monitoring:
They cannot forget the readings.
Fast.
24 hours straight.
More accurate.
Safer.
Adventage of using the controlling application:
Faster.
Safer.
If it is dangerous better control it from a distance.
ROBOTICS
Robot are use for manufacturing, heavy work, boring work that repeat their work over and over again.
Robot has a sensor so for example, the robot have a work to spray paint the body of a car, the sensor can read if there is the car or not, so if there is no car the robot will not spray paint.
Robot is programmed by all instruction that we first set. The operator will control the robot.
Adventage:
Work harmful to human operator
24 hours straight non stop
Less expensive
Disadvantage:
There are some risk for using a robot
Can couse unemployment