Git Product home page Git Product logo

ziadsheriif / sama3ny Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 67.25 MB

Project aims to simulate multiplexing three signals on two carriers with two different frequencies where two of these signals are modulated using quadrature amplitude modulation, then the three signals are restored using synchronous carrier demodulation.

License: MIT License

MATLAB 100.00%
demodulation matlab modulation communications signal-processing

sama3ny's Introduction

SAMA3NY

"Don't Worry, Your Message Will Be Sent ๐Ÿ”Š"


Table of Contents


Overview

  • It is required to modulate three speech signals using the following scheme:


    and then perform synchronous demodulation.

  • Then do the following operation:

    1. Obtain the modulated signal. Plot it in time domain. Plot its magnitude spectrum
    2. Perform synchronous demodulation to restore the three signals.
    3. Perform demodulation three times with phase shifts of 10, 30, 90 degrees for both carriers.
    4. For x_1 (t), perform demodulation two times with a local carrier frequency that is different by 2 Hz and 10 Hz from its carrier frequency.
  • Project Description

Get Started

  1. Clone the repository.
    git clone https://github.com/ZiadSheriif/SAMA3NY
  2. Put Inputs in folder

  3. cd ./signals
  4. Run File

  5. cd ./project.m
  6. Output will be in folder

  7. cd ./Output_signals

Work Explanation

Input signals

Firstly, we read three signals with different sounds and make them have the same frequency sampling =250000 by make resemble to them and find the length of each one along with max length in-order to be able to sum all modulated signal of each input. We make all audios have the same length by adjusting all of them by adding zero to make have same length. Secondly got time and frequencies intervals. Then we calculated omega (ฯ‰1, ฯ‰2) by ฯ‰=2piconst in frequency domain. Then we got carrier in cos and sin domain Carrier Signal One=cos (2pi ฯ‰1) Carrier Signal Two=sin (2pi ฯ‰2)


Signal 1
Signal 2
Signal 3

Modulated signal:

  1. Calculate modulated signal by multiplying signal and carrier
  2. Calculate Fourier transform of modulated signal returned from step 1
  3. Calculate phase of modulated signal returned from step 1
  4. Sum all modulated signals of all audios
  5. FFT to summation of modulated signals
  6. Calculate phase of modulated signals
  7. Calculate frequency band pass which is used in de-modulation

De-modulation:

  1. Calculate demodulated signal by multiplying carrier and modulation signal
  2. Calculate low pass filter used frequency sampling.
  3. Perform demodulation three times with phase shifts of 10, 30, 90 degrees for both carriers

    Note: (before each phase shift calculate carrier phase).

  4. Perform demodulation two times with a local carrier frequency that is different by 2 Hz and 10 Hz from its carrier frequency.

๐Ÿ’ป Demodulation with phase shift 10:

Note: Interference in sounds between signal 2 and signal 3 when make demodulation to them. Signal 1 become little weaker.


๐Ÿ’ป Demodulation with phase shift 30:

Note: More Interference in sounds between signal 2 and signal 3 when make demodulation to them. Signal 1 become Weaker.


๐Ÿ’ป Demodulation with phase shift 90:

Note: When make demodulation to signal 3 output is signal 2 and make demodulation to signal 2 output is signal3 Signal 1 be equal zero (no sound).


๐Ÿ’ป Demodulation with a local carrier frequency that is different by 2 Hz:

Note: Interference in sounds between signal 2 and signal 3 when make demodulation to them. All signals have been occurred distortion on them.


๐Ÿ’ป Demodulation with a local carrier frequency that is different by 10 Hz:

Note: More Interference in sounds between signal 2 and signal 3 when make demodulation to them. All signals have been occurred more distortion on them.


Contributors



Ziad Sherif


Eslam Ashraf


๐Ÿ”’ License

Note: This software is licensed under MIT License, See License for more information ยฉSAMA3NY.

sama3ny's People

Contributors

eslamashhraf avatar ziadsheriif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

eslamashhraf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.