Giter Site home page Giter Site logo

mshakeelt / sound_visualizer_using_raspberrypi Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 1.58 MB

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

Python 100.00%
multiprocessing intensity raspberry-pi-3b gpio sound

sound_visualizer_using_raspberrypi's Introduction

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

sound_visualizer_using_raspberrypi's People

Contributors

mshakeelt avatar

Forkers

aswanepo

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.