#Change 0-1023 to 0-100

4 messages · Page 1 of 1 (latest)

pearl kettle
#

Hello,

I have just finished building and configuring my Deej but I have a question...
As the potentiometer is from 0 to 1023, there are moments of the movement that don't really seem to increase the volume.

Is there a way to change it with the Deej code or with Arduino so that for example it is from 0 to 100?

Thanks

storm escarp
#

Hi @pearl kettle
I have noticed on my esp32 that the voltage readout from the ADC can sometimes output values like -1 or 1024 (I didn’t figure out why) and it seemed to me that the deej app doesn’t cover values outside the 0-1023 range? So I just created an explicitly condition in Arduino FW code to only send values from 0-1023 and it fixed the “volume stuck” issues for me.

solar pendant
solar pendant