Introduction To Robotics
Introduction To Robotics
What is Robotics?
Robotics is the study of robots, machines designed to execute tasks. Robots can vary widely
in their capabilities, from simple automated machines like factory arms to complex humanoid
robots. For robots, we use sensors to interact with their environment, and actuators to move
or manipulate objects. Projects often involve designing and building robots to solve problems
or perform specific tasks.
What is a robot?
FATHER OF ROBOTICS
Isaac Asimov: Although not an actual inventor of robots, Isaac Asimov, as mentioned earlier,
is often referred to as the "father of robotics" in a metaphorical sense. His science fiction
writings and the introduction of the Three Laws of Robotics greatly influenced the public
perception and ethical considerations surrounding robotics.
The first digitally operated and programmable robot called Unimate was invented by
George Devol in 1954
i) Stationary robots
ii) Mobile robots
STATIONARY ROBOTS:
Fixed robots are valuable for their ability to enhance productivity, reduce
human error, and perform dangerous tasks in a controlled environment.
They play a crucial role in automating processes in various sectors,
contributing significantly to efficiency and safety.
MOBILE ROBOTS:
________________________________________________________________________
2. How do you think robotics helps improve life in industries like healthcare or
manufacturing?
________________________________________________________________________
3. If you could invent a robot, what job would you want it to do and why?
________________________________________________________________________________
1. Name the person known as the "Father of Robotics." What is his contribution to the
field? Name:
Purpose:
2. Name the first programmable robot. What was its main use?
Name:
Purpose:
3. Name two types of robots. What is the key difference between them?
Name:
Purpose:
III. Pick The Odd One Out
Your Answer:
Why:
2. Which component helps a robot sense its environment?
i) Actuator
ii) Sensor
iii) Processor
Your Answer:
Why:
Your Answer:
Why:
Electronics is the branch of physics that deals with the study of electron flow in circuits. It
has revolutionized the modern world by enabling the development of computers,
smartphones and telecommunication system.
Types of Materials
Good Conductor - Material that allows electricity to flow through them easily
Semi-Conductor - Material that partially allows the electricity to flow through it
Bad Conductor - Material that does not allow electricity to flow through them easily
Electronics Vs Electrical
Electrical deals with the flow of charge through metal conductors. A Circuit is a path for
electrons to flow through.
Imagine a water pipe! Electricity travels in circuits in a way that's like water flowing in a pipe.
Current (Amps): A tiny invisible electron is flowing through the circuit at a certain time.
Think of it like how much water is flowing through the pipe each second. A bigger current
means more electricity is flowing, just like a wider pipe or stronger pump could move more
water.
Voltage (Volts): This is like the water pressure in the pipe. Higher voltage means there's a
bigger push behind the electricity, which can make more things happen (like lighting up a
bulb). Think of it like squeezing the hose to make the water come out faster!
So, current is the amount of electricity flowing and voltage is the pressure that pushes it.
Together they make your electronic gadgets work!
Imagine you have a water hose. Electricity travels in circuits a bit like water in a hose but
instead of water, it's tiny invisible electrons.
www.cyberbots.in CopyRights@2024CyberBots
Resistors: Resistors are passive electronic component that limits the flow of current in a
circuit. These are like little tools we can put in a circuit to control the flow of electricity. The
unit of measurement for a resistor is the ohm, symbolized by the Greek letter omega (Ω).
BREADBOARD:
The breadboard is a white rectangular board with small embedded holes to insert electronic
components. It is commonly used in electronic projects. We can also say that breadboard is a
prototype that acts as a construction base of electronics.
The top and bottom holes of a row in a breadboard are connected horizontally, and the center
part is connected vertically.
Types of Breadboard:
Mini breadboards are the smallest type of breadboard. They are about the size of a credit card
and have 200 tie points.
Half-size breadboards are about the size of a business card and have 400 tie points.
www.cyberbots.in CopyRights@2024CyberBots
I. Think And Answer
1. Why do you think semiconductors are important in electronics, even though they don't conduct
electricity as well as metals?
________________________________________________________________________________
2. How would your daily life change if electronic components like resistors and circuits didn’t exist?
________________________________________________________________________________
3. If a breadboard allows you to build and test circuits without soldering, why might this be important for
beginners and engineers?
__________________________________________________________________________________
1. This component is used in circuits to control or limit the flow of electric current?
Name:
Purpose:
2. This tool allows you to easily build and test circuits without needing to solder components?
Name:
Purpose:
3. This type of material is used in electronics because it can partially conduct electricity and is
essential
for making diodes and transistors?
Name:
Purpose:
www.cyberbots.in CopyRights@2024CyberBots
IV. Choose From Similar Answers and State Why:
____________________ ____________________
www.cyberbots.in CopyRights@2024CyberBots
c) Stores energy
d) Limits current flow
www.cyberbots.in CopyRights@2024CyberBots
INTRODUCTION TO MICROCONTROLLER
WHAT IS A MICRO-CONTROLLER?
The central processing unit (CPU): The brain of the microcontroller, responsible for
processing instructions and data.
MEMORY:
Random-access memory (RAM): For storing data that is currently being used.
Read-only memory (ROM): Stores the program instructions that the microcontroller
executes. This can be Flash memory, which can be rewritten.
Input/output (I/O) pins: Allows the microcontroller to interact with the outside world. This
can include things like digital pins for reading ON/OFF signals, analog pins for reading
analog values/signal and serial communication ports for communicating with other devices.
www.cyberbots.in CopyRights@2024CyberBots
Applications of Microcontrollers
Consumer electronics: Cell phones, tablets, digital cameras, TVs, game consoles, etc.
Introduction to Arduino
THE HARDWARE:
There are many different Arduino boards available, each with varying features and
capabilities. The most popular board for beginners is the Arduino Uno. It has a good
range of digital and analog input/output pins that can be connected to various sensors
and actuators.
www.cyberbots.in CopyRights@2024CyberBots
KEY COMPONENTS OF Arduino
Microcontroller - ATmega328P:
This is the heart of the Arduino Uno. It's a powerful and versatile 8-bit microcontroller
responsible for processing instructions and data.
Power Supply:
USB Connector: The Arduino Uno can be powered either through a USB cable connected to
a computer or a separate DC power supply connected to the DC power jack (MAX 9V).
Power pins: The power pin on an Arduino Uno is where you connect the voltage source
(usually 5V or 3.3V) to provide power to the board. It's like the fuel line for your Arduino,
supplying the energy it needs to operate. The GND pin on an Arduino Uno is like an
electrical sink it's where negative charges flow to complete the circuit and keep everything
running smoothly.
www.cyberbots.in CopyRights@2024CyberBots
Power Supply:
USB Connector: The Arduino Uno can be powered either through a USB cable connected to
a computer or a separate DC power supply connected to the DC power jack (MAX 9V).
Power pins: The power pin on an Arduino Uno is where you connect the voltage source
(usually 5V or 3.3V) to provide power to the board. It's like the fuel line for your Arduino,
supplying the energy it needs to operate. The GND pin on an Arduino Uno is like an
electrical sink it's where negative charges flow to complete the circuit and keep everything
running smoothly.
14 Digital Pins: These pins can be configured as either inputs or outputs. They can read
digital signals (high or low voltage) from sensors or control digital devices like LEDs. Six of
these pins can also provide Pulse Width Modulation (PWM) output, which can be used to
control the brightness of LEDs or the speed of motors.
6 Analog Input Pins: These pins can read analog voltage signals from sensors like
temperature sensors or light sensors. The analog values are converted to digital values that
the microcontroller can understand.
www.cyberbots.in CopyRights@2024CyberBots
Communication:
USB Interface: Allows communication between the Arduino Uno and a computer for
programming and uploading code.
www.cyberbots.in CopyRights@2024CyberBots
THE SOFTWARE:
You write instructions for the Arduino board using the Arduino IDE (Integrated
Development Environment). This software provides a simplified version of C++ that makes it
easier to learn the program, especially for beginners. The IDE compiles your code into a
language that microcontroller can understand and then uploads it to the Arduino board.
Here are the step-by-step instructions to install Arduino IDE 2.3.2 on your computer:
3. On the download page, select the version of the IDE you want to download (in this case,
select 2.3.2).
4. Choose the appropriate operating system for your computer (Windows/mac) and click on
the download
link.
5. Once the download is complete, double-click on the downloaded file to start the
installation process.
6. Follow the prompts of the installation wizard. Choose your preferred language, and accept
the license agreement.
7. Choose the location where you want to install the IDE. The default location is usually the
best option.
8. Choose the components you want to install. You can leave the default components selected.
9. Click on the "Install" button and wait for the installation process to complete.
Initial Setup
Step 1:
When we download and open the application, a window will open like this
www.cyberbots.in CopyRights@2024CyberBots
Step 2:
We need to set up the environment using the Board bar, and select “Select other board and
port”
www.cyberbots.in CopyRights@2024CyberBots
We need to set up the environment using the Board bar, and select “Select other board and
port”
Step 3:
Then select the type of Arduino we want to program, in our case it’s the Arduino Uno and
select the correct port. Then click on the “ok” button.
www.cyberbots.in CopyRights@2024CyberBots
Arduino Programs: Sketches
Arduino programs are called sketches. These sketches are written in a simplified version of
C++. Unlike regular C++ programs, Arduino sketches have a specific structure that makes
them easy to write and understand.
setup() function: This function is like the initialization stage of your program. The code
inside setup() runs only once, right after the Arduino board starts up or resets. It's typically
used to:
loop() function: This function is the workhorse of your program. The code inside loop() runs
continuously, over and over again, as long as the Arduino has power. This is where you put
the code that controls what your Arduino does repeatedly. Think of it as the main instructions
that keep your program running.
Step 4:
After completing the code click on the Compile Icon. Once done click on the upload Icon.
www.cyberbots.in CopyRights@2024CyberBots
PROGRAM EXPLANATION
Each line ends with a semicolon (;). It is like a full stop, we should terminate every
statement with a semicolon.
Initially, we have to define (using the #define function) or initialize (using the int
keyword) the LED with its PIN.
We want to set the LED to output mode. We do this by calling a special function called
We’re dealing with an LED we need to set it to a constant called OUTPUT. When we
were working with a sensor or other input device it would be INPUT.
LED is connected to a digital pin which is the output mode, we use a special method
called digitalWrite (LED pin, HIGH/LOW)
The HIGH/LOW state indicates the ON/OFF of the LED
Here, delay() denotes the duration of the LED pin to be HIGH or LOW state.
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 1
BLINKING AN LED
AIM:
To create a simple Arduino circuit that makes an LED blink on and off .
COMPONENTS REQUIRED:
Arduino Boards
Led
Resistor (220Ω)
Connecting wires
CIRCUIT DIAGRAM
PROGRAM
www.cyberbots.in CopyRights@2024CyberBots
CONCLUSION:
Thus, the blinking LED circuit has been successfully created and tested
using Arduino UNO.
II. Who Am I
1. I am a tiny electronic component that glows when powered. Who am I?
→
2. I help define whether a pin should take input or give output. Who am I?
→
3. You write your sketches in me, and I turn them into code the Arduino understands. Who am I?
→
www.cyberbots.in CopyRights@2024CyberBots
III. Pick The Odd One Out
1. DOULP →
2. TTUPOU →
3. TDEI →
A R D U I N O X L
S C O D E P Q W R
U P L O A D Z E P
L E D L B F D X M
S K E T C H M P Y
O U T P U T K J E
R E S I S T O R A
www.cyberbots.in CopyRights@2024CyberBots
INTRODUCTION TO PUSH BUTTON
DEFINITION:
A momentary switch, also known as a momentary push button or momentary contact switch,
is a type of electrical switch that remains in its actuated state only for the duration it is being
pressed or held down. It returns to its original state as soon as the pressure is released.
WORKING PRINCIPLE:
APPLICATION:
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 2
INTERFACING PUSH BUTTON
AIM:
To interface a pushbutton with an Arduino board and control an LED using the pushbutton.
COMPONENTS REQUIRED:
CIRCUIT DIAGRAM:
PROGRAM:
www.cyberbots.in CopyRights@2024CyberBots
CONCLUSION:
www.cyberbots.in CopyRights@2024CyberBots
I. Think And Answer
1. Why do you think a resistor is needed when connecting a pushbutton to an Arduino? What might happen
if it is not used?
2. How would you modify the circuit or code if you wanted the LED to turn OFF when the button is pressed and turn
ON when it is released?
3. Can you think of a real-life device that uses more than one pushbutton? How do you think the system
detects which button was pressed?
1. A microcontroller board used to read inputs and control outputs in electronic project?
Name:
Purpose:
Name:
Purpose:
3. A plastic board with holes used to build and test temporary circuits without soldering?
Name:
Purpose:
3. ) Calculator - Video game controller - Light switch on the wall - Computer keyboard
www.cyberbots.in CopyRights@2024CyberBots
b) digitalWrite()
c) analogRead()
3. Which data type is commonly used to store a pushbutton state (HIGH or LOW)?
a) int
b) float
c) String
int buttonPin = 2;
void setup() {
pinMode(buttonPin, INPUT)
pinMode(ledPin, OUTPUT);
void loop() {
if (buttonState = HIGH) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW); }}
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 3
AIM:
COMPONENTS REQUIRED:
LEDs - 5Nos
Resistor (1KΩ) - 5Nos
Arduino board (e.g., Arduino Uno)
Jumper Wire
Breadboard
USB cable
CIRCUIT DIAGRAM:
www.cyberbots.in CopyRights@2024CyberBots
PROGRAM:
CONCLUSION:
Thus the LED chaser circuit activity has been finished successfully.
www.cyberbots.in CopyRights@2024CyberBots
I. Think and Answer
1. Why is the ATmega328P microcontroller considered the "brain" of the Arduino Uno?
________________________________________________________________________
2. What would happen if you connect a power supply with a voltage higher than the recommended
range (e.g., 12V instead of 9V) to the Arduino Uno?
_____________________________________________________________________________
3. Explain the role of the setup() function in an Arduino sketch. What would happen if it were
omitted?
____________________________________________________________________________
1. Name the microcontroller used in the Arduino Uno and state its purpose.
Name:
Purpose:
2. Name the component that allows the Arduino Uno to communicate with a computer and describe its
purpose.
Name:
Purpose:
3. Name the type of program used to program Arduino boards and explain its purpose
Name:
Purpose:
1. Random Access Memory (RAM) – Read-Only Memory (ROM) – USB Interface – Flash Memory
2. 14 Digital Pins – 6 Analog Input Pins – 6 PWM Output Pins – 10 Pins for Communication
www.cyberbots.in CopyRights@2024CyberBots
3. Arduino Uno – Resistor – LED – Mouse
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
www.cyberbots.in CopyRights@2024CyberBots
INTRODUCTION TO IR SENSOR
WHAT IS A SENSOR?
A sensor is a device that detects or measures changes in its surrounding environment and
provides information about those changes.
Sensors can be found in everyday objects like smartphones, cars, and home appliances. They
work by detecting changes in temperature, pressure, light, motion, and many other physical
properties, depending on the type of sensor.
WHAT IS AN IR SENSOR?
IR rays
IR (Infrared) rays are a type of electromagnetic radiation that are invisible to the naked eye.
These rays have a longer wavelength than visible light, which means they have lower energy
and cannot be seen by humans.
IR Sensor
WORKING PRINCIPLE:
Emitter: In an IR sensor system, there's typically an IR emitter that emits infrared radiation.
Detector: The sensor also contains a detector that receives the emitted or reflected IR radiation.
Response to IR Radiation: When an object is in the proximity of the sensor, it either emits
or reflects IR radiation.
www.cyberbots.in CopyRights@2024CyberBots
APPLICATIONS OF IR Sensor?
Automatic door openers: These use active IR sensors where an invisible beam of IR light is
emitted. When someone interrupts the beam, the sensor detects the change and triggers the
door to open.
Remote controls: Many remote controls use IR LEDs to transmit signals to electronic
devices like TVs or music players. The receiver on the device detects the specific IR pattern
and carries out the corresponding function.
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 4
SECURITY ALARM
AIM:
COMPONENTS REQUIRED:
IR Sensor
Buzzer
Arduino board (e.g., Arduino Uno)
Jumper Wire
Breadboard (if needed)
USB cable
CIRCUIT DIAGRAM:
PROGRAM:
www.cyberbots.in CopyRights@2024CyberBots
CONCLUSION:
www.cyberbots.in CopyRights@2024CyberBots
I. Think and Answer
1. How do infrared sensors differ from visible light sensors in terms of the type of radiation they detect?
___________________________________________________________________________________
2. Why do IR sensors require a specific detector to receive the infrared radiation? What would happen if
the detector was not present?
___________________________________________________________________________________
3. Why is it important to consider interference from other light sources when using IR sensors in
applications like security alarms?
__________________________________________________________________________________
Name:
Purpose:
Name:
Purpose:
3. A plastic board with holes used to build and test temporary circuits without soldering?
Name:
Purpose:
www.cyberbots.in CopyRights@2024CyberBots
b) IR Emitter
c) Photodiode
int irPin = 3;
int buzzerPin = 8;
void setup() {
pinMode(irPin, INPUT);
pinMode(buzzerPin, OUTPUT);
}
void loop() {
if (digitalRead(irPin) = HIGH) {
digitalWrite(buzzerPin, HIGH);
}
else {
digitalWrite(buzzerPin, LOW);
}
www.cyberbots.in CopyRights@2024CyberBots
INTRODUCTION TO LDR
WHAT IS LDR?
An LDR, or Light Dependent Resistor, is a type of sensor that changes its electrical resistance
based on the amount of light it detects.
WORKING PRINCIPLE:
Imagine a tiny photocell made of a light-sensitive material like cadmium sulfide. In darkness,
this material has a high electrical resistance, which means poor conductivity. However, when
light hits the LDR, the material's internal structure changes, allowing electrons to flow more
easily. This results in a significant decrease in resistance.
APPLICATIONS:
Camera Light Meters: Early cameras used LDRs to measure ambient light and
adjust the exposure settings automatically.
Automatic brightness control for displays: LDRs could be used in conjunction with
other components to automatically adjust the brightness of displays based on ambient
light, improving readability and battery life.
www.cyberbots.in CopyRights@2024CyberBots
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 5
COMPONENTS REQUIRED:
CIRCUIT DIAGRAM:
www.cyberbots.in CopyRights@2024CyberBots
PROGRAM:
CONCLUSION
Thus the fridge door alarm circuit has been finished successfully.
www.cyberbots.in CopyRights@2024CyberBots
I. Secret Spy Connection
1. I detect light, and when there’s none, I help trigger the buzzer. Who am I connected to?
A) LED
B) Buzzer
C) LDR
D) Switch
2. In the fridge door alarm system, the buzzer will sound when the LDR senses:
A) Full daylight
B) Very low light (darkness)
C) Constant voltage
D) High resistance
3. When the fridge door opens, light hits the LDR. What happens to the resistance?
A) It increases
B) It decreases
C) Stays the same
D) Turns into voltage
L D R E M Q W E L P
I G H T K A S N O X
R E S I S T O R L T
S E N S O R A P A E
D A R K N E S S D M
C I R C U I T B K J
A L A R M G R V E P
www.cyberbots.in CopyRights@2024CyberBots
III. Pick The Odd One Out
1. Streetlight system – Remote control – Camera light meter – Display brightness adjuster
3. Streetlight that turns on at night - Camera that adjusts to light - Remote control for a TV -
Display that gets brighter in sunlight.
int buzzer = 8;
void setup() {
pinMode(ldrPin, INPUT);
pinMode(buzzer, OUTPUT);
}void loop() {
www.cyberbots.in CopyRights@2024CyberBots
int ldrValue = digitalRead(ldrPin);
digitalWrite(buzzer, HIGH);
} else {
digitalWrite(buzzer, LOW);
www.cyberbots.in CopyRights@2024CyberBots
WORKING WITH SOUND SENSOR
WHAT IS A SOUND SENSOR?
A sound sensor is a device that detects the presence and intensity (loudness) of sound waves in
its environment. It converts these invisible pressure fluctuations into an electrical signal that
can be processed by electronic circuits.
Features:
Sound Detection: The KY-037 module can detect sound or sound intensity in its
vicinity.
Analog Output: It typically provides an analog output signal that is proportional to the
detected sound level.
Adjustable Sensitivity: Some versions of the KY-037 module come with a
potentiometer that allows users to adjust the sensitivity of the sensor.
Operating Voltage: It operates within a specific voltage range, usually around 3.3V to
5V.
WORKING PRINCIPLE
The working principle of sound sensors depends on converting the physical movement caused
by sound waves into an electrical signal. It has a thin diaphragm that vibrates when sound
waves hit it. The way this vibration is converted to an electrical signal depends on the
microphone's design.
Condenser Microphone: Changes in the distance between a thin diaphragm and a charged
back plate due to vibration affect the capacitance, which in turn affects the voltage output.
Dynamic Microphone: A coil of wire attached to the diaphragm moves within a magnetic field when the diaphragm
vibrates. This movement induces a current in the coil due to electromagnetic induction
www.cyberbots.in CopyRights@2024CyberBots
APPLICATIONS OF SOUND SENSOR
Simple Sound Alarm: You can program your Arduino to trigger an alarm (sound an
LED or buzzer) when the sound level detected by the microphone exceeds a certain
threshold.
Audio Recording (with additional hardware): While the KY-037 itself cannot
directly record audio, it can be used in conjunction with an SD card module or other
audio storage shield to capture sound wave data for simple recording applications on
your Arduino.
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 6
To create a sound-activated LED blinker using an Arduino Uno and a sound sensor
COMPONENTS REQUIRED:
CIRCUIT DIAGRAM:
www.cyberbots.in CopyRights@2024CyberBots
PROGRAM:
CONCLUSION:
Thus the class room noise indicator activity has been finished successfully.
www.cyberbots.in CopyRights@2024CyberBots
I. Connection Riddle
1. I connect the sound sensor's analog output to this pin on Arduino to read sound levels. What am I?
→
2. I bring power to all the components. Without me, nothing works. I’m red on the breadboard. Who
am I?
→
3. I’m the common ground for all electronic connections. Find me on the Arduino and the sound
sensor. Who am I?
→
A B
1. Which of the following is the correct path for connecting a sound-activated LED circuit?
A) Sound Sensor → LED → Battery
B) Battery → LED → Sound Sensor
C) Battery → Sound Sensor → Arduino → LED
D) Arduino → Battery → Sound Sensor → LED
www.cyberbots.in CopyRights@2024CyberBots
V. Build And Boost
If you build a classroom noise indicator system, in what type of robot or environment could you use it?
What important work will the robot or system be able to do with the help of the sound sensor?
1.The sound sensor is connected to the Arduino using the __________ (A0 / D0) pin for signal reading.
2.The number of LEDs connected in the circuit to indicate noise levels is __________.
3.The resistor connected to each LED helps to __________ the current flowing through it.
www.cyberbots.in CopyRights@2024CyberBots
WORKING WITH RAIN DROP SENSOR
WHAT IS A RAINDROP SENSOR?
A raindrop sensor, also known as a rain sensor or a rain detector, is a device used to detect
rainfall or the presence of water.
It sends out a beam of infrared light that, when water droplets are on the windshield, is
reflected back at different angles. This tells the system to activate the wipers, as well as
adjust wiper speed and frequency based on the intensity of the precipitation combined with
the vehicle's speed.
APPLICATIONS
Weather Monitoring
Automated Irrigation
Systems
Smart Home Technology
Industrial Applications SENSOR MODULE
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 7
COMPONENTS REQUIRED:
Raindrop Sensor
Buzzer
Arduino board (e.g., Arduino Uno)
Jumper Wires
Breadboard (if needed)
USB cable
CIRCUIT DIAGRAM:
PROGRAM:
www.cyberbots.in CopyRights@2024CyberBots
CONCLUSION:
Thus the rain detection system activity has been finished successfully.
www.cyberbots.in CopyRights@2024CyberBots
I. Think And Answer
______________________________________________________________________________
2. Why does the resistance change when a raindrop falls on the sensor?
______________________________________________________________________________
_____________________________________________________________________________________
www.cyberbots.in CopyRights@2024CyberBots
B) Smart rain
C) Rain-sensing
D) Security
1. Name the sensor used to detect rain and state its use.
2. Name the two main parts of a raindrop sensor board.
3. What signal is produced when the sensor detects rain?
a. Sensor Board
b. Analog Output Pin
c. VCC Pin
d. GND Pin
www.cyberbots.in CopyRights@2024CyberBots
INTRODUCTION TO MOTOR DRIVER
What is the L298N Motor Driver?
The L298N motor driver is a type of electronic board that helps control the speed and
direction of motors. Imagine you have a small robot with wheels; the L298N can help you
decide how fast each wheel moves and in which direction.
Automate Systems: It can be used in systems where things need to move automatically, like
a small automated drawbridge or a fan that turns towards you.
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 8
To build a circuit for a miniature washing machine using Arduino and L298N motor driver.
COMPONENTS REQUIRED:
CIRCUIT DIAGRAM:
www.cyberbots.in CopyRights@2024CyberBots
PROGRAM:
CONCLUSION:
Thus the miniature washing machine system activity has been finished successfully.
www.cyberbots.in CopyRights@2024CyberBots
I. Identify The Components And Describe Its Function
__________________________________________________________________________________
__________________________________________________________________________________
1. Draw the circuit symbol for a DC motor used in the miniature washing machine.
www.cyberbots.in CopyRights@2024CyberBots
IV. Find – Who Am I?
1. I control the direction and speed of motors. I take signals from a microcontroller and send power to
motors. Who am I?
→
2. I spin to move something in a circuit and I’m often found with a wheel. Who am I?
→
3. I act as the brain of the project and can be programmed to run electronics. Who am I?
→
V. Crossword
Across
Down
2. Controls speed and direction of motors.
www.cyberbots.in CopyRights@2024CyberBots
INTRODUCTION TO PIR SENSOR
A PIR (Passive Infrared) sensor is a type of sensor used to detect motion. It works by sensing infrared
radiation, which is emitted by warm objects like humans and animals. When an object with a different
temperature (such as a person) moves in or out of the sensor's range, the sensor detects the change in
infrared energy. This change triggers the sensor to send a signal, indicating motion.
PIR sensors are commonly used in security systems, automatic lighting, and other applications where
detecting the presence or movement of people or animals is necessary. They are called "passive" because
they don't emit any signals; instead, they only detect the infrared radiation from other sources.
Infrared Radiation Detection: All objects with a temperature above absolute zero emit infrared radiation
(heat). The amount of infrared radiation depends on the temperature of the object. Humans and animals
typically emit infrared radiation at around 37°C (98.6°F), which is detectable by the sensor.
Sensor Components: A typical PIR sensor consists of a sensor element (usually a pyroelectric material)
and a lens called a Fresnel lens. The pyroelectric material detects the infrared radiation, while the fresnel
lens focuses the infrared radiation from the surrounding environment onto the sensor.
Field of View: The fresnel lens is designed to create multiple detection zones, so when an object (like a
person) moves through these zones, the sensor will detect the change in infrared radiation from the
different areas.
www.cyberbots.in CopyRights@2024CyberBots
Detection of Motion: When a person or animal moves within the sensor's field of view, the infrared
radiation in the sensor’s detection area changes. The pyroelectric sensor reacts to this change in radiation.
If the infrared radiation detected by the sensor increases or decreases (which happens when something
moves into or out of the sensor’s range), it creates a small electrical signal.
Signal Processing: This electrical signal is then processed by the sensor's circuit, which determines
whether the detected change is due to motion (rather than, say, a change in temperature caused by
something like a passing cloud or a breeze).
Triggering Action: If the sensor determines that the change in infrared radiation is caused by motion
(such as a person moving across the sensor’s field), it sends a signal to trigger an action. This action could
be turning on a light, triggering an alarm, or activating another device.
In short, PIR sensors detect infrared radiation changes due to movement and then trigger an action, making
them highly useful for security and automation applications.
APPLICATIONS:
1. Security Systems – Used in motion detectors for alarms and surveillance cameras.
2. Automatic Lighting – Turns lights on when motion is detected, commonly used in outdoor and
hallway lighting.
3. Energy-Saving Systems – Helps in automating HVAC (heating, ventilation, and air conditioning)
systems by detecting occupancy.
4. Smart Home Automation – Used in smart devices to detect movement and trigger actions.
5. Automatic Doors – Found in shopping malls and offices to open doors when movement is
detected.
6. Robotics – Helps robots navigate by detecting human presence or movement.
7. Animal Deterrents – Used in farms and gardens to trigger alarms or sprinklers when animals
approach.
8. Counting People – Installed in public places to track the number of people entering and exiting an
area.
9. Hand Dryers & Faucets – Used in washrooms for touchless operation of hand dryers and taps.
10. Health Monitoring – Integrated into medical equipment to monitor patient movement.
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 9
AIM:
To build a circuit for a motion activated security light using Arduino Uno and PIR sensor.
COMPONENTS REQUIRED:
Breadboard
Jumper Wires
Resistor
Arduino UNO
CIRCUIT DIAGRAM:
www.cyberbots.in CopyRights@2024CyberBots
PROGRAM:
CONCLUSION:
Thus the activity motion activated security light has been finished successfully.
www.cyberbots.in CopyRights@2024CyberBots
I. Think And Answer
II. Who Am I?
1. I detect infrared radiation but do not emit any signal myself. Who am I?
2. I am a special type of lens used in PIR sensors to focus infrared light. Who am I?
3. I am a small device that can turn on lights automatically when someone enters a room. Who am I?
1. NRSPEOS →
2. DAOINUR →
3. ITOCDEMTOE →
www.cyberbots.in CopyRights@2024CyberBots
V. Label Parts Of Components
P I R E T W R S J K T
S E N S O R G L R P Y
U B R E A D B O A R D
M U L E D H B V P E I
P A T Y J U M P E R F
E U S N M I O A R B G
R K L A R D U I N O S
A M B I E O T I E X T
D Z I O T E P V C D O
B T O P V A H R N K B
R A S F J U L D P A P
www.cyberbots.in CopyRights@2024CyberBots
ACTIVITY 10
AIM:
To build a circuit for a light follower bot using Motor, Motor driver and LDR sensor.
COMPONENTS REQUIRED:
Arduino Uno
LDR
Resistors
Motor Driver Module (L298N)
DC Motors
Wheels
Chassis
Jumper Wires
CIRCUIT DIAGRAM:
www.cyberbots.in CopyRights@2024CyberBots
PROGRAM:
www.cyberbots.in CopyRights@2024CyberBots
www.cyberbots.in CopyRights@2024CyberBots
CONCLUSION:
Thus the activity light follower bot has been finished successfully.
www.cyberbots.in CopyRights@2024CyberBots
I. Puzzle It Out
1. I can see light and help the robot decide where to go, but I am not a camera. What am I?
2. If both LDR sensors detect darkness, what movement will the bot perform?
3. Arrange these steps in the correct order: (A) Connect motors to driver → (B) Write the Arduino
code → (C) Connect LDR sensors → (D) Upload the code to Arduino.
II. Crossword
1. Across: Device that controls motors by receiving signals from Arduino. (11 letters)
2. Down: A light-sensitive component used in the bot. (3 letters)
3. Across: The brain of the light follower bot. (7 letters, starts with "A")
1. Match the motor driver with its correct label: (A) L298N (B) L293D (C) LDR
2. Find the secret link: What connects LDR sensor and analog input?
3. Secret Clue: Identify two components that must be powered properly for the bot to move.
www.cyberbots.in CopyRights@2024CyberBots
3. Identify the two sensors attached to the Arduino Uno.
1. If one motor wire is wrongly connected to the 5V pin instead of the Motor Driver, what problem
would occur?
2. If both LDR sensors are connected to the same analog pin, what issue will the bot face?
3. The battery is connected but the GND (ground) wire is missing — what will happen to the bot?
1. Modify the bot to make it stop completely if no light is detected on both LDR sensors.
2. Add a buzzer to your bot. When it finds bright light, it should beep. How will you do it?
3. If you want your bot to move faster, which part would you change: (A) Motor Driver (B) Motors
(C) Arduino Board?
www.cyberbots.in CopyRights@2024CyberBots
www.cyberbots.in CopyRights@2024CyberBots