Robotics and Automation
Robotics and Automation
a. Ultrasonic Sensor
Key Components:
Applications:
Advantages:
Non-contact measurement
Works well in dark or smoky environments
b. ROS Master
The ROS Master is a core component of the Robot Operating System (ROS).
It acts as the central coordinator for all ROS nodes. It keeps track of all
active nodes and manages the communication between them by providing
naming and registration services.
Functions:
Node registration and lookup
Topic management
Service advertisement and discovery
Without the ROS Master, nodes wouldn't know about each other’s existence.
ROS Master is started using the command:
Importance:
c. Microprocessor
Key Features:
Applications:
Computers
Mobile phones
Control systems
Examples:
Main Steps:
1. Image Acquisition
2. Preprocessing (noise removal, enhancement)
3. Segmentation (separating objects)
4. Feature Extraction
5. Image Recognition
Applications:
Techniques:
Filtering
Morphological operations
Edge detection
e. Artificial Intelligence
Key Areas:
Machine Learning
Natural Language Processing
Robotics
Expert Systems
Applications:
Autonomous vehicles
Virtual assistants (Alexa, Siri)
Healthcare (diagnosis)
Finance (fraud detection)
Goals of AI:
Reasoning
Learning
Problem-solving
Perception
f. Raspberry Pi
Features:
ARM-based CPU
GPIO pins for interfacing with hardware
USB ports, HDMI output, Ethernet
Linux OS support (like Raspbian)
Applications:
DIY projects
Robotics
IoT (Internet of Things)
Educational learning
Advantages:
Affordable
Versatile
Open-source support
g. Arduino UNO
Features:
Applications:
Automation projects
Prototyping embedded systems
Robotics control systems
Sensor interfacing
Advantages:
Open-source
Easy to program (Arduino IDE)
Rich community support
h. ROS Nodes
In ROS, a node is a process that performs computation. Nodes are the basic
building blocks of a ROS-based robotic system.
Characteristics:
Benefits:
Modular development
Easy debugging
Code reusability
Examples:
i. ROS Messages
ROS messages are the way data is passed between nodes in ROS. A
message is a simple data structure containing fields.
Structure:
Use:
Importance:
Standardizes communication
Ensures consistency between publishers and subscribers
j. AI in Robotics
Applications:
Path planning
Object recognition
Natural language interaction
Adaptive control
Benefits:
Example:
k. Robot Automation
Types:
Advantages:
Increased productivity
Improved safety
Cost reduction over time
Technologies Used:
Sensors
Actuators
AI and Machine Learning
l. IR Sensor
Types:
Applications:
Obstacle detection
Line following robots
Remote controls
Motion sensing alarms
Working Principle:
Advantages:
Low cost
Easy to integrate
Reliable for short-range detection
2 marks answer
1. Write down the Laws of Robotics.
1. A robot may not harm a human being or, through inaction, allow a
human to come to harm.
2. A robot must obey the orders given by humans, except where such
orders conflict with the First Law.
3. A robot must protect its own existence as long as such protection does
not conflict with the First or Second Law.
The Arduino Uno board has 14 digital I/O pins (from D0 to D13). These pins
can be used either for input or output signals.
Object recognition
Face detection
Scene understanding
Image classification
without manual feature extraction.
ALE signal in 8051 is used to separate address and data when both are
shared on the same bus.
It helps in latching the lower byte of address from the multiplexed
address/data bus (P0).
18. Can you explain how platform-specific languages differ
from platform-independent languages?
A pixel (short for "picture element") is the smallest unit of a digital image.
Each pixel represents a single color or shade in an image. The resolution of
an image depends on the number of pixels.
Internal Components:
Working Process:
Conclusion:
The DHT11 sensor is an easy-to-use, low-cost solution for temperature and
humidity measurement. While it has some limitations in range and accuracy,
it is suitable for many basic applications in home automation and education.
1. Supervised Learning
o Definition: The robot learns from labeled data (input-output
pairs).
o Use in Robotics: Object recognition, pose estimation, and
predicting outcomes based on past data.
o Example: A robot learns to classify images of tools (hammer,
wrench) by being trained on labeled datasets.
2. Unsupervised Learning
o Definition: The robot learns patterns from unlabeled data.
o Use in Robotics: Clustering sensor data, anomaly detection, or
finding patterns in environments.
o Example: A cleaning robot groups rooms by usage patterns
(kitchen, bedroom) without labels.
3. Reinforcement Learning
o Definition: The robot learns by trial and error, receiving rewards
or penalties.
o Use in Robotics: Navigation, motor control, and real-time
decision-making.
o Example: A robotic arm learns the best way to pick up a cup by
maximizing grip success.
1. Perceive
2. Decide
3. Act
Internal Components:
Working Process:
1. Supervised Learning
o Definition: The robot learns from labeled data (input-output
pairs).
o Use in Robotics: Object recognition, pose estimation, and
predicting outcomes based on past data.
o Example: A robot learns to classify images of tools (hammer,
wrench) by being trained on labeled datasets.
2. Unsupervised Learning
o Definition: The robot learns patterns from unlabeled data.
o Use in Robotics: Clustering sensor data, anomaly detection, or
finding patterns in environments.
o Example: A cleaning robot groups rooms by usage patterns
(kitchen, bedroom) without labels.
3. Reinforcement Learning
o Definition: The robot learns by trial and error, receiving rewards
or penalties.
o Use in Robotics: Navigation, motor control, and real-time
decision-making.
o Example: A robotic arm learns the best way to pick up a cup by
maximizing grip success.
1. Perceive
2. Decide
3. Act
Traditional Image
Feature Computer Vision
Processing
To enhance or manipulate
To understand and interpret
Goal images without understanding
visual information.
their meaning.
Extracting high-level Performing operations like
information like object filtering, resizing, color
Focus
detection, classification, and adjustment, and edge
decision-making. detection.
Traditional Image
Feature Computer Vision
Processing
Uses mathematical operations
Uses machine learning, deep
Techniques like convolution, histogram
learning, and AI models.
equalization, thresholding.
Example Identifying a cat in an image. Sharpening a blurry image.
1. Nodes
o Small, modular programs that perform specific tasks.
o Example: A camera node processes image data; a motor node
controls wheels.
2. Master
o The central coordinator that registers nodes and manages
communication.
o Without the master, nodes cannot discover or talk to each other.
3. Topics
o Communication channels where nodes publish or subscribe
data.
o Example: A sensor node publishes data to the /temperature topic,
and a controller node subscribes to it.
4. Messages
o Data structures sent between nodes via topics.
o Example: A message might contain position, velocity, or sensor
values.
5. Services
o A way for nodes to request and receive information using a
client-server model (like a function call).
6. Parameter Server
o Stores configuration data (like robot dimensions or speed limits)
that nodes can access.
ROS Topics
Role in ROS:
Example Use:
A robot arm can be tested in Gazebo for path planning and collision
detection before being deployed physically.
Conclusion:
Applications in Industry:
Automobile manufacturing: Used for welding, painting, and
assembly of parts.
Electronics: For component assembly and testing.
Packaging: Automated packing and palletizing.
4. Cylindrical Robots
6. Polar Robots
Conclusion:
1. Sensors
o Purpose: Sensors help robots perceive their environment by
gathering data about temperature, pressure, position, light,
sound, etc.
o Examples: Cameras, accelerometers, LiDAR, ultrasonic sensors,
force sensors.
2. Actuators
o Purpose: Actuators are the components that perform the
movement of the robot. They convert energy (electric, hydraulic,
or pneumatic) into mechanical movement.
o Examples: Motors (DC, stepper, servo), hydraulic pistons,
pneumatic cylinders.
3. Controller
o Purpose: The controller acts as the brain of the robot,
processing inputs from sensors and providing control signals to
the actuators.
o Examples: Microcontrollers (e.g., Arduino, Raspberry Pi),
industrial robot controllers.
4. Power Supply
o Purpose: Supplies the necessary power to the robot’s
components (sensors, actuators, controller).
o Examples: Batteries, fuel cells, power converters.
5. End Effector
o Purpose: The part of the robot that directly interacts with the
environment to complete tasks.
o Examples: Grippers, welding torches, tools.
6. Body/Structure
o Purpose: The body is the frame or skeleton that supports the
components of the robot. It determines the robot's form and
mobility.
o Examples: Chassis, arms, joints, and legs.
1. Sensors:
o Robots have a variety of sensors, including visual, tactile, and
proximity sensors. These sensors allow the robot to "see" and
"feel" its environment. For example, a robot arm may use force
sensors to apply precise pressure when picking up an object.
2. Controller:
o The controller uses algorithms and software to process sensor
data and control the robot's movements. It can be programmed
to follow specific tasks, such as navigating a path or assembling
products.
3. Actuators:
o Actuators are like muscles in the robot, responsible for
movement. A robotic arm might have servo motors to move its
joints and DC motors to rotate its base.
4. End Effector:
o The end effector is the "tool" that interacts with the environment.
For example, in a welding robot, the end effector is the welding
torch, while in a robot designed to move packages, the end
effector might be a gripper.
Applications:
Applications:
Overview of Arduino:
Feature Description
Each Arduino board has a built-in microcontroller (e.g.,
Microcontroller
ATmega328P in Uno).
Can read inputs (from sensors) or send outputs (to
Digital I/O Pins
actuators).
Can read analog signals from sensors like temperature or
Analog Inputs
light sensors.
USB Interface Easy programming through a USB cable using Arduino IDE.
Hardware and software are freely available and
Open Source
customizable.
Wide
Huge online support and libraries for quick development.
Community
Steps in Working:
Application Description
Used in autonomous robots and vehicles for object
Obstacle Detection
avoidance.
Distance Measures distance to walls, objects, or people in
Measurement smart systems.
Detects liquid or solid levels in tanks (non-contact
Level Sensing
method).
Installed in cars to detect how close the vehicle is to
Parking Assistance
an obstacle.
Detects movement of objects or people in restricted
Security Systems
areas.
Conclusion:
Resistance Behavior:
Applications of LDRs:
Application Description
Automatic Street Turns lights ON at night and OFF during the day based
Lights on ambient light.
Solar Garden
Activates lighting circuits in low-light conditions.
Lamps
Light Meters Used in photography to measure light intensity.
Burglar Alarms Detects changes in light when an intruder crosses a
Application Description
light beam.
Line-Following
Helps robots detect dark or light paths on surfaces.
Robots
Example:
Pin
Name Function
No
9 RST Reset Pin: Active HIGH. Resets microcontroller.
Crystal Oscillator input: Provides clock signal (usually
18-19 XTAL1/2
11.0592 MHz).
External Access: If HIGH, accesses internal ROM; if LOW,
31 EA
uses external ROM.
30 ALE Address Latch Enable: Used for external memory interfacing.
29 PSEN Program Store Enable: Enables external program memory.
1–8 Port 1 General-purpose I/O (no alternate function).
10–17 Port 3 I/O + alternate functions (like Rx, Tx, INT, T0, T1).
21–28 Port 2 I/O or higher address lines (A8–A15).
Multiplexed address/data bus (A0–A7, D0–D7). Requires
39–32 Port 0
external pull-ups.
40 Vcc Power Supply (+5V).
20 GND Ground.
Component Description
Microcontroller ATmega328P – 8-bit AVR microcontroller
14 pins (D0 to D13), some with PWM support (D3, D5, D6,
Digital I/O Pins
D9, D10, D11)
Analog Inputs 6 pins (A0 to A5) for sensors like temperature, light, etc.
Power Pins 3.3V, 5V, GND, VIN
Crystal
16 MHz – provides timing for instruction execution
Oscillator
Reset Button Restarts the program on the microcontroller
Connects Arduino to PC for programming and serial
USB Interface
communication
Voltage
Maintains consistent voltage to the board
Regulator
Working of Arduino:
1. Program Writing: User writes code in the Arduino IDE using simplified
C/C++.
2. Uploading: Code is uploaded via USB cable to the Arduino.
3. Execution:
o Microcontroller reads input from pins (e.g., sensors).
o Processes logic based on program.
o Sends output signals to devices (e.g., LEDs, motors).
4. Loop: Code runs in a loop() repeatedly until reset or power-off.
Definition:
A control system is a set of devices or algorithms that governs the motion
or operation of a robot by using feedback from sensors or pre-programmed
inputs.
Component Function
Controller Processes input and sends control signals
Actuators Perform movement (e.g., motors, servos)
Sensors Provide data about environment or robot state
Feedback
Adjusts system based on output vs desired goal
Mechanism
Example:
In a robotic arm:
Block Diagram:
Example: In a robotic arm, the control system makes sure the joints move to
the correct angle as per the given input.
13. ii) Open and Closed Loop Control System
with Example (6 Marks)
Open-Loop Control System:
No feedback is used.
The system does not measure or correct its output.
Output depends only on input commands.
Example:
Example:
Comparison Table:
Open-Loop
Feature Closed-Loop System
System
Feedback Not used Used
Accuracy Lower Higher
Complexity Simple More complex
Cost Low Higher
Example Fan with timer Air conditioner with thermostat
14. i) Sensors Used in Designing a Vacuum
Cleaning Robot (6 Marks)
A vacuum cleaning robot (like a Roomba) uses various types of sensors to
clean autonomously and avoid obstacles.
Key Sensors:
Sensors act as the “eyes, ears, and skin” of a robot, enabling it to interact
with its environment intelligently.
Role of Sensors:
1. Perception:
o Sensors collect data about the environment (light, temperature,
motion, distance, etc.).
o Example: Camera detects a human; LIDAR maps a room.
2. Decision-Making:
o Robots process sensor data using algorithms or AI to make
decisions.
o Example: Avoid obstacles if ultrasonic sensor detects a wall.
3. Control:
o Sensors help in feedback control, allowing robots to adjust
their movements.
o Example: A line-following robot adjusts its wheels based on IR
sensor input.
Fundamental Steps:
1. Image Acquisition
o Capturing the image using a camera or sensor.
o Converts physical image to digital format.
2. Preprocessing
o Improves image quality by reducing noise, adjusting contrast,
etc.
o Common techniques: filtering, smoothing, resizing.
3. Image Enhancement
o Highlights important features (e.g., sharpening edges, improving
brightness).
4. Image Segmentation
o Divides the image into meaningful parts (e.g., objects,
backgrounds).
o Used in object detection and recognition.
5. Feature Extraction
o Identifies key information like shapes, colors, or textures from
the image.
6. Image Recognition / Classification
o Uses algorithms (including AI) to classify objects within the
image (e.g., detecting a face, a car, etc.).
7. Image Compression and Storage
o Reduces the size for efficient storage and transmission.
These steps are commonly used in robotics for object detection, navigation,
and manipulation.
15. ii) Basic Principles to Integrate Artificial
Intelligence into Robotics (6 Marks)
Integrating Artificial Intelligence (AI) into robotics helps machines learn,
reason, and act intelligently in dynamic environments.
How It Works:
Operator Description
Sobel Detects edges using horizontal and vertical gradients.
Prewitt Similar to Sobel, but slightly simpler.
Advanced multi-stage algorithm with noise reduction and
Canny
accurate detection.
Detects edges based on second-order derivatives (sensitive to
Laplacian
noise).
Applications:
Face detection
Object tracking in robotics
Medical imaging (e.g., detecting tumors)
Self-driving vehicles for lane detection
Pin
Name Function
No.
1-8 P1.0 - P1.7 Port 1: General-purpose I/O port.
9 RST Reset Pin: High pulse resets the microcontroller.
Port 3: I/O port with alternate functions (RxD, TxD, INT,
10-17 P3.0 - P3.7
T0, T1, WR, RD).
XTAL2,
18-19 Crystal oscillator pins (for clock input).
XTAL1
20 GND Ground.
21-28 P2.0 - P2.7 Port 2: Higher-order address bus (also I/O port).
Program Store Enable (used to read external program
29 PSEN
memory).
Address Latch Enable (used to latch address from
30 ALE/PROG
data).
External Access: 0 = use external ROM, 1 = use
31 EA/VPP
internal memory.
Port 0: Multiplexed low-order address/data bus (also
32-39 P0.0 - P0.7
I/O).
40 VCC Power supply (+5V).
Applications:
Robotics controllers
Embedded systems
Sensor interface units
Industrial automation
18. i) What is a Microcontroller? Explain the
Different Types of Microcontrollers (6 Marks)
What is a Microcontroller?
Types of Microcontrollers:
Type Description
8-bit Handles 8-bit data; simple control tasks. Example: 8051, AVR
16-
More precision and speed. Example: MSP430
bit
32-
High performance; used in complex systems. Example: ARM Cortex-M
bit
3. Based on Application:
Type Application
General Purpose Used in a wide variety of devices.
Embedded- Tailored for specific functions (e.g., motor control,
specific medical devices).
4. Popular Microcontrollers:
Component Function
Executes instructions and controls overall
CPU (ARM Processor)
processing.
Temporary memory for running programs (ranges
RAM
from 512MB to 8GB).
General Purpose Input/Output pins for connecting
GPIO Pins
sensors, LEDs, etc.
USB Ports Connect keyboard, mouse, and other USB devices.
HDMI Port Connects to display or monitor.
Camera Interface (CSI) Connects to Raspberry Pi camera module.
Display Interface (DSI) Connects to touchscreens or displays.
Stores operating system and files (acts as hard
SD Card Slot
drive).
Ethernet/WiFi/
Network communication and device connectivity.
Bluetooth
Power Supply Port Provides 5V power via USB-C or micro-USB.
Audio Jack Connects to headphones or audio output.
Applications:
Home automation
Robotics
IoT devices
Media centers
Educational projects
ROS Messages:
Importance:
Example:
Importance:
Ideal for tasks like “start motor,” “reset sensor,” or “get status.”
Enables controlled and synchronized execution of actions.
Component Description
Independent modules that perform computation (e.g.,
Nodes
camera node, motor controller node).
Channels for asynchronous, one-way communication (used
Topics
with messages).
Predefined formats for data exchange between nodes (e.g.,
Messages
Pose, Velocity).
Services Synchronous, two-way communication (request-reply).
Keeps track of all nodes, topics, and services. Acts like a
Master
central registry.
Component Description
Parameter Stores configuration data (e.g., robot name, max speed).
Server Accessible by all nodes.
Files used to record and playback ROS data (for debugging
Bags
and testing).
XML files used to start multiple nodes and set parameters at
Launch Files
once.
2. Robot Manipulators:
4. Humanoid Robots:
5. Service Robots:
ROS works with Gazebo and Rviz for simulating robotic environments.
Ideal for prototyping before real-world testing.
Example:
Advantages: