ICT Finals 1
ICT Finals 1
● Droid
● Characteristics
○ Sense
○ Intelligence
○ Power
○ Movement
● Classification
○ Industrial
○ Service
■ Medical
■ Home
■ Education
■ Defense
Short Act
1. Robots obtain information from their
The Arduino IDE is an open-source
environment. TRUE
software, which is used to write and upload
2. Movement is being able to sense its
code to the Arduino boards. The IDE
surroundings. FALSE
application is suitable for different operating
3. Industrial Robots help simplify
systems such as Windows, Mac OS X, and
production tasks.TRUE
Linux. It supports the programming
4. Service robots don't assist humans
languages C and C++. Here, IDE stands for
in their tasks. FALSE
Integrated Development Environment.
5. ENERGY is not able to produce
power. FALSE
The program or code written in the Arduino
IDE is often called SKETCH. We need to
tx - transmitting data connect the Genuino and Arduino board
rx - receiving data with the IDE to upload the sketch written in
Digital pins - 14 pins the Arduino IDE software. The sketch is
Analog input - 6 pins saved with the extension '.ino.'
Power - 4 pins
UPLOAD
The Upload button compiles and runs our ARDUINO CODE STRUCTURE:
code written on the screen. It further
uploads the code to the connected board.
Before uploading the sketch, we need to
make sure that the correct board and ports
are selected. We also need a USB
connection to connect the board and the
computer. Once all the above measures are
done, click on the Upload button present on
the toolbar.
OPEN
The Open button is used to open the
already created file. The selected file will be
opened in the current window.
SAVE
The save button is used to save the current
sketch or code.
NEW
It is used to create a new sketch or open a
new window.
VERIFY
The Verify button is used to check the
compilation error of the sketch or the written PREPARATION BLOCK
code. Preparation block uses the void setup()
statement. This is used to set up pins and
SERIAL MONITOR declare if it is an input or an output. Input
The serial monitor button is present on the pins are used for sensors to gather
right corner of the toolbar. It opens the serial information and data while output pins are
monitor. The serial monitor is the 'tether' used to issue a command. Preparation
between the computer and your Arduino. It block only executes lines of codes once at
lets you send and receive text messages, the startup.
handy for debugging and also controlling
the Arduino from a keyboard. EXECUTION BLOCK
Execution block uses the void loop()
statement. This is used to execute lines of
code to run repeatedly forever.
OTHER PART OF THE STRUCTURE - int led = 13;
Sometimes, we use variables so that we void setup() {
can easily store values in words. pinMode(led, OUTPUT);
We declare each variable at the top of the
preparation block. }
Declaring Variables
- A variable is a place to store a piece
of data. It has a name, a value, and
a type.
Example:
( a major microcontroller manufacturer).
Atmega328P has the following components
in it:
3. MICROCONTROLLER
(ATMEGA AVR, ATMEGA328P) 4. ANALOG INPUT PINS
It is the most prominent black rectangular The Arduino UNO board has 6 analog input
chip with 28 pins. Think of it as the brains of pins, labeled “Analog 0 to 5.” These pins
your Arduino. The microcontroller used on can read the signal from an analog sensor
the UNO board is the Atmega328P by Atmel
like a temperature sensor and convert it into 6. RESET BUTTON
a digital value so that the system
understands. These pins just measure When this switch is clicked, it sends a
voltage and not the current because they logical pulse to the reset pin of the
have very high internal resistance. Hence, Microcontroller, and now runs the program
only a small amount of current flows through again from the start. This can be very useful
these pins. Although these pins are labeled if your code doesn’t repeat, but you want to
analog and are analog input by default, test it multiple times.
these pins can also be used for digital input
or output.
RESISTORS
LED or Light Emitting Diodes are used in
our cars, in our homes, even in our
smartphones. LED converts energy into
light and looks like a tiny lightbulb. However,
LEDs require a lot less power to light up by
comparison. They're also more energy
efficient, so they don't tend to get hot like
conventional light bulbs do, unless you
supply them with a high voltage supply. This
makes them ideal for mobile devices and
other low-power applications. Resistors are electronic components which
can limit the flow of electrons through a
circuit. Each resistor has a certain value of
resistance that can diminish a current in a
LED PIN OUT AND POLARITY
circuit. Resistors are passive components.
In This means they are not polarized, they do
not generate power and they only consume
it.