Arduino Viva Questions and Answers
1. What is an IR sensor and why is it used? An IR sensor is an Infrared sensor that detects objects
using infrared radiation. It is used for object detection, obstacle sensing, and proximity
detection.
2. Why do we use the Serial Monitor in Arduino? The Serial Monitor is used to communicate
between the Arduino and the computer. It helps in debugging programs and monitoring sensor
data.
3. Why do we use [Link]()? [Link]() is used to initialize serial communication between
Arduino and the computer by setting the baud rate.
4. Why is the baud rate set to 9600? 9600 is a standard and stable baud rate that allows reliable
communication between Arduino and the Serial Monitor.
5. What is the map() function in the potentiometer experiment and why is it used? The map()
function converts a value from one range to another. It is used to convert potentiometer values
(0–1023) into PWM values (0–255).
6. What are the applications of an IR sensor? IR sensors are used in obstacle detection, line-
following robots, automatic doors, burglar alarms, and object counters.
7. What is pulseIn() function and why is it used in ultrasonic experiment? The pulseIn()
function measures the duration of a pulse in microseconds. In ultrasonic experiments, it
measures how long the ECHO pin stays HIGH, which is used to calculate distance.
8. What is TRIG and ECHO in an ultrasonic sensor and their use? TRIG is used to send a trigger
pulse to emit ultrasonic waves, and ECHO receives the reflected waves. The duration of the ECHO
pulse is used to calculate distance.
9. What is void setup() and why? void setup() is a function that runs once when the Arduino
starts. It is used to initialize pin modes, serial communication, and libraries before the main
program.
10. What is the use of an ultrasonic sensor? An ultrasonic sensor measures distance and detects
objects without contact. It is used in obstacle detection, parking sensors, robotics, and
automation systems.
11. Applications of a servo motor? Servo motors are used where precise position control is
needed, such as robotic arms, automatic doors, camera pan-tilt, steering mechanisms, and
industrial automation.
12. What is an LDR and its use? An LDR (Light Dependent Resistor) changes resistance with light
intensity. It is used in automatic street lights, light-controlled switches, and light-based alarms.
13. What is a potentiometer and its use? A potentiometer is a variable resistor used to adjust
voltage levels. It is used to control LED brightness, motor speed, and volume in electronic
circuits.