You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone know which pins can be used as Analog Input without destroying wifi capabilities?
Are there any Pins that can be used without doing the button mod?
EDIT:
On my board with the button mod I tried the following Pins with this result:
/*
PIN 36 -> working
PIN 13 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 19 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 23 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 18 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 5 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 21 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 22 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 23 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 25 -> No audio at all.
PIN 0 -> No audio at all.
*/
EDIT2:
It seems that it is wrong to just call this code a second time to setup another analog Input:
that means only the pins of ADC1 can be used:
33,32,35 -> Could that one work? But how can we access it ? Sound works if I set it up as an input in the code.
36 -> Key AD -> Analog Input for Keys
39 -> HP Detect -> Headhpone Detect -> Can this one be used without making it impossible to use headphones?
34 -> SD Detect ->Sd Card Detect -> Can this be somehow used even if an sd card is used, by modifiyng the sd card code? this is anyways only read on boot... I don't need hotswapping sd cards.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
regarding the Button Mod which uses Pin 36 as PIN_KEY_ANALOG for analog button reading
like this:
Does anyone know which pins can be used as Analog Input without destroying wifi capabilities?
Are there any Pins that can be used without doing the button mod?
EDIT:
On my board with the button mod I tried the following Pins with this result:
/*
PIN 36 -> working
PIN 13 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 19 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 23 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 18 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 5 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 21 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 22 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 23 -> audio is fucked up (beep tone underneath the audio) whne using this as analog pin
PIN 25 -> No audio at all.
PIN 0 -> No audio at all.
*/
EDIT2:
It seems that it is wrong to just call this code a second time to setup another analog Input:
if I edit the button_setup function like this:
There is no beeptone at least for Pin 13, but the range is also 4096 instead of 1024 then.
EDIT3:
My further investigation on which Analog Pins could be used lead me to thinking:
-Only Pins of ADC Channel 2 can be used if wifi should still work. (source : https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/)
33,32,35 -> Could that one work? But how can we access it ? Sound works if I set it up as an input in the code.
36 -> Key AD -> Analog Input for Keys
39 -> HP Detect -> Headhpone Detect -> Can this one be used without making it impossible to use headphones?
34 -> SD Detect ->Sd Card Detect -> Can this be somehow used even if an sd card is used, by modifiyng the sd card code? this is anyways only read on boot... I don't need hotswapping sd cards.
Thank you!!!
-paul
Beta Was this translation helpful? Give feedback.
All reactions