Project tutorial
Audio Visualizer Using DragonBoard410c

Audio Visualizer Using DragonBoard410c © MIT

DragonBoard + NeoPixels = Party!

  • 748 views
  • 0 comments
  • 2 respects

Components and supplies

About this project

About

This project aims to demonstrate the various possibilities of using the audio analog header on the DragonBoard410c.In this particular project I'll be focusing on the mic input and how that can be used to input audio with Line-In from another audio source like a HiFi system.That line-in signal then gets used to drive the NeoPixels connected to an Arduino.

1) Hardware

1.1) Hardware Requirements

1.2) Hardware Setup

  • Arduino Setup

DragonBoard410c Audio Input Setup

  • Since the analogue header is designed for Mic input level, we need to tone down the line input. To do that we'll be using a simple circuit:

Values for the Components are as follow:

  • R1: 22KOhm
  • R2 & R3: 2.7KOhm
  • C1: 22uF (Bipolar)

For the stereo input we are using the following pins:

  • CDC_MIC2_P: Pin 6
  • CDC_MIC1_P: Bottom Right pin on the GM1 (Underside of the Low-speed Connector)

2) Software:

Code Available AT: https://github.com/96boards-projects/audio-visualizer-db410c

2.1) DragonBoard410c Setup

$ sudo apt install python-smbus

2.2) Arduino Setup

Flash src/neopixel.ino using the Arduino IDE.

3) Setup and Run the Visualizer

  • Setup Alsa for stereo input:
$ sudo ./src/setup_alsa.sh
  • Run the Python code
$ sudo arecord -D plughw:0,2 -r 48000 -f S16_LE -c 2 | python src/visual.py

References:

Code

Github
https://github.com/96boards-projects/audio-visualizer-db410c
Gist
https://gist.github.com/daniel-j/f1406e301ab2c38ba53c

Schematics

connecting Arduino, db410c and neopixels
Audio viz schem 6nbnkgvya0
Db410c analogue audio circuit
Circuit vfzrrkon9g

Comments

Similar projects you might like

RGB 32-Band Audio Spectrum Visualizer

Project tutorial by janux

  • 12,653 views
  • 9 comments
  • 11 respects

FHT Audio Spectrum Visualizer

Project tutorial by janux

  • 8,689 views
  • 27 comments
  • 13 respects

32-Band Audio Spectrum Visualizer Analyzer

Project showcase by shajeeb

  • 127,157 views
  • 169 comments
  • 262 respects

RGB Backlight + MSGEQ7 Audio Visualizer

Project tutorial by PhilKey

  • 31,333 views
  • 10 comments
  • 37 respects

RGB Matrix Audio Visualizer with Arduino

Project tutorial by Sridhar Rajagopal

  • 13,354 views
  • 18 comments
  • 34 respects

Arduino Audio Reactive Desk Light

Project tutorial by Haziq Azri

  • 31,738 views
  • 6 comments
  • 53 respects
Add projectSign up / Login