Rabu, 29 Oktober 2014

Control applications

Turtle graphics:
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




Safety aspects

Here is some safety aspects for you to becarefull with your surroundings.

Electrocution:
Don't put your drinks near any gadget, cable, electronics.
Don't overload your socket with many plugs.
You must check the wires regularly.


Cause:
Exposed wires.
To much cable extension in one socket.

To handle:
Turn off the main sources.

Trailing wires:

Risk:
We can be tripped because of the cable that is untidy.

Cause:
Tangled wires.

Prevent:
Cover the wire with rubber and tuck it.
Use the cable duck.
Tucked it away neatly for (example under your desk).

Heavy equipment falling:
Don't put your things in the corner of your upper cupboard.
Make sure there is some gap or space between your things and the edge of the cupboard.
You can also use larger desk or cupboard.

Fire:
Make sure you have some of fire extinguishers each floor of your building.
You have ventilation each room.
Don't overload sockets with too many plugs.
Evacuation roul is needed.