Вы находитесь на странице: 1из 7

Universidad Autnoma de Aguascalientes

Centro de Ciencias Bsicas


Ingeniera Electrnica
Practica #4 El sensor de temperatura LM35
Members:
Fernando Octavio Narvez Hernndez
David Alejandro Lpez Gonzlez
Isaas Getseman Carren Bernal
Profesor:
Gabriel Domnguez Snchez (Sistemas Electrnicos)
Fecha 6 de Mayo del 2016

INTRODUCTION
With the help of the first practice some modifications to implement this new practice were made.
In this practice it is to use the LM35 integrated in order to control three components depending on
the temperature range that has circuit is activated one of these: a motor, a vent fan 12v and an
incandescent bulb.

Framework
The LM35 is an integrated circuit sensor that can be used to measure temperature with an electrical
output proportional to the temperature (in oC)

It has an output voltage that is proportional to the Celsius temperature.


The scale factor is .01V/oC
The LM35 does not require any external calibration or trimming and maintains an accuracy
of +/-0.4 oC at room temperature and +/- 0.8 oC over a range of 0 oC to +100 oC.
Another important characteristic of the LM35DZ is that it draws only 60 micro amps from
its supply and possesses a low self-heating capability. The sensor self-heating causes less
than 0.1 oC temperature rise in still air.

A DC motor is any of a class of electrical machines that converts direct current electrical power into
mechanical power. The most common types rely on the forces produced by magnetic fields. Nearly
all types of DC motors have some internal mechanism, either electromechanical or electronic, to
periodically change the direction of current flow in part of the motor.

The MOC3010 Series consists of gallium arsenide infrared emitting diodes, optically coupled to
silicon bilateral switch and are designed for applications requiring isolated triac triggering, low

current isolated ac switching, high electrical isolation (to 7500 Vac peak), high detector standoff
voltage, small size, and low cost

TRIAC, from triode for alternating current, is a generic trademark for a three terminal electronic
component that conducts current in either direction when triggered. Its formal name is bidirectional
triode thyristor or bilateral triode thyristor. A thyristor is analogous to a relay in that a small voltage
and current can control a much larger voltage and current. The illustration on the right shows the
circuit symbol for a TRIAC where A1 is Anode 1, A2 is Anode 2, and G is Gate. Anode 1 and
Anode 2 are normally termed Main Terminal 1 (MT1) and Main Terminal 2 (MT2) respectively

IC uses only two bidirectionalopen-drainlines, Serial Data Line (SDA) and Serial Clock Line
(SCL),pulled upwith resistors. Typical voltages used are +5 V or +3.3 V although systems with
other voltages are permitted

Development

At the beginning of practice Czech if some connections would remain or be modified, and was only
the connection of the LCD still be there. Other connections regarding practice 1 would be
disconnected.
LM35 first operation was checked, see if effectively meet their specifications. At the beginning did
nothing of what I had to do because the component was achieved was damaged, so you buy
another
and
that
already
worked.
And having LM35 running an algorithm adapted to have the conversion of 1mV / c sending
component such Centigrade, shown on an LCD, said algorithm in the code I remain as follows:
temp=analogRead(analogPin);
temp=(5*temp*100)/1023;
Initially the analog of a microcontroller pin is read, said analog has a resolution of 1024 that are 5v
maximum.
Only then would we multiplication, 100 is shown by the type of conditioning that made the LM35
is a range of 100 C . Thus the LCD a value from 0 to 100 degrees would be displayed.

After that we have set the 3 circuits. It started with the engine, for it was used one of 5.9V

was used as the transistor switch (fig 1.0) for this circuit in this configuration the resistance of the
base is chosen small enough, so that the base current carrying transistor to its saturation state.

For this, the resistance of the base to not affect the microcontroller was calculated. Before
calculating the engine specifications 5.9V DC [1] checaron and found to have a maximum current
of 65mA efficiency, so demand is not much current.
Then making a mesh to calculate the Resistance us be as follows

-Vbase+IR+Vbe=0
5.7

R=20 = 215 = 220


A base current of 20 mA was taken because that would be enough for the engine to work well, and
the commercial value would be 220 ohms.
This way if the microcontroller sends a high value saturates and sending a low state value that are
approximately .4V is not saturated.
As for the diode it serves as a protection since the micro which is fed with 5 volts, allowing current
to flow only 5.9V to power the motor.
For the ventilator circuit using the same technique as the transistor switch with the difference that
the ventilator is 12 but that does not affect applied, so it is not explained again the same.
For the bulb circuit the MOC and Triac circuits which are commonly used for alternating current, as
to the usual connection is as shown in the figure below is used:

The only thing you have to calculate are the resistances, because what goes on inside the MOC is a
diode, a calculation to polarize a diode is made, however the data provided our MOC said it has a
Vf = 1.15 and If = 10mA so with a mesh may resolve the remaining resistance follows the
calculation:
51.15

R= 10 =385
And the approximate commercial value is to 440 with which still work well MOC
void setup() {
lcd.begin(16,2);
pinMode(foco,OUTPUT);
pinMode(motor,OUTPUT);
pinMode(ventilador,OUTPUT);
}
void loop() {
char tecla = Teclado1.getKey();
if(tecla) { //si es presionada una tecla
switch (tecla)
{
case '1':
do
{
lcd.clear();
lcd.setCursor(0,0);

lcd.print("Encendido");
temp=analogRead(analogPin);
temp=(5*temp*100)/1023;
lcd.setCursor(0,1);
lcd.print(temp);
if(temp>30 && temp<34)
{digitalWrite(foco,HIGH);
digitalWrite(motor,LOW);
digitalWrite(ventilador,LOW);
}
if(temp>34 && temp<38)
{
digitalWrite(motor,HIGH);
digitalWrite(foco,LOW);
digitalWrite(ventilador,LOW);
}
if(temp>38)
{digitalWrite(motor,LOW);
digitalWrite(foco,LOW);
digitalWrite(ventilador,HIGH);
}
delay(250);
tecla = Teclado1.getKey();
}while (!tecla);
break;
case '2':
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Apagado");
digitalWrite(motor,LOW);
digitalWrite(foco,LOW);
digitalWrite(ventilador,LOW);
break;
}
}
}

Here is shown the design of the circuit:

REFERENCES
[1]http://teslabem.com/productos/motores/motor-dc-5-9v-rf-300ca-7200.html

CONCLUSION
Whenever you go to a digital system interconnect any power to a system, you need to
optoacoplamiento to ensure electrical insulation. Otherwise huge risks that will result in electrical
safety problems, costly damage to the digital control systems and damage to the production
process on which it is operating is run.

The optoaclopador is a relatively simple device very easy to use, with a wide variety of engaging
and very low cost. For it would be unforgivable not to use it when power is to be controlled.
As for the calculation of the load handling device or current in the power stage it is always strongly
recommended to use the safety criterion of 30% over the maximum rates indicated by the
manufacturer.

Вам также может понравиться