Visualizing audio input streams with data sent over USB Serial to an Arduino.
Pyaudio on Windows
Neopixel for Arduino.
- Arduino (I did this on an Uno R3)
- An addressable RGB strip (I used the ws2812b LEDs)
- Windows system (Pyaudio is cross-compatible, though)
Connect your Arduino to your PC and the Lights to an appropriate data pin (power is your own business).
In lumaudiono.ino
Set your LED_COUNT
and your data PIN
Upload the lumaudiono.ino to your Arduino. It'll now be waiting for usb serial traffic.
In the poorly named host_audio.py
Set AUDIO_INPUT_ID
to any active audio input id. If you don't know an id, be sure to run printSystemAudioInput.py and find an apropriate input device.
Select your correct ARDUINO_PORT
and run!