Robotics Class Notes
Robotics Class Notes
A robot is a machine that can do tasks on its own, or with some help from humans.
Robots can move, pick up things, or even talk, depending on how they are built.
Many robots have sensors to see, hear, or feel what's around them.
Robots have a "brain" (like a computer) that helps them make decisions based on their program and
what their sensors tell them.
Robots come in many forms, like those that look like humans, cars that drive themselves, or machines
that work in factories.
2. Types of Robots
Industrial Robots
Used in factories for tasks like assembly, welding, and pain ng.
Service Robots
Used for tasks like cleaning, delivering goods, and assis ng in healthcare.
Mobile Robots
These robots can move around in their environment, including autonomous cars and drones.
Humanoid Robots
Robots that resemble human beings and can perform tasks like humans.
Sensors: Sensors allow the robot to gather informa on from its environment. Examples include
cameras, ultrasonic sensors, and touch sensors.
Actuators: Actuators are the components that move the robot or its parts. These include motors and
servos.
Control System: The brain of the robot, typically a microcontroller or computer, that processes sensor
data and controls actuators.
Power Supply: Robots require a power source, such as ba eries or solar panels.
1. Hardware: Hardware refers to the physical components of a computer or any other electronic device that
you can touch and see.
Examples:
Input Devices: Keyboard, mouse, touchscreen, microphone (used to give commands to the computer).
Output Devices: Monitor, printer, speakers (used to display or output the results of the computer's
processing).
Processing Unit: Central Processing Unit (CPU), o en called the "brain" of the computer, processes
data and instruc ons.
Storage Devices: Hard drive, SSD (used to store data and programs permanently).
Memory: RAM (Random Access Memory), temporarily stores data and instruc ons that the CPU needs
while working.
2. So ware: So ware is a collec on of instruc ons or programs that tell the hardware what to do. It is the non-
physical part of a computer.
Types of So ware:
System So ware: The most important so ware that manages hardware and so ware
resources, examples include Windows, macOS, and Linux.
Applica on So ware: Programs that help users do specific tasks like word processing
(Microso Word), browsing the internet (Google Chrome), or playing games.
Programming allows us to create so ware, apps, websites, and games. It's how we make computers do
things, from simple tasks like adding numbers to complex ones like controlling a robot.
Computer Languages:
To communicate with a computer, users need a language that the computer can understand. Different
languages have been developed to perform various tasks on a computer. These languages are mainly divided
into two categories based on how they are interpreted.
Low-Level Languages
Low-level languages are closer to the machine's hardware and offer less abstrac on. They provide
more control over hardware but are harder to read and write.
High-Level Languages
High-level computer languages are designed to be easy to understand, using English-like words and
symbols.
Each instruc on wri en in a high-level language is need to convert into machine language, which the
computer can understand and execute.
The number "0" means no electric signal, and "1" means there is an electric signal. Computers recognize these
signals and understand machine language.
These languages are used to write algorithms and logic to perform specific tasks.
Execution Time Takes time to translate before running, but Runs the program as it translates, which can be slower.
the program runs faster once translated.
Error Handling Shows all errors after translating the whole Shows errors one at a time, as it runs through the
program. program.
Use Case Good for creating software that needs to Good for testing and debugging code easily.
run quickly.
Development You need to recompile every time you
You can test parts of the code without recompiling.
Process make changes.
File Extension
A file extension is a suffix at the end of a file name that indicates the type of files and folders.
Examples:
.c – for C- language
1. What is C-Language?
C is a general-purpose, middle-level and procedural programming language that was developed in 1972 by
Dennis Ritchie at AT&T's Bell Labs in the USA.
It's widely used because it’s simple, efficient, and provides control over the system's resources. C is o en
considered the founda on for many other programming languages like C++, Java, and Python.
1. General-Purpose: It means that C can be used to create a wide variety of programs, from opera ng
systems to simple games, making it suitable for almost any type of so ware development.
3. Procedural: This means that C programs are built around procedures, also known as func ons, which
are blocks of code that perform specific tasks. These func ons are called and executed in a specific
order to complete a program.
System Programming: C is used for developing opera ng systems, embedded systems, and other
system-level applica ons.
Speed and Efficiency: Programs wri en in C are fast and efficient, making it ideal for resource-
constrained applica ons.
Variable:-
A variable is a name given to a memory
loca on in Programs that holds a value.
Basic Programs:
#include <stdio.h>: Includes the library
for input/output func ons like prin .