HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY
-úûúû -
ELECTRONICS 1
PROJECT REPORT TOPIC:
Instructor: Dr Nguyen Canh Quang Group 8 Class: CTTT Co dien tu 01 –
Trang 2III.Simulator circuit: 12
IV Physical Circuit 14
V Conclusion 15
Trang 3I Introduction:
1 General information: a Objective:
Our goal is to create an automatic outdoor umbrella Using analog circuit knowledge obtained through this electronic course, we will design a circuit can detect humans, rain water, UV rays and control the motor to open and close an umbrella
b Block diagram and Operation of Circuit:
Trang 43
1 IR Sensor Circuit a IR sensor:
IR LED: An infrared light-emitting diode (IR LED) is a solid-state light-e mitting (SSL) device that produces light in the infrared band or range of the electromagnetic radiation spectrum IR LEDs allow for cost-effective and efficient production of infrared light, which is elec tromagnetic radiation in the 700 nm to 1mm range
Choosing a resistor connected to IR LED in series: 1.2V; I 20 ; Vcc=+5V
5 1.219020 10
Vcc VR
Select: R ý1 220 to ensure that ILED is satisfied and protect the LED
IR Photodiode: An IR photodiode is an electrical component that converts light into electricity The IR photodiode is used to detect the light rays
reflected by an IR LED
The IR photodiode is installed as a reverse bias (its cathode is connected to +Vcc) If the photodiode is not exposed to light, the resistance across it will be high, leading to I ý When the D 0photodiode is exposed to light, the electrical resistance across the diode decreases, in creasing the reverse current
b Potentiometer:
Potentiometer is an instrument for measuring an electromotive force by balancing it against the potential difference produced by passing a known current through a known variable resistance Otherwise, it is also a variable resistor with a third adjustable terminal The potential at the third terminal can be adjusted to give any fraction of the potential across the ends of the resistor
Select the Potentiometer 10k connected to inverting input of Op-Amp in order to change value of the potential and adjust the sensitivity of the Op-Amp
c Operational Amplifier: LM358
The LM358 is a low-power dual operational amplifier integrated circuit It can handle +3 V to +32 V DC supply and source up to 20 mA per channel In this part, it is used as a comparator
Circuit diagram:
Pin 1: Output voltage, channel 1 (C1)
Trang 5Pin 3: Non-inverting input, C1 Pin 4: Ground
Pin 5: Non-inverting input, channel 2 (C2) Pin 6: Inverting input, C2
Pin 7: Output voltage, C2 Pin 8: +Vcc
RI
Trang 65 reverse current I through the resistor D R Following that, the voltage of non-inverting input,2 V is equal to that of R , 2 V R2
Comparation: øù øùøù øù
Actually, because of temperature, load and type of Op-amp, Vout1ýVcc 1;1.5
In our condition, Vout1 ýVcc 1.2ý3.8V In the end of this stage, we get Vout1.
2 UV Sensor Circuit
a UV sensor module: GUVA-S12SD
UV sensors measure the power or intensity of inc ident ultraviolet (UV) radiation UV sensors are used for determining exposure to ultraviolet radiation in laboratory or environmental settings They are transmitters that respond to one type of energy signal by producing energy signals of a different type
b Schematic
c Operation:
According to manufacturer, this module consists of an integrated and amplified circuit with an op-amp LM358 In out project, we connect Vout1 to pin 8 of the op-amp As a result, when operating, the output voltage of the sensor is:
Trang 723 11
V
In our project, Vout2ý0;3.5V
3 Rain sensor circuit:
a Rain sensor: YL-83
The working principle of the YL-83 Rain sensor is very simple When there is moist or wet are cover the space between two pole, the sensor becomes a closed circuit
Rain and snow are quickly and accurately detected with the YL-83 Rain Detector The YL-83 operates via droplet detection rather than by signal level threshold
The YL-83 also features an analog Rain Signal for estimating rain intensity Since this signal is proportional to the percentage of moist or wet
area on the sensor plate, rain intensity has a direct impact on the amplitude and variation of this analog signal
The YL-83 sensor is positioned at a 30° angle This design, together with the internal heating element, ensures that the surface dries quickly, an essential factor in calculating intensity
The sensor plate has minimum resistance of 20k (raining) and can reach to 400k (dry)
b Diagram circuit:
Trang 8Since, R8 ýR9ý R10ý R11ý 220 , Voutøpin 1ù ýVR7 Vout2
The input V+ at pin 5 is connected to the pin 1,
Trang 9You can see the practical implementation of the LM358 Opamp adder circuit including two separate input, a sum of two input voltages ( VR7 and Vout2)
V ü V when it is rain 7
V pin üV pin => Voutøpin 7ùýVGND
We can change the value of Potentiometer so that the benchmark will change: o VR increases => V- decreases => can detect humidity, light rain and low UV index o VR decreases => V- increases => can detect heavy rain and high UV index
In reality, because of temperature, load and type of Op-amp, the real Voutøpin 7ù ýVcc 1 ;1.5V V
In our situation, Voutøpin 7ù ýVcc 1.2ý3.8V
4 Motor Controller a Transistor BC547:
Because the relay only work when the source is connected or cut off, so we need something to turn on-off its input That why we are going to use a transistor to do the work The transistor have 3 terminals :
Collector, base and emitter
Trang 109 For this transistor to work as a switch, we need it to operate in the saturation region First we need to calculate the key parameter to find our transistor
5 0.09
0.1403 140.30.5* 0.5*70
Vcc V
To make sure the transistor operate in saturation region, we need an resistor R connected in series with 13
the transistor
We can calculate the resistance of R as follow: 13
ø ù
3.8 0.6 0.71.9140.3 /110
The voltage of coil can calculated as follow :
When the source is disconnected, the current drop to zero => Vcoil
is large and produce a large induced current
=> VCE ýVcc Vcoil þVCEmax => Transistor can be broken down
Because Diod is in forwarded bias, it can terminate the induced current from the coil of relay Hence, it protect the transistor
Trang 11A relay is an electrically operated switch It consists of a set of input terminals for a single or multiple control signals, and a set of operating contact terminals Relay is consists of a switch and a coil When a
current flows through the coil of relay, the coil will attract the contact to closed When the current stop goes through the coil, the magnetic field in the coil change direction and push the contact open
In our project, to control the direction of the DC motor, we decided to used 2 relays in parallel These two relays will always operate in the same status This could help in changing the direction of the current going through the motor
Because the relays is connected with the 5V source, we design two 5V relay in parallel.And the current Ic from transistor will goes through both relays
On the other side , The NO ( Normally Opened) terminal of Relay 1 is connected to the Limit Switch at Fully-Open Position.The NC ( Normally closed) terminal of Relay 2 is connected to the Limit Switch at Closed Position
There are two cases :
* If the umbrella is in closed position, the Limit switch 2 is opened, the current will pass the motor in the direction from Limit switch 1 to Relay 1and to Relay 2 The motor will rotate in forward direction
* If the umbrella is fully - opened, the limit switch 1 is opened and the motor stops When the sensor system does not receive any signal
Vin = Vout(opamp) = 0V
The transistor if off and act as an open circuit No current pass through relay
Trang 1211 * If the umbrella is fully-opened The Limit switch 1 is opened The current from the source will goes through the Limit switch 2 -> Relay 2 -> Relay 1 Hence, the motor rotates in reverse direction
* If the umbrella is closed The Limit switch 2 is opened and the motor stops
Trang 13III Simulator circuit:
Trang 1413
List of equipment
Trang 15IV Physical Circuit