Professional Documents
Culture Documents
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND COMMUNICATION ENGINEERING
Submitted by
1|Page
K.S.R.M. COLLEGE OF ENGINEERING
(AUTONOMOUS)
(Approved by AICITE,New Delhi & Affiliated to JNTUA,Ananatapur)
KADAPA – 516003(A.P)
CERTIFICATE
This is to certify that the social relevant project report entitled “(TOUCHLESS
SWITCHBOARD FOR POST COVID WORLD BY USING ARDUINO & RELAYS)”,is
being submitted by PALLETI SUBHASH REDDY-209Y5A0417 to K.S.R.M
college of Engineering (AUTONOMOUS) ,Kadapa in partial fulfilment of the requirements
for the award of the degree of “BACHELOR OF TECHNOLOGY” in
“ELECTRONICS AND COMMUNICATION ENGINEERING“
is a Bonafide record of the social relavant project work carried out by them under
ourSupervision during the period 2021-2022.
2|Page
ACKNOWLEDGEMENT
I take this opportunity to express my deep gratitude and appreciation to all those
encouraged me for successful completion of technical seminar.
I wish to express my gratitude to Dr. V.S.S. MURTHY, Ph.D., Principal of K.S.R.M college
of engineering, Kadapa for their consistent and encouragement to complete the Social Relevant
Project.
I am very much thankful to Dr. G.HEMALATHA, M.Tech., Ph.D., Head of the Department,
Electronics and Communication Engineering, K.S.R.M College of Engineering, Kadapa for
providing good facilities & congenial atmosphere in our college. Encouragement to complete
the Social Relevant Project.
I wish to express my deepest sense of gratitude and pay my sincere thanks to my guide
sri.MD.MAHABOOB PASHA M.Tech.,Asst.prof Department of Electronics and Communication
Engineering, K.S.R.M College of Engineering, Kadapa for his valuable suggestions and
analyzing and testing throughout the period, till the end of project work completion and his
timely suggestions and help.
I wish to convey sincere thanks to all D.R.C (Department Review Commitee) members and
faculty members of E.C.E for all their support and co-operation rendered for successful
submission of my project work.
I am thankful to all who helped me directly and indirectly in the successful complete in of this
seminar work. As a gesture of respect for my family members and friends for the support I
received, I dedicate this work to t
PROJECT ASSOCIATE
3|Page
CONTENTS
TOPIC PAGE.NO.
1. ABSTRACT 5
2. INTRODUCTION 6
3. COMPONENTS 7-10
4. TYPES OF SWITCHBOARDS 11
5. CIRCUIT DIAGRAM 12
6. CONSRTUCTION & TESTING 13
7. WORKING PROCEDURE 14
8. SOFTWARE CODE 15-21
9. ALGORITHM 22
10. PROJECT MODEL 23
11. ADVANTAGES 24
12. APPLICATIONS 24
13. CONCLUSION 25
14. REFERENCES 26
4|Page
1.ABSTRACT :
5|Page
2.INTRODUCTION:
Each button switch that needs human input through physical touch
can be replaced with a sensing area activated by TSS.
6|Page
3.COMPONENTS
-ARDUINO UNO
-HC-SR04 SENSOR
-230V ACAPPLIANCES
-JUMPER WIRES
7|Page
ARDUINO UNO
"Uno" means one in Italian and was chosen to mark the release of
Arduino Software (IDE) 1.0. The Uno board and version 1.0 of Arduino
Software (IDE) were the reference versions of Arduino, now evolved to newer
releases. The Uno board is the first in a series of USB Arduino boards, and the
reference model for the Arduino platform; for an extensive list of current, past
or outdated boards see the Arduino index of boards.
8|Page
ULTRA SONIC SENSOR
9|Page
4 – CHANNEL RELAY BOARD
10 | P a g e
4. TYPES OF SWITCHBORDS
11 | P a g e
5. CIRCUIT DIAGRAM
12 | P a g e
6. CONSTRUCTION :
The above figure shows the circuit diagram of 4-channel touchless switchboard.
It comprises four HC-SR04 ultrasonic sound sensors (SEN1-SEN4), fourchannel
relay board (RM1), and Arduino Uno board (Board1).
The microcontroller in Arduino Uno board receives the switching signals from
the sensors and the program code sends the signals to the 4-channel relay
module and thereby switches on/off the devices.
The ultrasonic sound sensor HC-SR04 is used to sense the switching action. Pin
details of the HC-SR04 ultrasonic sensor are shown in above. It has following
four pins: VCC: +5V DC Trig: Trigger (input) Echo: Echo (output) GND: GND The
sensors can be easily interfaced with Arduino Uno.
When a hand is placed about 5cm from the sensor the program in Arduino reads
the signal and the relay is energised to perform the switching action.
When hand is again placed near the sensor, the Arduino again reads the signal
and the relay is de-energised to toggle the switch from its previous position.
Software The software program fourchan.ino is loaded into the internal memory
of Arduino Uno. The program is simple and easy to understand. Comments are
given at the end of each command line.
The following need to be defined in the code first: • Echo and trigger pins of the
ultrasonic sound sensor • Four relays’ pins • Intermediate variables for relay
operation • Variables for all the four sensors Next, a void setup ( ) function
should be created.
The corresponding pins should be initialised as inputs and outputs. Then the
serial communication should be initiated. The serial communication has nothing
to do with the project, it is used for just analysing the program on a monitor.
13 | P a g e
7.WORKING PROCEDURE :
The above figure shows the circuit diagram of 4-channel touchless switchboard.
It comprises four HC-SR04 ultrasonic sound sensors (SEN1-SEN4), four channel
relay board (RM1), and Arduino Uno board (Board1).
The microcontroller in Arduino Uno board receives the switching signals from
the sensors and the program code sends the signals to the 4-channel relay module
and thereby switches on/off the devices.
The ultrasonic sound sensor HC-SR04 is used to sense the switching action. Pin
details of the HC-SR04 ultrasonic sensor are shown in above. It has following
four pins: VCC: +5V DC Trig: Trigger (input) Echo: Echo (output) GND: GND
The sensors can be easily interfaced with Arduino Uno.
When a hand is placed about 5cm from the sensor the program in Arduino reads
the signal and the relay is energised to perform the switching action.
When hand is again placed near the sensor, the Arduino again reads the signal
and the relay is de-energised to toggle the switch from its previous position.
Software The software program fourchan.ino is loaded into the internal memory
of Arduino Uno. The program is simple and easy to understand. Comments are
given at the end of each command line.
The following need to be defined in the code first: • Echo and trigger pins of the
ultrasonic sound sensor • Four relays’ pins • Intermediate variables for relay
operation • Variables for all the four sensors Next, a void setup ( ) function should
be created.
The corresponding pins should be initialised as inputs and outputs. Then the
serial communication should be initiated. The serial communication has nothing
to do with the project, it is used for just analysing the program on a monitor.
14 | P a g e
8.SOFTWARE CODE :
//touch less switch board using Ultrasonic Sensor HC-SR04
const int trigPin1 = 2; //defining echo sensor pins 1 // defines pins numbers
const int echoPin1 = 3;
const int trigPin2 = 4; //defining echo sensor pins 2 // defines pins numbers
const int echoPin2 = 5;
const int trigPin3 = 6; //defining echo sensor pins 3 // defines pins numbers
const int echoPin3 = 7;
const int trigPin4 = 8; //defining echo sensor pins 4 // defines pins numbers
const int echoPin4 = 9;
const int Relay1 = 13; // the number of the Relay1 pin
const int Relay2 = 12; // the number of the Relay2 pin
const int Relay3 = 11; // the number of the Relay3 pin
const int Relay4 = 10; // the number of the Relay4 pin
15 | P a g e
long duration1; //defining echo sensor varables 1
int distance1;
long duration2; //defining echo sensor varables 2
int distance2;
long duration3; //defining echo sensor varables 3
int distance3;
long duration4; //defining echo sensor varables 4
int distance4;
void setup() {
pinMode(Relay1, OUTPUT); // Sets the relay as an Output 1
pinMode(trigPin1, OUTPUT); // Sets the trigPin as an Output 1
pinMode(echoPin1, INPUT); // Sets the echoPin as an Input 1
void loop() {
16 | P a g e
digitalWrite(trigPin1, LOW); // Clears the trigPin
delayMicroseconds(2);
digitalWrite(trigPin1, HIGH);// Sets the trigPin on HIGH state for 10 micro seconds
delayMicroseconds(10);
digitalWrite(trigPin1, LOW);
duration1 = pulseIn(echoPin1, HIGH);// Reads the echoPin, returns the sound wave travel
time in microseconds
distance1= duration1*0.034/2; // Calculating the distance1
if (distance1 <= 5)
{
SwitchState1 = HIGH;
}
else
{
SwitchState1 =LOW;
}
if (SwitchState1 == HIGH && SwitchState1 != lastSwitchState1)
{
if (RelayState1==HIGH)
{
RelayState1 = LOW;
}
else
{
RelayState1 = HIGH;
}
}
digitalWrite(Relay1, RelayState1);
17 | P a g e
lastSwitchState1 = SwitchState1;
digitalWrite(trigPin2, LOW);
delayMicroseconds(2);
digitalWrite(trigPin2, HIGH);// Sets the trigPin on HIGH state for 10 micro seconds
delayMicroseconds(10);
digitalWrite(trigPin2, LOW);
duration2 = pulseIn(echoPin2, HIGH);// Reads the echoPin, returns the sound wave travel
time in microseconds
distance2= duration2*0.034/2; // Calculating the distance2
if (RelayState2==HIGH)
{
RelayState2 = LOW;
}
else
{
RelayState2 = HIGH;
}
}
18 | P a g e
digitalWrite(Relay2, RelayState2);
lastSwitchState2 = SwitchState2;
digitalWrite(trigPin3, LOW);
delayMicroseconds(2);
digitalWrite(trigPin3, HIGH);// Sets the trigPin on HIGH state for 10 micro seconds
delayMicroseconds(10);
digitalWrite(trigPin3, LOW);
duration3 = pulseIn(echoPin3, HIGH);// Reads the echoPin, returns the sound wave travel
time in microseconds
distance3= duration3*0.034/2; // Calculating the distance3
if (RelayState3==HIGH)
{
RelayState3 = LOW;
}
else
{
RelayState3 = HIGH;
}
19 | P a g e
}
digitalWrite(Relay3, RelayState3);
lastSwitchState3 = SwitchState3;
if (RelayState4==HIGH)
{
RelayState4 = LOW;
}
else
{
RelayState4 = HIGH;
20 | P a g e
}
}
digitalWrite(Relay4, RelayState4);
lastSwitchState4 = SwitchState4;
Serial.println();
delay(100);
}
21 | P a g e
9.ALGORITHM :
22 | P a g e
10.PROJECT MODEL :
23 | P a g e
11.ADVANTAGES :
12.APPLICATIONS :
▪ Elevators
▪ Public telephones
▪ Coffee vending machines
▪ Train ticket vending machine
▪ Keypads on ATM machines
▪ Other applications in home automation
24 | P a g e
13.CONCLUSION :
25 | P a g e
14. REFERENCES :
1. Jiewen Zheng; Inst. of Med. Prepare., Acad. of Mil. Drug. Sci., Tianjin,
China ;Guang Zhang ; Taihu Wu, Design of Automatic Fall Detector for
Elderly Based on Triaxial Accelerometer ; Bioinformatics and Biomedical
Engineering , 2009. ICBBE
2. Electronics for you.com
3. 2009. third International Conference, IEEE Beijing. 2. Medical ready
frameworks with TeleHealth& telemedicine observing utilizing GSM and
GPS innovation, IEEE Conference, Coimbatore,2012
4. May, Z.B. ; Dept. of Electr. and Electron. Eng., Univ. Teknol. Petronas,
Bandar Sri Iskandar, Malaysia. Constant ready framework for home
observation, Control System, Computing and Engineering (ICCSCE), 2012
IEEE ConferencePenang
5. . 4. Rana, G.M.S.M. ; Khan, A.A.M. ; Hoque, M.N. ; Mitul, A.F. Structure
and execution of a GSM based remote home security and machine control
framework; Advances in Electrical Engineering (ICAEE), 2013
ControlSystem, IEEE Conference Dhak
6. 5. Borges,L.M. Inst. de Telecomun.- DEM, Univ. da Beira Interior, Covilha,
Portugal Barroca, N. ; Velez, F.J. ; Lebres, A.S., Smartattire remote flex
sensor belt organize for fetal wellbeing observing; Pervasive Computing
TechnologiesforHealthcare,2009.PervasiveHealth2009.,IEEE,Lo ndon
7. 6. Rahdar, R. ; Bell Helicopter, Fort Worth, TX, USA ; Stracener, J.T. ;
Olinick, E.V.; A Systems Engineering Approach to Improving the Accuracy
of Mobile Station Location Estimation; Systems Journal, IEEE (Volume:8 ,
Issue: 1 ,2013)
8. 7. Alwan, M. ; Dept. of Pathology, Virginia Univ., Charlottesville, VA ;
Rajendran, P.J. ; Kell,S. ; Mack,D. , A Smart and Passive Floor-Vibration
Based Fall Detector for Elderly; Information and Communication
Technologies, 2006. ICTTA '06. second (Volume: 1), IEEEDamascus
9. 8. ShaomingShan ; Dept. of Autom., Tsinghua Univ., Beijing, China ; Tao
Yuan; A wearable pre-sway fall indicator utilizing highlight choice and
Support Vector Machine; Signal Processing (ICSP), 2010 IEEE tenth
International Conference , IEEE Beijing .
26 | P a g e