Foundation Lab-1 Robotics Manual
Foundation Lab-1 Robotics Manual
(Autonomous)
PERUNDURAI, ERODE– 638 060
ROBOTICS LABORATORY
ROBOTICS MANUAL
(2022 Regulation)
Roll Number :
Programme / Branch :
Year / Semester :
INDEX
Implementation
Development of
Verification of
Viva-voce (10)
Programming
Results (10)
Marks (50)
Circuits &
Hardware
Signature
Exp.
(10)
(20)
Title of the Experiment
No.
Average
Total 100
This course is designed to provide foundational knowledge on engineering with hands-on experience on
Preamble developing a prototype model with the basic knowledge of Computer-aided Design, Manufacturing
Processes, 3D Printing Technology, Robotics and Embedded Control.
5. Creating the parts of the model using milling and drilling machines
5. Value addition to the produced component using CNC milling machine, CNC laser cutting machine and CNC router
2. Interfacing of sensors, actuators and wireless communication modules with Arduino UNO
4. Development of control strategies for motion control, path planning and obstacle avoidance
Applying (K3),
CO3 design and develop the autonomous robot for real-time applications
Precision (S3)
Maximum
Level 1 Level 2 Level 3 Level 4
Criterion Marks
Excellent (>45)% Good (40 – 45)% Satisfactory (25 -39) % Below Average <25%
(100)
Significant errors in
All programs are Some segments of programs Programs are not
program writing, lacks
written precisely are written accurately uses written/wrongly written,
comments, uses existing
based on the existing skills to solve the Need assistance to solve the
Development of skills to partially solve the
question uses new approaches to given problem given problem
Electronics given problem
20 solve the given problem
circuits &
Able follow correct Not able follow correct
Programming Able follow some procedure
Able follow correct procedure procedure & improper procedure & need assistance
& improper formatting to
& formatting to execute or formatting to execute or to format and execute or
execute or simulate the
simulate the program simulate the program simulate the program
program a
Student is able to implement Student is unable to
Student is able to implement all
Hardware all design requirements Student is able to implement implement design
10 the design requirements with
Implementation without few of design requirements. requirements and have bugs
optimized Code.
Optimization of the Code. in Code.
Decision control logic, loop Decision control logic, loop
logic in program exhibits logic in program exhibits Able to achieve few results
Verification of Unable to get the desired
10 proper functional behavior and proper functional behavior and the desired
Result results and implementation
Output is obtained for varying and Output is obtained for implementation
sets of input data only few sets of input data
Strongly conveys thorough Conveys some Conveys moderate
Does not communicate
Viva 10 understanding of understanding of understanding of
program requirements
program requirements program requirements program requirements
Ex. No.: 1
Design of Electronic Circuits and its Debugging
Date :
Aim: To understand and design the various electronic components interconnections and its
integration with its debugging techniques
Apparatus Required
Resistors: Resistors are the basic of all electronic components. A resistor is a passive electrical
component to create resistance in the flow of electric current and is measured in Ohms. The
behavior of an ideal resistor is dictated by the relationship specified by Ohm’s law V=IR. Where V
stands for Voltage, I stands for Current and R is a resistor constant of proportionality, whereas
Voltage across a resistor is proportional to the current.
Resistor Colour Code: All leaded resistors with a power rating up to one watt are marked with
colour bands. They are given by several bands and together they specify the resistance value, the
tolerance rate and sometimes the reliability or failure rates. The number of bands present in
a resistor varies from three to six. The first two bands indicate the resistance value and the third
band serves as a multiplier.
Black 0 1
Brown 1 10 ± 1%
Red 2 100 ± 2%
Orange 3 1000
Yellow 4 10,000
Grey 8 ± 0.05%
White 9
Gold 0.1 ± 5%
• To read them, hold the resistor such that the tolerance band is on your right. The tolerance
band is usually gold or silver in colour and is placed a little further away from the other
bands.
• Starting from your left, note down all the colours of the bands and write them down in
sequence.
• Next, use the table given below to see which digits they represent.
• The band just next to the tolerance band is the multiplier band. So, if the colour of this band
is Red (representing 2), the value given is 102.
Example:
Capacitor: The capacitor has two terminals. It’s a device that stores electric charge and
electric energy in an electric field. The capacitor’s unit is capacitance and is expressed as the
electric charge ratio on each conductor to the potential difference between them. The
capacitance value of a capacitor is measured in farads(F). Capacitors, like resistors, can
combine in parallel or series within a circuit. The capacitor is used in AC to DC conversion,
for coupling and decoupling, in timers, for signal processing and as sensors, etc. Capacitors
have many shapes in sizes but at the core they have two electrically conducting plates
separated by a dielectric insulting material.
C = εA/d
Where C is Capacitance; ε is permittivity, a term for how well dielectric material stores an
electric field; and A is the parallel plate area.
Diodes: Diodes are the two-terminal electronic component which allows the flow of
current in one direction only and blocks the current that flows in the opposite direction.
Two terminals of the diode are known as Anode and Cathode. The Diode having 0
resistance in one direction and infinite resistance in the reverse direction is to be an ideal
diode.
Types of switches:
Toggle switches – Toggle switch is a type of switch that is operated by moving a lever or
handle back and forth to open or close an electrical circuit. An Example of a toggle switch is
the light system used in household wiring.
Push button switches – A push button switch is a two-position device that when pressed
activates to 0 state otherwise in its natural 1 state. Calculator, push-button telephones are the
example of pushbutton switches.
Selector switches – Selector switch also called rotary switch can be controlled by on or off
of different currents circuits by rotating the handle. It is used when two or more position
options are available.
Potentiometer: The potentiometer is an electric device with three terminals used to control
speed, voltage or frequency. It also has a knob on the top for controlling a variable. The
devices can be controlled based on the resistance that is applied.
A potentiometer works similar to the voltage divider except for the fact that it has variable
outputs.
Inductors
Inductors are called passive components, the same as resistors (R) and capacitors (C), and are
electronic components labeled with an "L". It has the function of keeping the current constant.
The ability of an inductor is expressed by "inductance". The unit is Henry (H). An inductor has
the same structure as a coil, but most inductors called inductors have a single winding (1 roll).
Some are wound only with conductors, while others have a core inside the wound conductors.
The action of an inductor is proportional to the square of the number of turns or radius and
inversely proportional to the length.
V=L・ΔI/Δt
L: Inductance (H)
The base serves as a gate controller device for a larger electric supply. The collector is a
larger electrical supply and the outlet of that supply is the emitter. The current flowing
through the gate from the collector can be regulated by sending varying levels of current from
the base. In this manner, a very small amount of current can be used to control a large amount
of current like in amplifiers. Transistor works as a switch or as an amplifier.
Procedure:
An analog or analogue signal is any continuous signal for which the time varying
feature(variable) of the signal is a representation of some other time varying quantity, i.e.,
analogous to another time varying signal.
Components required:
▪ Potentiometer
▪ DC source (9V battery)
▪ Multimeter
▪ Bread board
▪ Connecting wires, wire stripper.
Circuit:
Components required:
Circuit:
Activity 3: RESISTOR
A resister is a device which is used to limit the current flow. Its operation is
similar to acontrol valve in a pipe line which limits the water flow.
Components Required:
Circuit:
Steps:
Activity 4: CAPACITOR:
Components required:
Steps:
1. Connect the 9 Volt battery supply across the capacitor through NO switch and Resistor.
2. Similarly connect a LED through NO switch2 parallel to the capacitor.
3. Press NO Switch1 to charge the capacitor.
4. Press the switch2 to discharge the capacitor to glow the LED
5. View the output across the LED.
Activity 5: DIODE
Components:
▪ DC source(9v battery)
▪ Potentiometer
▪ Diode(1N 4007)
▪ Led
▪ Bread board
Circuit:
Steps:
1. Connect a 9V battery across led through potentiometer, diode (1N4007) & multimeter.
2. Adjust the potentiometer to vary the input voltage up to the operating voltage of diode.
3. When the input voltage exceeds the forward breakdown voltage of the diode, it will
begin toconduct and the output can be observed using the multimeter.
Applications:
Components required:
▪ IC 7805-Voltage regulator
▪ Capacitor (10µF), Resistor (1kΩ), Led
▪ 9V battery
Circuit:
Steps:
▪ 9V battery
▪ Led
▪ Power circuit
▪ IC 7404
Circuit:
Steps:
▪ 9V battery
▪ Power circuit
▪ IC 7408
▪ Led, Bread board
Circuit:
Steps:
▪ 9V battery
▪ Power circuit
▪ IC 7432
▪ Bread board, Led
Circuit:
Steps:
Observations:
Result:
Aim: To interface sensors and actuators with Arduino UNO and analyze its wireless communication
using Raspberry-Pi or Node MCU
Apparatus Required
Procedure:
Task 1: Raspberry pi-based LED Glowing and OFF using push button
• Hardware Lists:
– Raspberry Pi
– Breadboard
– LED, Push Button
– Resistor (220Ω)
– Jumper wires
– Power supply cable
–
Circuit Connection:
Program:
• Hardware Lists:
– Raspberry Pi
– Breadboard
– Ultrasonic Sensor
– Resistor (330Ω, 470Ω)
– Jumper wires
– Power supply cable
Circuit Connection:
Program:
Task 3 - Raspberry pi based led light on off using motion sensor
• Hardware Lists:
– Motion sensor
– Resistor (220Ω)
Circuit Connection:
Program:
Observations:
Result:
Aim: To assemble and program the tracker bot with IR sensors and motors with Arduino UNO
Apparatus Required
1. Arduino UNO
2. Development Board for 8051 Arduino UNO (preferred)
3. 10KΩ Resistors X 2
4. 10µF Capacitor
5. 11.0592MHz Crystal
6. 33pF Capacitors X 2
7. Push Button
8. Motor driver Module (L298N)
9. Robot Chassis with Motors
10. IR Sensors x 2
Working Principle
• The line follower robot will sense or detect the line position with optical sensors and the optical
sensors are usually placed at the front end of the robot.
• The robot will have steering mechanism in order for the robot to move straight, turn left or turn
right.
• The speed of the robot will be controlled according to the lane condition. It means that for curvy
lane, the speed of the robot is decrease in order to obtain smooth turn.
Flow Chart:
Procedure:
• The circuit consists of 8051 Arduino UNO, IR Sensors (with IR transmitter and IR Receiver),
L298N Motor Driver Module, Robot Chassis with 4 wheels and 4 motors, battery holder.
• 8051 Arduino UNO is the main component of the project. It is an 8 bit Arduino UNO with 32
programmable I/O pins. This has many peripheral features like programmable UART, two 8-
bit timer/counter, two interrupts, external memory access etc.
• The DC motors of the robot are connected to the controller using a motor driver IC. As the
output of the controller is maximum 5V with very small current, it cannot drive the motors. So,
to amplify this voltage motor driver IC is used. L298N can drive motors up to 36v and can
provide a drive current of 3A.
• The driver IC has 15 pins and is usually available in multiwatt15 Package. These ICs are easily
available in the market as Modules. The inputs to the Motor Driver Module are connected to
PORT2 pins P2.0, P2.1, P2.2 and P2.3.
• The two IR sensors are connected to P2.6 and P2.7 pins of the Arduino UNO. Arrange the
chassis and connect the four wheels of the robotic vehicle to the motors which are in turn
connected to the Arduino UNO.
➢ Initially draw the path on a light-coloured surface with black colour tape.
➢ Place the robot on the floor.
➢ Now power on the circuit.
➢ Robot moves in the specified path.
➢ When it moves out of path, sensors check it and automatically adjust the robot
Program:
Observations:
Result:
Aim: To develop embedded programming and interfacing for motion control and obstacle avoidance
Apparatus Required
1. Tracker Bot
2. Battery Charger / Adapter
3. IR Sensor
4. Bluetooth Module
5. Arena
Precautions
Procedure:
1. Open AVR Studio. If any project is running it can be closed by clicking on Project in the menu bar
and select Close Project.
2. To create a new project, click on Project in the menu bar and select “New Project”.
3. Select Project Type as “AVR GCC”. Type project name in the “Project name” window. In this case,
it is “motion control”. Also check on Create initial file and Create folder check box. This will create
all the files inside the new folder. In the Location window, select the place where would like to
store your project folder and then click “Next”.
4. Select debug platform and Device. In this case, select “AVR simulator”, “ATMEGA2560” Arduino
UNO and click finish.
5. Open Project menu and click on the Configuration option.
6. In the Project Option “General” tab will open. Select device as “ATMEGA2560” and frequency
(Crystal Frequency) as 14.7456MHz i.e. 14745600Hz. Set the optimization level be at “-O0”.
7. Make sure that in the External Tools, proper path for avr-gcc.exe and make.exe are given and press
ok.
8. After completing the above steps program can be typed.
Program:
Observations:
Result:
Aim: To demonstrate and testing of tracker bot in static environments using path planning
Apparatus Required
1. Tracker Bot
2. Battery Charger / Adapter
3. Arena
Precautions
This experiment demonstrates the application of a simple line follower robot. The robot follows
a white line over a black background. For this experiment ADC, LCD interfacing and motion control
are based on sensor data.
• The following connections are to be given:
LCD Connections
LCD Arduino UNO Pins
RS PC0
RW PC1
EN PC2
DB7 PC7
DB6 PC6
DB5 PC5
DB4 PC4
ADC Connections
ADC CH. PORT Sensor
0 PF0 Battery Voltage
1 PF1 White line sensor 3
2 PF2 White line sensor 2
3 PF3 White line sensor 1
4 PF4 IR Proximity analog sensor
5 PF5 IR Proximity analog sensor
6 PF6 IR Proximity analog sensor
7 PF7 IR Proximity analog sensor
8 PK0 IR Proximity analog sensor
9 PK1 Sharp IR range sensor 1
10 PK2 Sharp IR range sensor 2
11 PK3 Sharp IR range sensor 3
12 PK4 Sharp IR range sensor 4
13 PK5 Sharp IR range sensor 5
14 PK6 Servo Pod 1
15 PK7 Servo Pod 2
Procedure:
1. Open AVR Studio. If any project is running it can be closed by clicking on Project in the menu bar
and select Close Project.
2. To create a new project, click on Project in the menu bar and select “New Project”.
3. Select Project Type as “AVR GCC”. Type project name in the “Project name” window. In this case,
it is “motion control”. Also check on Create initial file and Create folder check box. This will create
all the files inside the new folder. In the Location window, select the place where would like to
store your project folder and then click “Next”.
4. Select debug platform and Device. In this case, select “AVR simulator”, “ATMEGA2560” Arduino
UNO and click finish.
5. Open Project menu and click on the Configuration option.
6. In the Project Option “General” tab will open. Select device as “ATMEGA2560” and frequency
(Crystal Frequency) as 14.7456MHz i.e. 14745600Hz. Set the optimization level be at “-O0”.
7. Make sure that in the External Tools, proper path for avr-gcc.exe and make.exe are given and press
ok.
8. After completing the above steps program can be typed.
Program:
Observations:
Result: