Posts Tagged ‘C++’

Visualize Music with a Muscled FPGA

Tuesday, September 13th, 2016

Picture of LED Music Visualizer with Zybo Board

The Zybo Board is one of the most powerful tools in FPGA and this is because it is FPGA combined with an ARM processor that widens the spectrum of possibilities with FPGA. Today’s post is yet another dive into Zybo’s possibilities and in this project a visualization of audio signals or music will be accomplished. The author has been very detailed about this project and has explained every aspect of it in 18 steps.

The Hardware needed for carrying out this project are the Zybo Zynq 7000 FPGA board, a neo pixel LED matrix, a 5V 10 A power supply, a female DC power adapter, 3 pin male to male header, a 1mF capacitor, an audio splitter and some jumper wires. The connection diagram is provided by the author in step 17.

The code basically uses the principle of FFTs to detect frequency components in the audio file. Depending upon the magnitude of frequencies received, the LED display has been programmed to light up. 16 steps starting from opening Vivado to run the code to generating a bit file for the FPGA has been provided by the author. You can download a zip file which contains all modules relevant to the project. The author has used a combination of C, custom Verilog and HDL to code the project. This gives an ease in defining GPIO ports and makes the circuit a lot simpler.

Another interesting aspect is that the FPGA has been so coded that with the help of switches, your LED matrix can either act as a spectrogram or as a visualizer seen in media players.

Let me challenge you to achieve similar results adapting your own FPGA!

By jtdykstra

Undocumented Dx display running with an FPGA

Thursday, September 27th, 2012

He everyone! Today we got another great FPGA based project for you that we found over at hamsterworks.co.nz. Mike Field a.k.a Hamster wanted to use an undocumented display board from Deal Extreme with an FPGA board but as mentioned in the title there was absolutely no documentation available for this display except an Arduino Library written in C++ that he ported into a hardware implementation to realize his project!

The board used in this project is a TM1638 display that has 8 buttons, 8 red/green LEDs and 8 seven-segment displays, The project lights one of these 8 segments in each display, and turns all the LEDS on.

“This Deal Extreme display, the TM1638, features enough seven-segment displays, LEDs and buttons to build something really cool, and surprisingly isn’t terribly hard to interface with a microcontroller. The TM1638 library communicates with the outside world via only three pins and a simple serial connection.”

Mike wrote a hardware implementation for a Digilent Nexys2 board and a Digilent Basys2 board and the display is running nicely on these boards just like it does with an Arduino and it could be used to debug HDL code for these FPGAs.

We’ve got the original article here if you want to read the whole thing complete with tech specs and source code etc…

Feel free to discuss in the comments thread.

(Via HackaDay and hamsterworks)