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.
- Clone
git clone https://github.com/ribasco/rpi-spectrum.git
- Compile
mvn clean compile
- Maven 3.x
- GLCD Simulator (Download from https://github.com/ribasco/glcd-emulator/releases)
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>"
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 sectioncreateDriver(GlcdConfig config)
underSpectrumAnalyzer.java
class.
- Maven 3.x
- Graphics LCD (e.g. ST7920)
- Single Board Computer device with Linux kernel 4.8x above (e.g. Raspberry Pi 3)
mvn exec:java