Ok, so first of all: I do not have a whole lot of experience with anything outside of using microcontrolers to read and display sensor data (as well as acting under certain circumstances. e.g. air humidity being to high --> leds flash).
Now to my project idea:
I basically want to use my normal (non bluetooth) headphones as bluetooth headphones without changing anything about the headphones. So I thought of kind of a dongle to plug your headphones into, which you can pair with your phone via Bluetooth. The dongle would have a lcd display (probably with an I2C interfacing board attached), aswell as two buttons for vol+ and vol- and a third one for play/pause (although that would be optional). A mechanical switch could be used as a true on/off switch (maybe there are ways to do this, that are more elegant?). So far I was thinking of using the ESP32 WROOM , because of the onboard DAC, aswell as its Bluetooth capabilities. Further I was going to use a LM386 as an amplifier. That is where my first problem arises: I understand how I would easily use an analog potentiometer as a volume control, however I want buttons for volume control (not sure how to implement that). Further I am not quite sure if maybe I could use the onboard audio output of the ESP32?
Any help, ideas or suggestions would be greatly appreciated!
As far as volume control, perhaps reading this old thread will be instructive
https://forum.arduino.cc/t/volume-knob-from-arduino-signal-to-lm386-amp-circuit-too-loud/554577
1 Like
Thanks, however they also use a pot as volume control (Or I'm blind lol, I am trying to use buttons. Still appreciate the reply!
So I thought I'd answer to this myself, in case anyone is ever in need of details. I did get everything to work smoothly. I used the btAudio library (compatible with most I2S modules, I used the PCM5102), which has a set volume function included.
Do you mean the I2S output?
Yes, I meant the I2S Interface (which worked).