Giter Site home page Giter Site logo

chirpsim's Introduction

chirpsim

A super low fidelity time simulation of a chirp signal and doppler shifting. This tool was originally to help me (Aaron) gain a better understanding of signal mixing, by showing what a significant bandwidth signal (chirp) looks like:

  • When upconverted...
    • aka mixed, and band-pass filtered for fLO+fIF
  • When doppler shifted
  • When downconverted...
    • aka mixed with an LO that's corrected and uncorrected for the doppler shift/distortion, and band-pass filtered for fRF-fLO

The following is a color-coded diagram of what the script simulates, corresponding to the outputs below.
Overview Diagram

Requirements

  • Python 3.x
  • Numpy
  • Matplotlib
  • Scipy

Installation

Clone this repository:

git clone [email protected]:openlunar/chirpsim.git
cd chirpsim/
pip install -r requirements.txt

Currently, this tool cannot be installed as a package. You must run it out of the repository directory.

Usage

Navigate to the repo's root folder, and run chirpsim.py with arguments:

cd chirpsim/
python chirpsim.py

Or with arguments as desired:

python chirpsim.py [-h] [-t T_MAX] [-s SIZE] [-d DOPPLER] [-bw BW]
                   [-fc F_CENTER] [-fr F_RATE] [-lf LO_F] [-lp PHASE]

Or for help, do the usual:

python chirpsim.py --help

Command Line Arguments

There are unfortunately quite a few args, but hey, what can you do:

optional arguments:
  -h, --help            show this help message and exit
  -t T_MAX, --t-maxx T_MAX
                        total simulation time, in seconds
  -s SIZE, --time-steps SIZE
                        number of timesteps
  -d DOPPLER, --doppler DOPPLER
                        amount of doppler shifting to apply to the chirp
                        signal, in percent

chirp_chars:
  chirp signal characteristics

  -bw BW, --bandwidth BW
                        bandwidth of the chirp signal, in hz
  -fc F_CENTER, --center-frequency F_CENTER
                        center frequency of the chirp signal, in hz
  -fr F_RATE, --frequency-rate F_RATE
                        rate that the chirp spans its bandwidth, in hz/s

lo_chars:
  lo signal characteristics

  -lf LO_F, --lo-frequency LO_F
                        frequency of the lo signal, in hz
  -lp PHASE, --lo-phase PHASE
                        phase shift of the demixing lo, from the mixing lo, in
                        deg

Output

The following plots should show up, which are both color coded to the overview diagram above.

A plot of the time domain:
Time Plot

A plot of the frequency domain:
Frequency Plot

chirpsim's People

Contributors

a3ng7n avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

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.