You are on page 1of 13

DEPARTAMENTO DE ELÉCTRICA Y ELECTRÓNICA

CARRERA DE ING. EN ELECTRÓNICA E


INSTRUMENTACIÓN

ASIGNATURA: SISTEMAS DE COMUNICACIONES

TEMA: MODULACION AM
PROFESOR:
Ing. Cesar Naranjo
ALUMNO
Daniel Maldonado
Brayan Pila

Fecha de entrega: 16-11-2017


UNIVERSIDAD DE LAS FUERZAS ARMADAS
ESPE EXTENSIÓN LATACUNGA
DEPARTAMENTO DE ELECTRICA Y ELECTRONICA

PRÁCTICA DE LABORATORIO
CÓDIGO DE LA
CARRERA NOMBRE DE LA ASIGNATURA
ASIGNATURA
Electrónica e
2092 Sistemas de Comunicaciones
Instrumentación
PRÁCTICA
N° Tema:
MODULACIÓN AM EN MATLAB

Integrantes:
1 Daniel Maldonado
Brayan Pila
-

1 OBJETIVO

OBJETIVO GENERAL:
 Realizar un programa de un modulador AM el cual permita ingresar los parámetros necesarios para ser
simulada

OBJETIVOS ESPECIFICOS:
 Representar la modulación de una señal AM y observar su comportamiento
 Visualizar las señales de información, portadora, modulada y los espectros de frecuencia y potencia de
la señal modulada.
 Estudiar el comportamiento de la señal modulada a diferentes índices de modulación.

2 RESUMEN
El diseño de un modulador AM, donde vemos las diferentes representaciones de formas de ondas de señales
moduladas mediante la presencia de ruido y sin ruido formas de onda de la señal portadora, información, ruido
y la señal modulada, como parámetros principales para la simulación necesitaremos de la frecuencia de la señal
portadora, información, amplitud, valor de modulación y ruido. Mediante la realización de esta programa
podremos tener una mejor visión en cuanto a conversores da un modulador AM.

3 MARCO TEORICO

MATLAB
MATLAB es un entorno de cálculo técnico de altas prestaciones para cálculo numérico y visualización. Integra:
 Análisis numérico
 Cálculo matricial
 Procesamiento de señales
 Gráficos

En un entorno fácil de usar, donde los problemas y las soluciones son expresados como se escriben
matemáticamente, sin la programación tradicional. El nombre MATLAB proviene de ``MATrix LABoratory''
(Laboratorio de Matrices). MATLAB fue escrito originalmente para proporcionar un acceso sencillo al software
matricial desarrollado por los proyectos LINPACK y EISPACK, que juntos representan lo más avanzado en
programas de cálculo matricial. MATLAB es un sistema interactivo cuyo elemento básico de datos es una matriz
que no requiere dimensionamiento. Esto permite resolver muchos problemas numéricos en una fracción del
tiempo que llevaría hacerlo en lenguajes como C, BASIC o FORTRAN. MATLAB también proporciona una serie
de soluciones específicas denominadas TOOLBOXES. Estas son muy importantes para la mayoría de los usuarios
de MATLAB y son conjuntos de funciones MATLAB que extienden el entorno MATLAB para resolver clases
particulares de problemas como:
 Procesamiento de señales
 Diseño de sistemas de control
 Simulación de sistemas dinámicos
 Identificación de sistemas
 Redes neuronales y otros.

MODULACIÓN AM

La modulación de amplitud o amplitud modulada (AM) es una técnica utilizada en la comunicación electrónica,
más comúnmente para la transmisión de información a través de una onda transversal de televisión. La
modulación en amplitud (AM) funciona mediante la variación de la amplitud de la señal transmitida en relación
con la información que se envía. Contrastando esta con la modulación de frecuencia, en la que se varía la
frecuencia, y la modulación de fase, en la que se varía la fase. A mediados de la década de 1870, una forma de
modulación de amplitud, inicialmente llamada "corrientes ondulatorias", fue el primer método para enviar con
éxito audio a través de líneas telefónicas con una calidad aceptable.

Aplicaciones tecnológicas de la AM
Una gran ventaja de AM es que su demodulación es muy simple y, por consiguiente, los receptores son sencillos
y baratos; un ejemplo de esto es la radio a galena. Otras formas de AM como la modulación por Banda lateral
única o la Doble Banda Lateral son más eficientes en ancho de banda o potencia pero en contrapartida los
receptores y transmisores son más caros y difíciles de construir, ya que además deberán reinsertar la onda
portadora para conformar la AM nuevamente y poder de-modular la señal trasmitida.
La AM es usada en la radiofonía, en las ondas medias, ondas cortas, e incluso en la VHF: es utilizada en las
comunicaciones radiales entre los aviones y las torres de control de los aeropuertos. La llamada "Onda Media"
(capaz de ser captada por la mayoría de los receptores de uso doméstico) abarca un rango de frecuencia que va
desde 500 a 1700 kHz

Índice de modulación
El índice de modulación de AM es una medida de la variación de amplitud que rodea una portadora no modulada.
Al igual que con otros índices de modulación, en AM esta cantidad (también llamada "profundidad de
modulación") indica la variación introducida por la modulación respecto al nivel de la señal original. En AM, se
refiere a las variaciones en la amplitud de la portadora y se define como:

Donde y son la amplitud del mensaje y la amplitud de la portadora, respectivamente.

Así que si , la amplitud de la portadora varía en un 50% por encima (y por debajo) de su nivel original
(Ilustración 1); para , la señal varía en un 100% (Ilustración 2). Para evitar la distorsión, la profundidad
de modulación no deberá exceder del 100%. En sistemas de transmisión por lo general se incorporará un circuito
limitador para asegurar cumplir este requisito. Sin embargo, los demoduladores de AM pueden ser diseñados
para detectar la inversión de fase que se produce cuando la modulación excede el 100% (Ilustración 3), y
automáticamente corrige este defecto. A continuación se muestran unas imágenes en las que se pueden observar
los resultados de modular con diferentes índices de modulación.
Ilustración 1: Señal modulada con índice de modulación de 0.5

Ilustración 2: Señal modulada con índice de modulación igual a 1.

Ilustración 3: Señal modulada con índice de modulación mayor a 1.

4 ACTIVIDADES A DESARROLLAR

1. Realizar el programa de un modulador AM en el programa Matlab.


2. Utilizar una interfaz gráfica del programa ya mencionado.
3. Realizar las conclusiones adecuadas referentes al tema.

5 ANÁLISIS DE RESULTADOS

ANÁLISIS DE RESULTADOS

INTERFAZ DE MODULACIÓN EN AM

MODULACION SIN RUIDO


Figura 1 Interfaz Guide modulación AM

MODULACION SIN RUIDO CON INDICE DE 50%

Figura 2 Modulación con índice al 50%

Como se puede observar lo señal de información se encuentra sin ruido por lo tanto a la hora de modular la nueva
señal nos muestra una señal modulada limpia sin ningunos picos que afecten a la información, además en el
espectro de frecuencia no presenta ninguna variación.

MODULACION SIN RUIDO CON INDICE DE 100%


Figura 3 Modulación con índice al 100%
El índice de modulación es el ideal por lo tanto el envió de información es efectivo y no presenta ninguna
perdidas al momento de enviarlas.

MODULACION CON RUIDO

MODULACION CON RUIDO DE INDICE AL 40%

Figura 4 Modulación con índice al 40%


El ruido afecta de muchas maneras en la señal, por lo que al realizar la modulación este también se verá afectado
produciéndole pequeñas perturbaciones, además el espectro de frecuencia se distorsiona en pequeña mediada en
comparación con la modulación sin ruido.

MODULACION CON RUIDO DE INDICE AL 100%


Figura 5 Modulación con índice al 100%

6 CONCLUSIONES
 Este diseño podrá ser utilizado para aprendizaje en clases, lo cual será un aporte neto para el conocimiento
claro y preciso del tema de Modulación AM y tendremos una noción clara del modulador AM.
 Cuando el índice de modulación es mayor o igual a 1 se produce una sobre modulación en la señal lo
provoca pérdidas de la información.
 EL modulador AM simulado nos permitirá ampliar nuestro conocimiento, en cuanto a los parámetros que
se deberá utilizar para su simulación, los cuales fueron estudiados anteriormente.
 Si aplicamos amplitud altas a la señal de información y a la portadora el ruido que aplicamos es
indetectable para nuestra vista.

7 RECOMENDACIONES

 Para realizar un modulador AM es recomendable utilizar el programa Matlab por la funcionalidad que
presta y aún más si se trabaja en una interfaz gráfica.
 Para realizar la presente modulación es necesario conocer los parámetros fundamentales que intervienen
en una modulación AM
 Trabajar directo en la interfaz gráfica de Matlab debido a que es más amigable con el usuario por lo que
es muy útil en la aplicación de este ejemplo de modulación.

8 BIBLIOGRAFIA

 http://nereida.deioc.ull.es/~pcgull/ihiu01/cdrom/matlab/contenido/node2.html
 https://es.wikipedia.org/wiki/MATLAB
 https://es.wikipedia.org/wiki/Amplitud_modulada

Anexos

function varargout = MODULACION(varargin)


% MODULACION MATLAB code for MODULACION.fig
% MODULACION, by itself, creates a new MODULACION or raises the existing
% singleton*.
%
% H = MODULACION returns the handle to a new MODULACION or the handle to
% the existing singleton*.
%
% MODULACION('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in MODULACION.M with the given input arguments.
%
% MODULACION('Property','Value',...) creates a new MODULACION or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before MODULACION_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to MODULACION_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

% Edit the above text to modify the response to help MODULACION

% Last Modified by GUIDE v2.5 15-Nov-2017 22:02:25

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @MODULACION_OpeningFcn, ...
'gui_OutputFcn', @MODULACION_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 MODULACION is made visible.


function MODULACION_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 MODULACION (see VARARGIN)

% Choose default command line output for MODULACION


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

% UIWAIT makes MODULACION wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.
function varargout = MODULACION_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 EO_Callback(hObject, eventdata, handles)
% hObject handle to EO (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 EO as text


% str2double(get(hObject,'String')) returns contents of EO as a double

% --- Executes during object creation, after setting all properties.


function EO_CreateFcn(hObject, eventdata, handles)
% hObject handle to EO (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 && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function A_Callback(hObject, eventdata, handles)


% hObject handle to A (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 A as text


% str2double(get(hObject,'String')) returns contents of A as a double

% --- Executes during object creation, after setting all properties.


function A_CreateFcn(hObject, eventdata, handles)
% hObject handle to A (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 && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in MOD.


function MOD_Callback(hObject, eventdata, handles)
a=str2num(get(handles.A,'str'));
eo=str2num(get(handles.EO,'str'));
f=str2num(get(handles.W,'str'));
fo=str2num(get(handles.WO,'str'));
z=0;
gg='Datos incorrectos'
axes(handles.axes1)
plot(0)
axes(handles.axes6)
plot(0)
axes(handles.axes7)
plot(0)
axes(handles.axes8)
plot(0)
if fo<530 | fo>1700

set(handles.mensaje,'str',gg)

else

imo=(a/eo)*100;
set(handles.INDICE,'str',imo)
RUD=get(handles.RUIDO,'value');
f=f*1000;
fo=fo*1000;

Tp=1/fo;
Tin=1/f;
ejex=0:1/1000000000:0.001000001;

vp=eo*sin(2*pi*fo*ejex);
axes(handles.axes1)
plot(ejex,vp)
axis([0 (6*Tp) -5 5]);
xlabel('t(S)');
ylabel('A(V)');
title('Portadora');

vin=a*sin(2*pi*f*ejex)+(RUD*rand(size(ejex)));
axes(handles.axes6)
plot(ejex,vin)
axis([0 Tin -5 5]);
xlabel('t(S)');
ylabel('A(V)');
title('Informacion');

vam=vp.*(1+(vin/eo));
axes(handles.axes7)
zoom on
plot(ejex,vam)
axis([0 (3*Tin) -10 10]);
xlabel('t(S)');
ylabel('A(V)');
title('Modulada');
x0=length(vam);

sp=[0:0.001:a];
axes(handles.axes8)
plot((fo-f),sp)
hold on
sp2=[0:0.001:eo];
plot(fo,sp2)
hold on
plot((fo+f),sp)
axis([(fo-(2*f)) (fo+(2*f)) 0 eo])
hold off

%esp=fft(vam);
%A=esp.*conj(esp);
%f1=0:610000;
%f2=1:599901;
%length(f1)
%length(f2)
%axes(handles.axes8)
%plot(A)

%ejex2=0:100:100000100;
%x1=length(ejex2)
%esp=fft(vam);
%x2=length(esp)
%axes(handles.axes8)
%plot(ejex2,esp)

% hObject handle to MOD (see GCBO)


% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% --- Executes on slider movement.


end
function RUIDO_Callback(hObject, eventdata, handles)
% hObject handle to RUIDO (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,'Value') returns position of slider


% get(hObject,'Min') and get(hObject,'Max') to determine range of slider

% --- Executes during object creation, after setting all properties.


function RUIDO_CreateFcn(hObject, eventdata, handles)
% hObject handle to RUIDO (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: slider controls usually have a light gray background.


if isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end

function edit7_Callback(hObject, eventdata, handles)


% hObject handle to W (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 W as text


% str2double(get(hObject,'String')) returns contents of W as a double

% --- Executes during object creation, after setting all properties.


function edit7_CreateFcn(hObject, eventdata, handles)
% hObject handle to W (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 && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on key press with focus on MOD and none of its controls.
function MOD_KeyPressFcn(hObject, eventdata, handles)
% hObject handle to MOD (see GCBO)
% eventdata structure with the following fields (see UICONTROL)
% Key: name of the key that was pressed, in lower case
% Character: character interpretation of the key(s) that was pressed
% Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
% handles structure with handles and user data (see GUIDATA)

function WO_Callback(hObject, eventdata, handles)


% hObject handle to WO (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 WO as text


% str2double(get(hObject,'String')) returns contents of WO as a double

% --- Executes during object creation, after setting all properties.


function WO_CreateFcn(hObject, eventdata, handles)
% hObject handle to WO (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 && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function W_Callback(hObject, eventdata, handles)


% hObject handle to W (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 W as text


% str2double(get(hObject,'String')) returns contents of W as a double

% --- Executes during object creation, after setting all properties.


function W_CreateFcn(hObject, eventdata, handles)
% hObject handle to W (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 && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function mensaje_Callback(hObject, eventdata, handles)


% hObject handle to mensaje (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 mensaje as text


% str2double(get(hObject,'String')) returns contents of mensaje as a double

% --- Executes during object creation, after setting all properties.


function mensaje_CreateFcn(hObject, eventdata, handles)
% hObject handle to mensaje (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 && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in BORRAR.


function BORRAR_Callback(hObject, eventdata, handles)
jj='';
set(handles.A,'str',jj)
set(handles.EO,'str',jj)
set(handles.W,'str',jj)
set(handles.WO,'str',jj)
axes(handles.axes1)
plot(0)
axes(handles.axes6)
plot(0)
axes(handles.axes7)
plot(0)
axes(handles.axes8)
plot(0)
% hObject handle to BORRAR (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

You might also like