0% found this document useful (0 votes)
15 views

4th - Smart Counter - Advanced Coding

Uploaded by

cgsv6wxq2z
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

4th - Smart Counter - Advanced Coding

Uploaded by

cgsv6wxq2z
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

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

You might also like