Robotics
Robotics
Chapter 1
Law of Robots
Law of Robots
• Robotics involves designing machines that can
“sense, think and act” by themselves. It is a
continuous cycle where you sense the
world, think about it, and act – and your
action will change the world, so
you sense again, think and act.
Chapter 2
1. Resistor
Resistors are considered to be the most used and the most
important component of all the electronic circuits.
Working
It is used to drop the voltage.
The working of a resistor can be explained with the similarity of
water flowing through a pipe. Consider a pipe through which
water is allowed to flow. If the diameter of the pipe is reduced,
the water flow will be reduced.
Unit of resistance
The SI-unit of resistance is Ohm [Ω]. The higher multiple and
sub-multiple values of ohm is kilo ohms [KΩ], mega ohms [MΩ]
and so on.
Circuit Symbol And Image of Resistor
Colour code table
Colour code
The value of the resistance is found out by colour coding. The resistors have
a band of colours shown in their outer covering. Here are the steps to
determine the value of the resistor.
1. All resistors have three bands of colours, followed by a space and then a
fourth band of colour. The fourth band of colour will be brown, red, gold or
silver.
2. To read the colours turn it to the position such as the three consecutive
colours come on the left and then the space and the rest of the colours.
3. The first two colours from the left indicate the first two digits of the value.
The third colour represents the digital multiplier. That is, it indicates how
much you have to multiply the first two numbers with. Thus if you have a
resistance with the first three colours being brown, black and red, the value
of resistance is 10*100 = 1000 ohms or 1K.
4. The last band, after the space indicates the tolerance of the resistor. This
indicates the range of accuracy of the resistor. Thus, along with the three
colours above, if the fourth colour is gold, it means you have a tolerance
between +/-5%. Thus the actual value of the resistance can be between 950
Ohms and 1K.
2. Led
• LED (Light Emitting Diode) is basically a small light
emitting device that comes under “active”
semiconductor electronic components.
• It’s quite comparable to the normal general purpose
diode, with the only big difference being its capability to
emit light in different colors.
• The two terminals (anode and cathode) of a LED when
connected to a voltage source in the correct polarity,
may produce lights of different colors, as per the
semiconductor substance used inside it.
Circuit Symbol And Image Of Led
Chapter 3
Arduino UNO
What Is The ARDUINO ?
The Arduino Uno is an open-source microcontroller board based on
the Microchip ATmega328P microcontroller .
The board is equipped with sets of digital and analog input/output (I/O)
pins that may be interfaced to various expansion boards (shields) and other
circuits.
void setup()
{
pinMode (13, OUTPUT); // assign the output pin
}
void loop()
{
digitalWrite(13,HIGH); // HIGH = Led On
delay(2000);// for 2 sec. delay
digitalWrite(13,LOW); // LOW = Led Off
delay(2000);
}
2. Led on off using switch case
void setup()
{
pinMode (4, OUTPUT); // assign the output pin
pinMode (7, INPUT); // assign the input pin
}
void loop()
int s=digitalRead(7);
{
If ((s==HIGH))
{
digitalWrite(4,HIGH);
}
Else If ((s==LOW))
{
digitalWrite(4,LOW);
}
}
Chapter 6
IR sensor
(infrared sensor)
WORKING :-
An infrared sensor is an electronic instrument that is used to sense
certain characteristics of its surroundings.
It does this by either emitting or detecting infrared radiation.
Infrared sensors are also capable of measuring the heat being emitted by an
object and detecting motion.
IR Transmitter – IR LED
IR Receiver – PD (PHOTO DIODE)
Chapter 7
Transistor
void setup()
{
pinMode (4, OUTPUT); // input 1
pinMode (5, OUTPUT); // input 2
}
void loop()
{
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
delay(2000);// for 2 sec. delay
digitalWrite(4,LOW);
digitalWrite(5,LOW);
delay(2000);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
delay(2000);
}
L293D Motor Driving IC
Obstacle Avoider Robot
void setup() {
pinMode(7,INPUT); // for sensor
//Right motor audrino to motor Drive
pinMode(3,OUTPUT);
pinMode(4,OUTPUT); //Right motor audrino to motor Drive
pinMode(5,OUTPUT);
pinMode(6,OUTPUT); //left Motor Arduino motor Drive
}
void loop(){
int l1=digitalRead(7); //left sensor input
if((l1==LOW))
{
digitalWrite(3,HIGH);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
}
else if((l1==HIGH))
{
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(2000);
digitalWrite(3,LOW);
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
digitalWrite(6,HIGH);
delay(2000);
digitalWrite(3,HIGH);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(2000);
}
}