Skip to content

Visualization of Sound frequency and intensity on an individually addressable LED strip WS2812b using Raspberry Pi 3B+.

Notifications You must be signed in to change notification settings

mshakeelt/Sound_Visualizer_Using_RaspberryPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualization of Realtime Sound Frequency and Intensity using Raspberry Pi 3B+ and WS2812b LED Strip

This repository contains the fork of scot lawson library of audio reactive led strip. I have implemented the library with multiprocessing and GPIO inputs. GPIO pins are connected with the pushbutton to change the visualization from frequency to intensity and vice versa.

Required Hardware

  • Raspberry Pi 3B+
  • USB Microphone
  • Individually Addressable LED Strip (WS2812b)
  • Strip case (optional)
  • Breadboard + connectors
  • Push Buttons
  • Some Resistors and Capacitors for Debouncing Circuit for Push Buttons

Required Libraries

  • pyaudio
  • neopixel
  • numpy
  • scipy
  • sys
  • multiprocessing
  • RPi.GPIO
  • platform

Usage

python main.py frequency or python main.py intensity

Multiprocessing Block Diagram

With the device bootup the raspberrypi starts waiting for the GPIO input. When user push a button connected to GPIO pin then update function gets called and corresponsing visualization gets displayed on the led strip as a separate process. So one process checks on the GPIO pins and other takes the audio input and create a display on the led strip. multiprocessing

Device Flow Diagram

Here is the device flow diagram which tells how push buttons are communicating with the raspberrypi. Device Flow

Visualizations

Here are some examplary visualizations. visualizations

Reference

https://github.com/scottlawsonbc/audio-reactive-led-strip

Setup Tutorial without Push Buttons and Multiprocessing

IMAGE ALT TEXT HERE

About

Visualization of Sound frequency and intensity on an individually addressable LED strip WS2812b using Raspberry Pi 3B+.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages