Good evening!
System - only Raspberry Pi 3b+
Long thought about replacing the rotary encoder analog potentiometer
. I connected the ADS1115 ADC and connected a potentiometer to it. As a code, I found it found in
link
While experimenting with the output of headphones. Amixer 'PCM'
The code works, but somehow strange. The volume values in alsamixer and amixer are different. I will give an example. Amixer - 84%, alsamixer - 52%
With what it can be connected?
System - only Raspberry Pi 3b+
Long thought about replacing the rotary encoder analog potentiometer

link
While experimenting with the output of headphones. Amixer 'PCM'
The code works, but somehow strange. The volume values in alsamixer and amixer are different. I will give an example. Amixer - 84%, alsamixer - 52%
Code:
amixer
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback -1300 [84%] [-13.00dB] [on]
Code:
Card: bcm2835 ALSA F1: Help x
x Chip: Broadcom Mixer F2: System information x
x View: F3:[Playback] F4: Capture F5: All F6: Select sound card x
x Item: PCM [dB gain: -13.00] Esc: Exit x
x x
x lqqk x
x x x x
x x x x
x x x x
x x x x
x x x x
x xaax x
x xaax x
x xaax x
x xaax x
x xaax x
x xaax x
x tqqu x
x xOOx x
x mqqj x
x 52 x
x < PCM >
With what it can be connected?