Giter Club home page Giter Club logo

vipcw-spectrogram's Introduction

vipcw-spectrogram

Full breakdown: vip.gatech.edu/wiki/index.php/Collaborative_Workforce

###To run:###

  1. For the receiver *cd receiver *make

2.For the sender *cd sender *make

C Socket Examples: http://www.binarytides.com/server-client-example-c-sockets-linux/

GTK+ Image Display resources:

http://www.cs.dartmouth.edu/~xy/cs23/gtk.html

http://www.gtk.org/api/2.6/gtk/GtkImage.html

To install (including documentation): sudo apt-get install libgtk-3-dev libgtk-3-doc

On how to compile: http://zetcode.com/tutorials/gtktutorial/introduction/

Make library object: "gcc -lm -o fft.o -c fft.c"

To compile test: "gcc fft_testing.c fft.o -o fft_testing -lm"

Compile monofft: "gcc monofft.c fft.o -o runMonofft -lm"

Running the variable monofft:

"runVarMonofft wavs/filetotransform.wav monoFile.wav leftChannelData.txt 4Matlab.csv"

Online Chirp Generator: http://www.audiocheck.net/audiofrequencysignalgenerator_sweep.php

This project will sample a .wav file using an fft and afterwardsc represent it in a graphical manner to be used on a Raspberry Pi.

After using an fft to transform a signal from the time domain to the frequency domain, we can use a python script to show the spectrogram.

FFT Calculator: http://www.random-science-tools.com/maths/FFT.htm

FFT Test Vectors: http://www.sccon.ca/sccon/fft/fft3.htm

Understanding FFT's: http://www.youtube.com/watch?v=H144ipQa22Q

WaveFormat: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/

FFT basics: http://www.dspguru.com/dsp/faqs/fft http://www.dspguide.com/ch12/2.htm

To run fft.c:

Change to the directory for the shared folder CW

There should be a script file in the folder called compileOPT. We will use this file to compile the FFT code that turns a WAV file into a single channel then perform the transform, finally outputting the values into a text file.

While in the same directory, type in the console ./compileOPT to compile the code using the board's compiler. A new file named fft will now appear in the directory. We will use this on the board.

Now, in order to make it work on the board we need to move the fft file and the bird.wav file to the directory where the board is located.

Change the directory to home/ti/filesys/home/root and drop the two files here.

Boot up the board through SecureCRT. You should be in the correct directory where the previous files were moved.

To run the code on the board, type ./fft

You should now have a few new files in the directory, namely monobird.wav birdfft.txt

The values in birdfft.txt should already be normalized. These are then passed to the video display.

###Server###

The server allows data from a single sender Raspberry Pi to be sent to multiple receivers.

To run:

Change current directory to Server

Type make in console. A file called rec should appear.

Type ifconfig to get IP address of computer hosting the server

On Sender Raspberry Pi:

Change current directory to vipcw-spectrogram/sender and type make in console A file named sender should appear

Type ifconfig in console to get sender IP address

Type ./sender to run sender

On Computer running server

Type ./rec

Receiver:-

Go to vipcw-spectrogram/receiver and type make

Run using ./receiver

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.