Skip to main content

A library for QPSK modulation

Project description

qpsk_mod

Perform Quadrature Phase Shift Keying (QPSK) modulation on the input signal.

Parameters:
a (array-like): Input binary data stream.
fc (float): Carrier frequency.
of (int): Oversampling factor, determining the number of samples per symbol.

Returns:
tuple:
    s_t (numpy.ndarray): The modulated signal in the time domain.
    I (numpy.ndarray): The in-phase component of the input signal.
    Q (numpy.ndarray): The quadrature component of the input signal.

This function performs the following steps:
1. Separates the input data stream into in-phase (I) and quadrature (Q) components.
2. Upsamples and converts the binary data into bipolar format.
3. Modulates the in-phase component with a cosine carrier.
4. Modulates the quadrature component with a sine carrier.
5. Combines the modulated components to form the QPSK modulated signal.
6. Plots various intermediate signals for visualization.

Example:
>>>import qpsk_mod as qp
>>> a = np.array([0, 1, 1, 0, 1, 1, 0, 0])
>>> fc = 100
>>> of = 4
>>> s_t, I, Q = qp.qpsk_mod(a, fc, of)

Installation

pip install qpsk-mod

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qpsk_mod-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qpsk_mod-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file qpsk_mod-0.1.0.tar.gz.

File metadata

  • Download URL: qpsk_mod-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for qpsk_mod-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c5456ac1d0ad6299f0737bb37e7d4e84e9266bef94d9378bbb0567a1f3d46d1f
MD5 c735484918296069f50a52bbb0cda4ab
BLAKE2b-256 bc0b6dcdc0688e365b7b9d1093c54383316f76206b451cb174d321d0de958a31

See more details on using hashes here.

File details

Details for the file qpsk_mod-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qpsk_mod-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for qpsk_mod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ebea860e880ed0a5643c99b367182e2d6b49153abdcea1ff4bc8c3250997e20
MD5 725758fc8ab3c46de0cdaf613d2156f0
BLAKE2b-256 3cea33558eaf9002c335f4f0732815e58ebbb951fb0635ebf2ae9d73b5a794d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page