Is there a hand at the entrance
of the hand sanitizer?
NO YES
The sanitizer The sanitizer
doesn’t come out. comes out.
Proximity sensor block
The proximity sensor block detects
obstacles of objects in front of it
by an infrared sensor.
When the sensor detects, it tells you
that there is an obstacle ahead.
When there’s something
in front of me
When there’s nothing
in front of me
Start
condition
Is there
an object
in front of the
counter?
YES NO
Command1 command2
Start
Condition
Is there
an object
in front of the
counter?
Yes No
? ?
Advanced Coding APP Smart Counter
You need like this
Finish
1
My Project
2
Connecting
Cubroid Block
DC Motor 1 DC Motor 2 LED
Sound Proximity Light Touch
Master
Sensor Sensor
Check
3
My Project
4
5
6
I learned about the conditional statements. ☆☆☆☆☆
I learned about the functions of Cubroid proximity sensor
☆☆☆☆☆
blocks.
Using the program, I could make a smart counter that runs
☆☆☆☆☆
Differently depending on the conditions.
Copyright©2022 by Cubroid, Inc. All rights reserved