Beruflich Dokumente
Kultur Dokumente
Shilpamandira
Electronics & Telecommunication Engineering
CERTIFICATE
ACKNOWLEDGEME
NT
Project Work
Overview
In the first day the project was decided. Components
requirement and cost are evaluated.
PSU
SMPS
Support Board
IR Sensor Microcontroller
Relay
Output/Load Board
2
CIRCUIT DIAGRAM
4
Relay Board
5
Microcontroller Board
6
Front Panel
7
Packaging
8
CIRCUIT
EXPLANATION
9
Microcontroller Module: -
The U1 atmega328 microcontroller is
used as the brain of this system.
The pin no. 7&20 and 8&22 is shorted
and acted as VCC and GND
respectively. Two headers are joined
with them.
The six male headers (1 to 6) are
connected with the six relays.
The three female headers are used to
receive VCC and GND and the one
signal from TSOP-1738 IR receiver.
10
Pin Diagram:
LM2940CT-5.0
1. Input
2. GND
3. Output
Pin Description:
ATmega328
Pin No Connection
11-14 Relay board i/p
7,21 Vcc
8,20 GND
13 TSOP 1738 receiver
11
PROGRAM
#include <IRremote.h> // necessary for remote data
decoding
#include <FRONTECH_TV_Remote.h> // remote controller
void setup()
{
// defining all output pins as OUTPUT
for (i = 0; i < noOfOutputs; i++) {
pinMode(OUTPin[i], OUTPUT);
}
pinMode(Indicator, OUTPUT);
irrecv.enableIRIn(); // Start the receiver
12
// setting all OUTPUTs to off initially
for (i = 0; i < noOfOutputs; i++) {
onStatus[i] = false;
}
}
void loop() {
if (irrecv.decode(&results)) {
long recv = results.value;
irrecv.resume(); // Receive the next value
// checks for Remote control inputs
checkRemote(recv);
}
if (stateChanged) {
// switches the couputs accordingly
setOutputs();
}
delay(50);
}
// setting all OUT pins according to their respective onStatus
void setOutputs() {
// blinking indicator
digitalWrite(Indicator, HIGH);
delay(300);
digitalWrite(Indicator, LOW);
for (i = 0; i < noOfOutputs; i++) {
digitalWrite(OUTPin[i], onStatus[i]);
}
}
PROGRAM
EXPLANATION
Variables
OUTPin[] and onStatus[] used together to define their
respective value for a single load.
They represent different properties of same output.
Their index number must be same when accessing
them.
OUTPin[] contains the output pin numbers on the
microcontroller / arduino.
onStatus[] represents their on status, true(1) for on and
false(0) for off. Initially 0, as the all off.
Functions
void setup(), does initial setup (compulsory).
void loop(), loop through iterations.
void setOutputs(), sets outputs HIGH or LOW
depending on onStatus[].
boolean getOUTAny(), returns true if any output is on.
void checkRemote(long remoteValue), checks for
remote inputs, takes action on onStatus[] accordingly.
15
When user presses a button on the remote, the data is
received by IR receiver. Then it is decoded by decoder
library. Based on received data, output is switched.
For 1-6 output is directly switched. For power
button, current status stored and if any load is on they
turned off, or stored value is mimicked in output.
COMPONENT LIST
Relay Board
Sl.
Price
No Components Specification Quantity Total
(each)
.
PCV relay, 6v,
1. Relay 6 20 120
SPDT
Screw
2. 3 pin 6 20 120
Terminal
3. Transistor BC 547 12 5 60
4. Diode 1N4007 6 1 6
Blue, 2v 6
5. LED 1 7
Green, 2v 1
1.8kΩ, 0.25W 6 0.5 3
6. Resistor
330Ω,0.25W 7 0.5 3
7. Header 40pin male 1 Set 15 15
8. Vero Board IC vero 1 30 30
9. Wire Single core 2m 5 10
Total 374
Microcontroller Board
Sl. Components Specification Quantit Price Total
No y (each)
16
.
Microcontrolle
1. ATmega 328 1 150 150
r
2. Base 28 pin, 0.3” 1 5 5
3. Vero Board IC vero 1 10 10
40pin male 1 Set 15 15
4. Header
40pin female 1 Set 15 15
5. IR Receiver TSOP 1738 1 20 20
Total 215
APPLICATIONS
ADVANTAGES
Any type of load can be switch (AC/DC) up
to few amps.
18
Easy to use.
Reliable as relay is use instead of
semiconductor device.
High efficiency as SMPS is used as power
supply, no semiconductor switch is used for
mains load switching thus negligible
semiconductor loss.
FUTURE ASPECTS
To cope with the modern generation everything has
to be IoT implementation thus devices should be
controlled using internet (or a standard network).
So an internet module can be added to this project,
for which space is left.
A common DTMF receiver cum decoder can also
be added for DTMF control.
Wi-Fi can also be implemented for using it as
wireless medium.
Bluetooth connection can also be established with
this device, for any non-Wi-Fi mobile.
For practical industrial implementation this points
has to be followed: 19
o Relay board size has to be flexible.
CONCLUSION
20
EXECUTION
SNAPSHOTS
No Load is on
22