USB Audio, volume control using Teensy?

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
drlbradley
Posts: 38
Joined: Wed Jun 01, 2016 1:00 am
Location: Windsor, UK
Has thanked: 12 times
Been thanked: 5 times

USB Audio, volume control using Teensy?

Post by drlbradley » Mon Jun 13, 2016 5:46 am

Might be over thinking this but...

Am using a C-Media USB Audio to get sound out of the Pi, and am wondering how best to control the volume output.
Anyone doing this and using the Teensy keyboard HID to read volume +/- from buttons, or from a pot or rotary encoder?

I found someone doing something similar here https://deskthority.net/workshop-f7/vol ... 11764.html

drlbradley
Posts: 38
Joined: Wed Jun 01, 2016 1:00 am
Location: Windsor, UK
Has thanked: 12 times
Been thanked: 5 times

Re: USB Audio, volume control using Teensy?

Post by drlbradley » Mon Jun 13, 2016 6:45 am

More thoughts on this:

1/I could just have two additional buttons , perhaps mapped as keyboard chars in the Teensy code, which I then assign in the retropie config as volume up/down.

2/ Or just define hotkey combo to do volume up/down

input_enable_hotkey_btn = 8 #Select
input_volume_up_axis = +1 #Up on Joystick
input_volume_down_axis = -1 #Down on Joystick
input_audio_mute_axis = +0 #Left on Joystick

3/ or add one hardware button, used as the hotkey button and then hotkeys defines as in 2/

my favored option would still be two used a potentiometer, in the original case location, to drive the volume..

help!

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: USB Audio, volume control using Teensy?

Post by Fleder » Mon Jun 13, 2016 7:16 am

You could also buy another DAC which already has got volume control.
Like this or this.
Not sure if the last one works on linux, though.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest