#whole volume specrum in one third of the potentiometer

5 messages · Page 1 of 1 (latest)

nova root
#

So, I have a wierd problem with my sliders and master-knob. I can go from 0% to 100% volume by just moving the sliders about one third of the whole length of the slider. I use an esp32 and used the 3.3V output instead of the 5V because the arduino esp32 only supports up to 3.3V input on the analog inputs and I didn't want to break my board. I did though use the 5V for maybe half an hour before I noticed that it wasn't good for it.

I think its because the deej software measures 5V as max but it never goes up to five volts, but in the Arduino IDE it shows the whole spectrum so I think it is something with the deej windows software.

I also have very much noise in the Arduino IDE but maybe that doesn't matter.

My last slider also doesn't go up to more than like 40 in the Arduino IDE except for sometimes and when i push the soldered wire into one direction.

Thanks in advance!

dense wasp
#

@nova root deej only receives the values 0-1023 from the microcontroller it doesnt care or even know about the voltage.

Regarding your volume going to nearly 100% in 1/3 sounds like you have logarithmic sliders instead of linear and have them inverted (ie your 3.3v and gnd backwards)

Regarding the noise, I assume you mean the values change a small amount in the serial monitor in the ide without touching the slider? this is pretty normal and deej has filtering built in to smooth that out.

nova root
#

Thanks for the answer!

If the windows software recieve more than 1023 does that mean that it sets the volume to max?

And no i do not have logarithmic sliders, but they are inverted but i enabled invert sliders in the deej config?

dense wasp
#

It can’t receive more than 1023

#

Ok looked a little deeper looks like the nano esp32 uses a 12 bit adc so instead of the normal 0-1023 values it uses 0-4095. So you’ll either have to modify the arduino code with analogReadResolution(10) in the setup or divide the values by 4 or use the map function. Or modify deej to handle values from 0-4095.