You are on page 1of 19

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

REALIZADO POR:
ANDRES ALEJANDRO ARIZO VON MAACK

DICIEMBRE 2007

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

1. INTRODUCCION: Los circuitos rectificadores son usados cada vez ms frecuente en fuetes estabilizados de voltaje como en fuentes variables como fijas de corriente directa. Esto se debe a las excelentes caractersticas la cual permite circulacin de corriente entre sus terminales en un determinado sentido, mientras que la bloquea en el sentido contrario, debido a la naturaleza en su configuracin y conexin que puede ser directa o inversa de acuerdo al ciclo que se encuentre en la onda sinusoidal que ingresamos en el circuito que vamos a realizar. Sin embargo, este circuito esta compuesto de una resistencia y de una bobina por tal razn su nombre CIRCUITO RECTIFICADOR DE MEDIA ONDA RL. Se presenta en este trabajo el diseo del CIRCUITO RECTIFICADOR DE MEDIA ONDA RL, el cual se puede realizar en cualquier laboratorio de electrnica ya que este es un circuito bsico pero fundamental para saber el correcto funcionamiento y comportamiento de los elementos que vamos a utilizar Mediante el Programa de simulacin MATLAB vamos a realizar esta practica el cual nos va a ayudar a observar la formas de onda de dicho circuito sin necesidad de la utilizacin de instrumentos difciles de concebir como es el osciloscopio. Vamos a crear este programa en base a MATLAB para introducir las variables y observar los resultados esperados.

2. OBJETIVO GENERAL: Realizar a interfaz del circuito Rectificador de Media Onda con Carga RL en MATLAB.

3. OBJETIVO ESPECIFICO: Indicar los pasos para realizar esta practica utilizando MATLAB Visualizar las formas de onda que tendremos en dicho circuito y en los elementos que conforman el mismo.

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

4. MARCO TEORICO: MATLAB: MATLAB es un entorno de computacin y desarrollo de aplicaciones totalmente integrado orientado para llevar a cabo proyectos en donde se encuentren implicados elevados clculos matemticos y la visualizacin grfica de los mismos. MATLAB integra anlisis numrico, clculo matricial, proceso de seal y visualizacin grfica en un entorno completo donde los problemas y sus soluciones son expresados del mismo modo en que se escribiran tradicionalmente, sin necesidad de hacer uso de la programacin tradicional. MATLAB dispone tambin en la actualidad de un amplio abanico de programas de apoyo especializados, denominados Toolboxes, que extienden significativamente el nmero de funciones incorporadas en el programa principal. Estos Toolboxes cubren en la actualidad prcticamente casi todas las reas principales en el mundo de la ingeniera y la simulacin, destacando entre ellos el 'toolbox' de proceso de imgenes, seal, control robusto, estadstica, anlisis financiero, matemticas simblicas, redes neutrales, lgica difusa, identificacin de sistemas, simulacin de sistemas dinmicos, etc. es un entorno de clculo tcnico, que se ha convertido en estndar de la industria, con capacidades no superadas en computacin y visualizacin numrica. De forma coherente y sin ningn tipo de fisuras, integra los requisitos claves de un sistema de computacin tcnico: clculo numrico, grficos, herramientas para aplicaciones especficas y capacidad de ejecucin en mltiples plataformas. Esta familia de productos proporciona al estudiante un medio de carcter nico, para resolver los problemas ms complejos y difciles.

DIODO RECTIFICADOR: El diodo ideal es un componente discreto que permite la circulacin de corriente entre sus terminales en un determinado sentido, mientras que la bloquea en el sentido contrario. En la Figura 1 se muestran el smbolo y la curva caracterstica tensin intensidad del funcionamiento del diodo ideal. El sentido permitido para la corriente es de A a K.

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

Figura 1: Smbolo y curva caracterstica tensin-corriente del diodo ideal. El funcionamiento del diodo ideal es el de un componente que presenta resistencia nula al paso de la corriente en un determinado sentido, y resistencia infinita en el sentido opuesto. La punta de la flecha del smbolo circuital, representada en la figura 1, indica el sentido permitido de la corriente.

RESISTENCIA ELCTRICA. La resistencia elctrica. es la dificultad que tiene la corriente elctrica. (Intensidad, amperaje, A ) para circular por un componente resistivo, se mide en ohmios y su letra representativa es la omega . El factor resistivo en electrnica se aprovecha para crear cadas de tensin, controlar intensidades, modificar tiempos de carga y descarga en condensadores para variar la frecuencia en osciladores y un sin fin de utilidades... En definitiva, las resistencias sirven para limitar el flujo de la electricidad segn las necesidades de nuestro circuito.

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

BOBINA ELECTRICA (SOLENOIDE) Hilo metlico enrollado, que al paso de la corriente elctrica tiene un comportamiento similar al de un imn. Arrollamiento de un cable conductor alrededor de un cilindro solid o hueco, con lo cual y debido a la especial geometra obtiene importantes caractersticas magnticas

Una bobina tiene una auto inductancia de 1 henrio cuando un cambio de 1 amperio/segundo en la corriente elctrica que fluye a su travs provoca una fuerza electromotriz opuesta igual a 1 voltio. 5. DESARROLLO PRINCIPAL: Descripcin del circuito: El circuito muestra un diodo (ideal) con una carga RL. La fuente da una onda alterna sinusoidal. Como vs=E*sen (wt), vs es positiva cuando 0<wt<pi, y vs es negativa cuando pi<wt<2pi. Cuando la tensin vs empieza a ser positiva, el diodo empieza a conducir y la fuente mantiene al diodo en conduccin hasta que wt alcance los pi radianes. En ese instante, definido por wt=pi radianes, la corriente a travs del circuito no es cero, y existe energa almacenada en la inductancia.

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

Por convencin, el voltaje a travs de la inductancia es positivo cuando la corriente a travs de ella se esta incrementando, y es negativa cuando la corriente tiende a descender. La polaridad del voltaje a travs de la inductancia es la siguiente: Cuando la corriente es ascendente:

Cuando la corriente es descendente:

Cuando vs cambia de un valor positivo a uno negativo (en el instante wt=pi radianes), aun existe corriente a travs de la carga, y el diodo continua en conduccin hasta que la energa almacenada en la inductancia llegue a ser cero. Despus, cuando la corriente fluye en direccin inversa, el diodo bloquea la conduccin, y todo el voltaje aplicado por la fuente se queda en el diodo. Al saber ya el funcionamiento del circuito pasamos a realizarlo en el programa de simulacin que es MATLAB. Debemos instalarlo correctamente en el ordenador deseado, sucesivamente vamos a ejecutar el programa, vamos a observar la interfase de MATLAB en la cual vamos a observar cuatro ventanas pero en una existen dos que son:

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

WORKSPACE: En esta ventana aparecern los tamaos de las variables. MATLAB usa en su interior clculos basados en matrices. As, por ejemplo la variable a se considera una matriz de 1x1. CURRENT DIRECTORY: proporciona la informacin para saber en que rea del directorio se est trabajando.

COMMAND HISTORY: En esta ventana se visualizan todas las instrucciones que se han ejecutado desde el momento en que se inicio la sesin. COMAND WINDOW: En esta ventana se visualizan los resultados generados por los programas. Tambin en ella, se puede realizar clculos de forma directa. M-FILE: Creamos un archivo de MATLAB en el cual se encuentra la programacin en grupo de la simulacin a realizar para guardar e iniciar el programa se presiona F5, las programaciones en el M-FILE se deben guardar sin espacios entre palabras o nombre de funciones. En esta practica vamos a utilizar el comando GUIDE, para esto vamos a ingresar la palabra guide en la ventana command window dando un enter para ejecutarlo, en unos segundos va a parecer una nueva ventana llamada GUIDE Quick Starten en esta vamos a dar doble clic en la opcin BLACK GUI que es un nuevo en blanco.

Vamos a oponer seguidamente la ventana en la cual vamos a trabajar en este trabajo primero vamos a grabar este primer guide con el nombre CARATULA esta va a ser nuestra ventana que al iniciar el programa nos va a aparecer. Vamos a escoger tres PUSH BUTTON y un STATIC TEXT en cada uno dndole doble clic obtenemos su configuracin en aspecto y al igual en estas opciones vamos a ingresar el texto que queremos en cada uno de estos botones y texto que va a aparecer.

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

En el recuadro de configuracin cada uno vemos a buscar las opciones: BLACKGROUNDCOLOR: Esta es para elegir el color del botn o del cuadro en donde va el texto esttico. FONTSIZE: Tamao de la letra que va en el botn o texto. FOREGROUNDCOLOR: Color de las letras del botn o texto. STRING: Este es el texto que vamos a observa en el botn o texto. TAG: Nombre del botn o texto, este nombre vamos a observar en la programacin y vamos a distinguir de cada uno por su nombre. El primer botn va a ser llamado CURVA CARACTERISTICA DEL DIODO EN POLARIZACION DIRECTA, el segundo INGRESAR A GRAFICADOR, el tercero SALIR y el Static text RECTIFICADOR DE MEDIA ONDA CON CARGA RL. Despus vamos a elegir el color del fondo haciendo el mismo procedimiento del color de los botones dando doble clic en el fondo, para visualizar el color tenemos que ir a TOOLS en la parte superior y elegimos GUI OPCIONS aqu deseleccionamos la tercera opcin.

Ahora vamos a programar cada botn esto se hacer primero presionando el botn de play en el guide, observamos que en MATLAB en M-FILE se crea la programacin de cada botn que creamos en el guide.

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

A continuacin vamos la programacin que debe estar en este M-FLE


function varargout = caratula(varargin) % CARATULA M-file for caratula.fig % CARATULA, by itself, creates a new CARATULA or raises the existing % singleton*. % % H = CARATULA returns the handle to a new CARATULA or the handle to % the existing singleton*. % % CARATULA('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in CARATULA.M with the given input arguments. % % CARATULA('Property','Value',...) creates a new CARATULA or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before caratula_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to caratula_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Copyright 2002-2003 The MathWorks, Inc. % Edit the above text to modify the response to help caratula % Last Modified by GUIDE v2.5 03-Jan-2008 17:38:36 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @caratula_OpeningFcn, ... 'gui_OutputFcn', @caratula_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before caratula is made visible. function caratula_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to caratula (see VARARGIN) % Choose default command line output for caratula handles.output = hObject;

Andres Arizo von Maack

QUINTO ELECTRONICA

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

% Update handles structure guidata(hObject, handles); % UIWAIT makes caratula wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = caratula_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; % --- Executes on button press in SALIR. function SALIR_Callback(hObject, eventdata, handles) close gcf % hObject handle to SALIR (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% --- Executes on button press in ingresar. function ingresar_Callback(hObject, eventdata, handles) close gcf run grafica % hObject handle to ingresar (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% --- Executes on button press in caracteristica. function caracteristica_Callback(hObject, eventdata, handles) close gcf run curva % hObject handle to caracteristica (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

Las lneas que empiezan con % no son de programacin solo son de informacin no cumplen ninguna funcin.

Andres Arizo von Maack

QUINTO ELECTRONICA 10

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

Ahora creamos el siguiente GUIDE este lo vamos a guardar con el nombre de CURVA, con el procedimiento indicado anteriormente vamos a escoger tres PUSH BUTTON y un AXES este cuadro es para visualizar en este caso la forma de onda que vamos a obtener del diodo en dolarizacin directa.

Vamos a correr este guide con el botn de play y obtenemos la programacin de cada botn en MATLAB en M-FILE Esta es la programacin que debe estar en M-FILE
function varargout = curva(varargin) % CURVA M-file for curva.fig % CURVA, by itself, creates a new CURVA or raises the existing % singleton*. % % H = CURVA returns the handle to a new CURVA or the handle to % the existing singleton*. % % CURVA('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in CURVA.M with the given input arguments. % % CURVA('Property','Value',...) creates a new CURVA or raises the

Andres Arizo von Maack

QUINTO ELECTRONICA 11

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

% existing singleton*. Starting from the left, property value pairs are % applied to the GUI before curva_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to curva_OpeningFcn via varargin. % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Copyright 2002-2003 The MathWorks, Inc. % Edit the above text to modify the response to help curva % Last Modified by GUIDE v2.5 03-Jan-2008 17:52:14 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @curva_OpeningFcn, ... 'gui_OutputFcn', @curva_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before curva is made visible. function curva_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to curva (see VARARGIN) % Choose default command line output for curva handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes curva wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = curva_OutputFcn(hObject, eventdata, handles)

Andres Arizo von Maack

QUINTO ELECTRONICA 12

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

% varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; % --- Executes on button press in CURVA. function CURVA_Callback(hObject, eventdata, handles) x=0:0.001:0.7; y=(x.^67); plot(x,y),grid % hObject handle to CURVA (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in INICIO. function INICIO_Callback(hObject, eventdata, handles) close gcf run caratula % hObject handle to INICIO (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in curva1. function curva1_Callback(hObject, eventdata, handles) x=0:0.001:0.3; y=(x.^67); plot(x,y),grid % hObject handle to curva1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

Esta es la operacin para obtener la curva caracterstica del diodo en dolarizacin directa: DIODO GERMANIO
x=0:0.001:0.3; y=(x.^67); plot(x,y),grid

DIODO SILICIO
x=0:0.001:0.7; y=(x.^67); plot(x,y),grid

Ahora creamos el ultimo GUIDE este lo vamos a guardar con el nombre de GRAFICA, con el procedimiento indicado anteriormente vamos a escoger dos PUSH BUTTON, cuatro STATIC TEXT y cuatro EDIT TEXT para ingresar los datos de VOLTAJE PICO, FRECUENCIA, BOBINA, RESISTENCIA.

Andres Arizo von Maack

QUINTO ELECTRONICA 13

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

Vamos a correr este guide con el botn de play y obtenemos la programacin de cada botn en MATLAB en M-FILE Esta es la programacin que debe estar en M-FILE
function varargout = grafica(varargin) % GRAFICA M-file for grafica.fig % GRAFICA, by itself, creates a new GRAFICA or raises the existing % singleton*. % % H = GRAFICA returns the handle to a new GRAFICA or the handle to % the existing singleton*. % % GRAFICA('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in GRAFICA.M with the given input arguments. % % GRAFICA('Property','Value',...) creates a new GRAFICA or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before grafica_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to grafica_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Copyright 2002-2003 The MathWorks, Inc. % Edit the above text to modify the response to help grafica % Last Modified by GUIDE v2.5 03-Jan-2008 17:25:31 % Begin initialization code - DO NOT EDIT

Andres Arizo von Maack

QUINTO ELECTRONICA 14

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @grafica_OpeningFcn, ... 'gui_OutputFcn', @grafica_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before grafica is made visible. function grafica_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to grafica (see VARARGIN) % Choose default command line output for grafica handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes grafica wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = grafica_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; function Vpico_Callback(hObject, eventdata, handles) Vpico=str2double(get(handles.Vpico,'string')); data=getappdata(gcbf,'dibujo') data.Vpico=Vpico; setappdata(gcbf,'dibujo',data); % hObject handle to Vpico (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

Andres Arizo von Maack

QUINTO ELECTRONICA 15

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

% Hints: get(hObject,'String') returns contents of Vpico as text % str2double(get(hObject,'String')) returns contents of Vpico as a double % --- Executes during object creation, after setting all properties. function Vpico_CreateFcn(hObject, eventdata, handles) % hObject handle to Vpico (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function freq_Callback(hObject, eventdata, handles) freq=str2double(get(handles.freq,'string')); data=getappdata(gcbf,'dibujo') data.freq=freq; setappdata(gcbf,'dibujo',data); % hObject handle to freq (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of freq as text % str2double(get(hObject,'String')) returns contents of freq as a double % --- Executes during object creation, after setting all properties. function freq_CreateFcn(hObject, eventdata, handles) % hObject handle to freq (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function L_Callback(hObject, eventdata, handles) L=str2double(get(handles.L,'string')); data=getappdata(gcbf,'dibujo') data.L=L; setappdata(gcbf,'dibujo',data); % hObject handle to L (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of L as text % str2double(get(hObject,'String')) returns contents of L as a double

Andres Arizo von Maack

QUINTO ELECTRONICA 16

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

% --- Executes during object creation, after setting all properties. function L_CreateFcn(hObject, eventdata, handles) % hObject handle to L (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function R_Callback(hObject, eventdata, handles) R=str2double(get(handles.R,'string')); data=getappdata(gcbf,'dibujo') data.R=R; setappdata(gcbf,'dibujo',data); % hObject handle to R (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of R as text % str2double(get(hObject,'String')) returns contents of R as a double % --- Executes during object creation, after setting all properties. function R_CreateFcn(hObject, eventdata, handles) % hObject handle to R (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on button press in dibujo. function dibujo_Callback(hObject, eventdata, handles) data=getappdata(gcbf,'dibujo'); w=2.0*pi*data.freq; X=w*data.L/1000.0; if (X<0.001) X=0.001; end; Z=sqrt(data.R*data.R+X*X); loadAng=atan(X/data.R); A=data.Vpico/Z*sin(loadAng); tauInv=data.R/X; for n=1:360; theta=n/180.0*pi; X(n)=n; cur=data.Vpico/Z*sin(theta-loadAng)+A*exp(-tauInv*theta);

Andres Arizo von Maack

QUINTO ELECTRONICA 17

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

if (cur>0.0) Vind(n)=data.Vpico*sin(theta)-data.R*cur; iLoad(n)=cur; Vout(n)=data.Vpico*sin(theta); else Vind(n)=0; iLoad(n)=0; Vout(n)=0; end; end; subplot(2,2,1) plot(X,iLoad) title('Corriente en el diodo') xlabel('grados') ylabel('Amperios') grid subplot(2,2,2) plot(X,Vout) title('Voltaje en el ctodo') xlabel('grados') ylabel('Voltios') grid subplot(2,2,3) plot(X,Vind) title('Inductor Voltage') xlabel('grados') ylabel('Voltios') grid % hObject handle to dibujo (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in anterior. function anterior_Callback(hObject, eventdata, handles) close gcf run caratula % hObject handle to anterior (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

Andres Arizo von Maack

QUINTO ELECTRONICA 18

INSTITUTO TECNOLOGICO SUPERIOR AERONAUTICO

6. CONCLUSIONES: Observamos que el simulador MATLAB es una herramienta muy til que nos ayuda a obtener los resultados que deseamos sin necesidad de elementos fsicos, es de una programacin sin mucha dificultad por tal razn obteniendo la formula de las ondas requeridas es de gran ayuda. Observamos que esta practicas nos ayuda a comprender mejor el funcionamiento del circuito rectificador de media onda con carga RL gracias a las ondas que obtuvimos por la programacin en el simulador podemos observar que el rectificador de media onda permite el paso de corriente solo de un semiciclo esto sucede por que solo en este semiciclo se polariza directamente el diodo y conduce, la carga RL nos da e desfase en que se polariza el diodo directamente. 7. RECOMENDACIONES: Cuando guardemos los documentos en matlab debe ser con palabras seguidas no con espacio y tampoco deben ser nombres de funciones de programacin de este programa de simulacin. Para poder observar el color del fondo de cada guide debemos tener encuentra que desactivamos en las opciones la opcin indicada en la practica. Debemos estar muy seguros de que no haya equivocaciones en la programacin para no tener problemas posteriores al arrancar el programa de esta prctica. Cuando realizamos el Guide de grafica tenga en cuenta que las variables que vamos a ingresar, en la programacin tienen que estar acompaadas del data. Y la variable caso contrario no ingresa el dato y no corre el programa nos sale error Las lneas que empiezan con % no son de programacin solo son de informacin no cumplen ninguna funcin. 8. BIBLIOGRAFIA: Microsoft Encarta 2007 http://www.textoscientificos.com/fisica/resistencias http://www.monografias.com/trabajos5/matlab/matlab.shtml http://profesormolina2.webcindario.com/tutoriales/diodo.htm

Andres Arizo von Maack

QUINTO ELECTRONICA 19

You might also like