Saini Notes
Saini Notes
What is robotics?.....................
.What is a robot?.......................
MANUAL AUTOMATIC
Robots that work by remote control under Robots that can work almost entirely
individual commands independently and require only a few
preset commands.
..INFO ABOUT ROBOTICS (ESSENTIAL)...........
HUMANS ROBOTS
● Types of Robots-
- Industrial Robots- material handling, welding, inspection, improving
productivity, lab appli.ions.
- Mobile Robots- Robots that can move around using legs, tracks or wheels. Eg. In
1979, a nuclear accident in the USA caused a leak of radioactive material and led
to the production of special robots which could handle radioactive material.
- Edu.ional Robots- Robotic kits are used extensively in edu.ion. Eg. Robolab
- Domestic Robots- Programmed to do things like talking, walking, dancing etc. It
is designed to perform:
1. Household tasks
2. Modern toys
● Robot Components
Manipulator Main body of the robot (links, joints, other structural element of the
robot)
End Effector The part that is connected to the last joint hand of a manipulator
Actuators Muscles of the manipulator which provide the power for the
movement purpose in the robot. (servomotor, stepper motor, dc
motor, bo motor, pneumatic and hydraulic cylinder)
● End Effectors-
- In robotics, an end effectors is the device at the end of the robotic arm, designed
to interact with the environment
- End effectors may consist of a gripper or a tool. The gripper can be of two, three
or even five fingers.
CONTROLLER PROCESSOR
https://www.shiksha.com/online-courses/articles/difference-between-microprocessor-
and-microcontroller/
..ARDUINO UNO.....................
● Arduino Uno has 14 digital pins and 6 analog pins (which can accept values from
A0 to A5).
● It contains a microcontroller called Atmega 328p.
● It can operate at 7-12 volts.
● 0 digital pin works RX receiver.
● The 1st pin is a TX transmitter.
..ULTRASONIC SENSOR.................
An ultrasonic sensor is a device that can measure the distance of an object by using
sound waves. It measures distance by sending out a sound wave at a specific frequency
and waits for that sound wave to bounce back. By recording the time taken between the
sound wave being generated & the sound wave bouncing back, it is possible to calculate
the distance between the sensor and the object. Eg. HC-SR04.
- Each ultrasonic sensor has a GND and a VCC- 5v (most operated 3.5-5v)
- Echo pin is used to calculate the distance
- Sound waves are generated when trigger is pressed
HC-SR04.
....ESP8266/ NODEMCU.................
● Has 1 analog pin.
● Has 9 digital pins.
● Master Output Slave Input (MOSI)- Transmits data to subnode from main.
● Master Input Slave Output (MISO)- Transmits data from subnode to main.
● RST- Reset Pin (Most important Least Used) : Re-executes the command.
● Used to give any microcontroller access to your WiFi network.
Robot
—-------> Electronics
—-------> Mechanical <- - - - Program
—-------> Computer
● Programming gives commands to the entire machine/ device. It plays the role of
the brain in machines.
.ARDUINO IDE......................
● The basic structure of the Arduino Programming Language is fairly simple & runs
in at least 2 parts. These 2 required parts or functions, enclose blocks of
statement
- Void setup () }
//set up motors,sensors etc
{
- void loop () }
//get info from sensors,send commands to motors
{
.Declaring a Variable....................
● The setup section is used for assigning input and outputs (Examples: motors,
LEDs, sensors etc) to put on the Arduino
● It also specifies whether the device is OUTPUT or INPUT.
● To do this we use the command “pinMode”
Void setup ()
{
pinMode (D1, OUTPUT)
;
}
D1- pin #
OUTPUT- can be input or output.
1000ms = 1 secs
https://www.instructables.com/Steps-to-Setup-Arduino-IDE-for-NODEMCU-ES
P8266-WiF/https://www.instructables.com/Steps-to-Setup-Arduino-IDE-for-N
ODEMCU-ESP8266-WiF/
..LOOPS...................…. . .
Void loop() {
digitalWrite(D1, HIGH);
delay(1000);
digitalWrite(D1, LOW);
delay(1000);
}
bool T;
void setup () {
pinMode (D1,INPUT)
pinMode (D2,OUTPUT)
}
void loop ()
{T = digitalRead (D1);
if (T==HIGH)
{digitalWrite(D2,HIGH);}
if (T==LOW)
{digitalWrite(D2,LOW);}}
. TEST OVER.....……………
Line Follower Algorithm