Code Monkey home page Code Monkey logo

ribasco / rpi-spectrum Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.63 MB

This is a simple Spectrum Analyzer project that will playback mp3 and draw the spectrum on a Graphics LCD display using Java. This also showcase the capabilites of the GLCD Simulator and UCGDisplay libraries. Audio samples are processed and analyzed with FFT algorithm using minim library.

Java 100.00%
spectrum analyzer java fft raspberry-pi ucgdisplay simulator audio mp3 playback

rpi-spectrum's Introduction

Spectrum Analyzer Demo Project

This is a simple Spectrum Analyzer project that will playback mp3 and draw the spectrum on a Graphics LCD display using Java. This also showcase the capabilites of the GLCD Simulator and UCGDisplay libraries. Audio samples are processed and analyzed with FFT algorithm using minim library.

YouTube Demo

YouTube Demo

Installation

  1. Clone
git clone https://github.com/ribasco/rpi-spectrum.git
  1. Compile
mvn clean compile

Usage

Simulation Mode

Prerequisites

Command Line Syntax

Pass the -simulation argument to activate simulation mode. Pass the -ip argument to specify the host ip Pass the -port argument to specify the host port

mvn exec:java -Dexec.args="-simulation -ip <host ip address>"

GLCD Mode

This project use the ST7920 display controller in Hardware SPI mode setting. If you have a different display or you need to change the bus interface settings etc, you can easily change this by modifying the code section createDriver(GlcdConfig config) under SpectrumAnalyzer.java class.

Prerequisites

  • Maven 3.x
  • Graphics LCD (e.g. ST7920)
  • Single Board Computer device with Linux kernel 4.8x above (e.g. Raspberry Pi 3)

Command Line Syntax

mvn exec:java

rpi-spectrum's People

Contributors

ribasco avatar

Watchers

 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.