Git Product home page Git Product logo

audio-visualizer-db410c's Introduction

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:

audio-visualizer-db410c's People

Contributors

mani-sadhasivam avatar ric96 avatar

Watchers

 avatar

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.