Page 67 - Ai Robogenius
P. 67
else: If the object is at a safe distance (greater than or equal to 60 cm).
Ÿ Serial.println("It is safe to move forward."): Prints a message to the serial monitor
indicating it is safe. � Arduino is a small, programmable circuit board that contains a microcontroller,
essentially a tiny computer.
Ÿ digitalWrite(4, LOW): Turns OFF the Piezo buzzer.
� Arduino supports a wide range of sensors that can be connected with simple wiring.
delay(10): Pauses the program for 10 milliseconds to stabilise the sensor readings and improve
� Tinkercad offers three programming modes that help both beginners and advanced learners
simulation performance.
code easily.
After completing all the steps and connecting the components, your Ultrasonic Distance
� Blocks Mode is the easiest option for beginners, allowing you to drag and drop colourful blocks
Measurement System will measure the distance to an object and activate the Piezo buzzer if the representing different commands instead of typing code.
object is too close.
� Text Mode allows you to write full Arduino code manually using the C++ language.
� A Smart Irrigation System automatically waters plants based on soil moisture.
� An Ultrasonic Distance Measurement System uses an ultrasonic sensor to measure the distance
of objects.
robo check
A. Tick ( ) the correct option.
1. Select the correct type of Arduino board for small projects that fit on a breadboard.
When distance is greater than 60 cm
(i) Arduino Mega (ii) Arduino Uno
(iii) Arduino Nano (iv) Arduino Leonardo
2. Which mode in Tinkercad allows you to drag and drop blocks to create a program without
writing code?
(i) Text Mode (ii) Blocks Mode
(iii) Blocks + Text Mode (iv) Advanced Mode
3. Mark the component that controls the water pump in the Smart Irrigation System.
(i) Arduino Uno (ii) Soil Moisture Sensor
(iii) LED (iv) Resistors
When distance is less than 60 cm 4. Identify the type of Arduino board most suitable for advanced projects requiring extra
memory and more I/O pins.
ECOTECH Smart homes use motion sensors to control lighting, turning lights ON only when needed to
ENERGY reduce electricity usage. (i) Arduino Nano (ii) Arduino Uno
(iii) Arduino Mega (iv) Arduino Leonardo
Getting Started with Arduino in Tinkercad
65

