About
DragonBoard410c Audio Input Setup
Read moreThis 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) Hardware1.1) Hardware Requirements- 96Boards Dragonboard 410c
- 5v 2A USB Power Bank
- 2x 22uF Bipolar Capacitors
- 4x 2.7KOhm Resistors
- 2x 22KOhm Resistors
- 1x Arduino Nano
- 1x Logic Level Shifter
- 12x NeoPixels in strip or stick
- [1x Stereo Audio Socket of choice]
- Miscellaneous: Quantity as per required:
- Connecting wires
- Soldering Kit
- Screwdriver Set
- Double sided tape
- Arduino 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)
Code Available AT: https://github.com/96boards-projects/audio-visualizer-db410c2.1) DragonBoard410c Setup
- Latest Linaro Debian Release Build
- Python SMBus Module
$ sudo apt install python-smbus
2.2) Arduino SetupFlash src/neopixel.ino
using the Arduino IDE.
- 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:
Comments
Please log in or sign up to comment.