0% found this document useful (0 votes)
67 views40 pages

Robotics 2 - Flowchart

- The flowchart starts with measuring the light value using an LDR sensor. - It then makes a decision based on whether the light value is greater than 200 (daytime threshold). - If yes, it measures the distance using an ultrasonic sensor and opens the servo flap if the distance is less than 20cm. - If the light value is not greater than 200, it keeps the flap closed. - It then repeats the process by re-measuring the light value.

Uploaded by

Alexis Parco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views40 pages

Robotics 2 - Flowchart

- The flowchart starts with measuring the light value using an LDR sensor. - It then makes a decision based on whether the light value is greater than 200 (daytime threshold). - If yes, it measures the distance using an ultrasonic sensor and opens the servo flap if the distance is less than 20cm. - If the light value is not greater than 200, it keeps the flap closed. - It then repeats the process by re-measuring the light value.

Uploaded by

Alexis Parco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 40

ROBOTICS

TIME!
Checklist:
☐ Attendance
☐ House rules
☐ Recap and Priming
☐ New Topic
☐ Quiz
Prayer
Attendance
Checklist:
☐ Attendance
☐ House rules
☐ Recap and Priming
☐ New Topic
☐ Quiz
HOUSE
RULES
1.

Be on time.
2.
Do not talk
about
unrelated
matters.
3.

Listen
attentively.
4.
Ask
questions
properly.
5.

Avoid
multitasking.
6.
Practice ‘

proper
coughing/
sneezing
etiquette.
7.

ENJOY.
Checklist:
☐ Attendance
☐ House rules
☐ Recap and Priming
☐ New Topic
☐ Quiz
Game
The Robot in Room
The Robot in the Room
-by A.A.Parco

The robot in the room


goes “Beep Boop Beep!”
… “Beep Boop Beep!”
… “Beep Boop Beep!”
The robot in the room https://fcit.usf.edu/matrix/project/
animated-radio-robot/

goes “Beep Boop Beep!”


… all through the class.
+
The Robot in the Room
-by A.A.Parco

The robot in the room


goes “Beep Boop Beep!”
… “Beep Boop Beep!”
… “Beep Boop Beep!”
The robot in the room https://fcit.usf.edu/matrix/project/
animated-radio-robot/

goes “Beep Boop Beep!”


… all through the class.
+
The Robot in the Room
-by A.A.Parco

The robot in the room


goes “Beep Boop Beep!”
… “Beep Boop Beep!”
… “Beep Boop Beep!”
The robot in the room https://fcit.usf.edu/matrix/project/
animated-radio-robot/

goes “Beep Boop Beep!”


… all through the class.
+
The Robot in the Room
-by A.A.Parco

The robot in the room


goes “Beep Boop Beep!”
… “Beep Boop Beep!”
… “Beep Boop Beep!”
The robot in the room https://fcit.usf.edu/matrix/project/
animated-radio-robot/

goes “Beep Boop Beep!”


… all through the class.
m +( -h)
The Robot in the Room
-by A.A.Parco

The robot in the room


goes “Beep Boop Beep!”
… “Beep Boop Beep!”
… “Beep Boop Beep!”
The robot in the room https://fcit.usf.edu/matrix/project/
animated-radio-robot/

goes “Beep Boop Beep!”


… all through the class.
Sharing…
1. Is it your first time
playing this type of
game?

2. Was it easy? Why?

3. What do you think will be


our topic for today?
Checklist for today
□ Review
□ Lesson proper
□ Define joystick

□ Identify the function/s of a joystick

□ Explain the proper joystick connection with respect to the


Arduino Board

□ Integrate a joystick in an actual Arduino Circuit


Objectives
●Define flowchart
●Identify the different
flowchart symbols
●Construct flowcharts https://starecat.com/
engineering-flowchart-does-

for robotics functions


it-move-wd-40-duct-tape/
What is a
flowchart?
Flowchart
- a diagram that shows
a process, a system or
a computer algorithm
https://www.rff.com/flowchart_input_output.php

https://www.rff.com/
flowchart_input_output.php
What are the basic
flowchart
symbols?
Terminal
- a.k.a. “terminator”
Terminal
- shows where the
process begins or ends
Process
- used to represent a Process
process or an action
- generally include
verbs
Data (I/0)
- Input and Output Data
- shows data FROM or
TO the outside system
Decision
- a.k.a. “conditional” Decision
- used in a process
flow to ask a question
- followed by arrowed
Yes/No or True/False
Example 1(Try!)

https://shopee.ph/amp/k3-handsfree-thermometer-or-thermal-
scanner-with-free-stand-i.16292089.5437455794
Example 1(Try!)
●Start
●Is temp >
37.5°C? ●Power
●Load
on
settings
●Announce “Normal”
●Yes
●Alarm like crazy
●No
●Stop alarm ●Wait for 5s https://shopee.ph/K3-Plus-Thermal-Scanner-

●Read temp.●Turn off●End


with-Tripod-i.301762445.4454728016
Example 2 (Try!)

G9 SSC – Ultrasonic-Servo Output


Example 2(Try!)
●Start
●Is distance value >
20cm?
●Load Arduino
sketch●Servo moves to 180°
●Yes
●No ●Turn on
●Turn off https://community.element14.com/challenges-
projects/project14/dataconversion/b/blog/

●Read ultrasonic ●End posts/servo-motor-control-with-arduino-and-


servo-ultrasonic-sensor
Seatwork
Construct a flowchart for an
automatic Arduino flap-door
that only works during
daytime (light value >200).
Consider the use of Arduino
UNO, LDR, ultrasonic
sensor and servo

You might also like