Skip to main content

BPSK modulation and demodulation functions

Project description

BPSK Modulation and Demodulation

This package provides functions for BPSK modulation and demodulation.

Installation

You can install the package via pip:

.. code:: bash

pip install bpsk_mod

Usage

Here is an example of how to use the package:

import numpy as np
from bpsk_mod.modulation import modulator, demodulator

# Parameters
N = 1000  # Number of bits
L = 16    # Upsampling factor

# Generate random binary message
bit = np.random.randint(0, 2, N)

# Modulate the message
modulated_signal, t = modulator(bit, L)

# Demodulate the signal (e.g., with noise)
received_signal = modulated_signal  # Assume no noise for simplicity
demodulated_bits = demodulator(received_signal, L)

# Print the demodulated bits
print("Demodulated bits:", demodulated_bits)

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

bpsk_mod-0.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

bpsk_mod-0.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file bpsk_mod-0.0.0.tar.gz.

File metadata

  • Download URL: bpsk_mod-0.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for bpsk_mod-0.0.0.tar.gz
Algorithm Hash digest
SHA256 19788cb60de1e6a98cae804a68a8dc3044faef84936ed0a88f16c58fc767e008
MD5 ab1ae3e89fbd2d556b78110ea1bc2887
BLAKE2b-256 f00b6a522a1b321c61b3bc893feb06f86f4c0143c5326571dff7ef05b1b21394

See more details on using hashes here.

File details

Details for the file bpsk_mod-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: bpsk_mod-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for bpsk_mod-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc4196aa30460e8541f6d617f8be68f27e08551d5f28c979163f74198028b06
MD5 961003ea4249003c2c618f0f1f5e564e
BLAKE2b-256 8983fbed67d843a8ea8d011d60ead49e20fde713d16420ae7af144f1715762e5

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