Skip to content

96boards-projects/audio-visualizer-db410c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio Visualizer using DragonBoard410c

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.

Table of Contents

1) Hardware

1.1) Hardware requirements

1.2) Hardware Setup

  • Arduino Setup
Arduino Nano Level Shifter HV <-> Level Shifter LV DB410c LS NeoPixels
A5 (SCL) HV1 <-> LV1 15 (I2C0_SCL)
A4 (SDA) HV2 <-> LV2 17 (I2C0_SDA)
5V HV <-> LV 35 (1v8) 5v
GND GND <-> GND GND GND
D6 NA DI

Schematics

  • DragonBoard410c Audio Input Setup

    • Since the analog 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:

      analog 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

2.1) DragonBoard410c Setup

2.2) Arduino setup

  • Flash src/neopixel.ino using the Arduino IDE.

3) Setup and Run the Visualizer

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

References:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published