Robotics and Programming: Task 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

ROBOTICS AND PROGRAMMING

TASK 1 –

EXPLORE –

a) A brief summary of what each sensor does –


The ultrasonic sensor measures the distance between it, and objects ahead of it. It does this
through sending out high frequency sound waves too high pitched for the human ear to
register, then timing how long the waves take to bounce back and return. The robot can not
only display the distance data collected, but also make programmed decisions based on the
data, such as avoiding walls and obstacles. The detectable distance range for this sensor is from
3 to 250 centimetres. Though as the distance between it and the object increases, the accuracy
decreases. (LegoMindstorm, 2015)
http://counties.agrilife.org/gillespie/files/2015/04/EV3-Motors-Sensors-Explained.pdf
The temperature sensor uses the tip of its metal probe to measure temperatures between -
20℃ and 120℃, or -4°F and 248°F. It is used to collect heat related data that may be required
for the robot’s decision-making. (LegoMindstorm, 2015)
https://raor.ru/netcat_files/77/372/LME_EV3_UserGuide_US.pdf

b) Define a task for your robot to complete –


Monty 2 will be placed in a small, physically enclosed area, along the edge of the barrier. He will
“survey” the area for life by driving along the barrier until his ultrasonic sensor detects an
obstacle. Once the obstacle is within 40 centimetres of the ultrasonic sensor, he will charge pre-
emptively until he is close enough (15 centimetres) to decide what the obstacle is from its
temperature, then base his reaction accordingly. There are two possibilities
 He has come across a wall/ barrier; in this case, he will simply turn 90 degrees to his left,
and continue his hunt.
 He has come across a human/ material with a temperature 30 degrees Celsius (°C) or
above; in this case, he will say “goodbye” in a light-hearted manner, then attack. His
claw will grab the human and in theory, although this will not be shown in his video,
squeeze them to death.
c) Investigate possible robot designs –

What he has now What he needs/will have


 Ultrasonic sensor  Ultrasonic sensor
 Gyro sensor  Temperature sensor
 Light sensor  Claw attached to medium motor
 Flames and other intimidating Lego
pieces

Possible designs –

Pros Cons
 It looks intimidating  It would block all needed sensors e.g.
 Could effectively pick up objects temperature sensor
 Would not be easy to harm  The front half of the robot would be
quite heavy
 Although the forklift could lift the
object, it could not, in theory, inflict
harm. A claw would be more
effective
 The design is unnecessarily complex
Pros Cons
 Has a functional claw  Has no temperature sensor
 Mobile, and difficult to break/knock  Has the incorrect visual sensor
over  Is likely front heavy
 Has an intimidating design
Pros Cons
 Has proper limbs to grab/pick up  Cannot grab in the way he would
objects need to
 Has an ultrasonic sensor  Has no temperature sensor
 Is far too cute, even has a little cube
to play with
 Has an unnecessary touch sensor
Design prior to upgrade –

Design following upgrade –

Designs incorporated –

 claw from design 2


 build/ proportions of design 1 and 3
DEVELOP –

a) Notes regarding physical requirements of the robot –


 Ability to withstand damage in case of a malfunction
 Ability to accurately move based off sensor variables such as distance and temperature
 Ability to kill humanely, and know once the victim is deceased through the use of a temperature
sensor
 Ability to install/ comprehend programming

b) Sketch of robot –
c) A behaviour diagram

Blue line = speed 30

Red arrow = speed 100 when ultrasonic sensor picks up an object less than 40cm

Green and purple box = Monty_2

Black box = walls


Blue line = speed 30

Red arrow = speed 100 when ultrasonic sensor picks up an object less than 40cm

Blue ball = thermometer detects object under 30 degrees Celsius

Green and purple box = Monty_2

Black box = walls


Zoomed in:

Blue line = speed 30

Red arrow = speed 100 when ultrasonic sensor picks up an object less than 40cm

Green circle = thermometer detects object over 30 degrees Celsius

Green and purple box = Monty_2

Black box = walls

Purple lines = claws

Orange arrow = direction claws are moving because of medium motor

Black arrow = speed 40


GENERATE –

a) Screenshot of ev3 program –

~Just in case you can’t tell what the comment boxes are saying~
1) The robot opens the claws, moves forward, and closes around the heated object
2) When the temperature is under 30 degrees Celsius, it turns and carries on its way
3) When the distance is between 40cm and 15cm, the robot says ‘goodbye’ and charges
forwards.
4) When the distance away from an object is above 40cm, the robot moves forward and slowly.
b) Video of robot completing the task –
https://www.youtube.com/watch?v=kXu_Ajn0Kzg

EVALUATE AND REFINE –

a) 250 evaluation of success –


Generally, our robot, Monty_2, performed his task quite well. His task was to survey a small-
enclosed area – by driving around the perimeter at a slight angle, to increase covered area –
until he detected an object.

Bibliography
LegoMindstorm. (2015). EV3 Technology User Guide. France: Lego.

You might also like