how to select an input?

aabbcc
Posts: 7
Joined: Sun Jul 25, 2021 1:00 pm

how to select an input?

Postby aabbcc » Mon Aug 30, 2021 10:49 pm

Hello,
I intend to use any port for meassuring of voltage.
But in the pin diagram do the ports have 2 or 3 descriptions (port 12: touch- ADC 15 - GPIO15).
How have I to define that port 12 should be analog input?
Is there a description how to do so?
Thanks
regards
aabbcc

username
Posts: 534
Joined: Thu May 03, 2018 1:18 pm

Re: how to select an input?

Postby username » Mon Aug 30, 2021 10:56 pm


aabbcc
Posts: 7
Joined: Sun Jul 25, 2021 1:00 pm

Re: how to select an input?

Postby aabbcc » Tue Aug 31, 2021 8:29 pm

Thank you, that was a very helpful link!
However, it doesn't work.
I did include driver/adc.h, but after the configuration of the port with
adc1_config_width(ADC_WIDTH_BIT_12);
adc1_config_channel_atten(ADC1_CHANNEL_0,ADC_ATTEN_DB_11);
do I get the failure message:
expected constructor, destructor, or type conversion before '(' token
Is it possible, that the linked manual contains non-Arduino header files?
My problem is: Arduino finds that header filess, I partout not.
Regards
aabbcc


aabbcc
Posts: 7
Joined: Sun Jul 25, 2021 1:00 pm

Re: how to select an input?

Postby aabbcc » Wed Sep 08, 2021 8:02 pm

Yes, it was very helpful!
I did it try yesterday and it works immediately!
Thank you very much for your help!
regards
aabbcc

aabbcc
Posts: 7
Joined: Sun Jul 25, 2021 1:00 pm

Re: how to select an input?

Postby aabbcc » Thu Sep 09, 2021 12:49 am

PS:
Do you have maybe a source solving my other problem:

My ESP32 (exactla: LILYGO® TTGO T-Call V1.4 ESP32 Wireless Module SIM Antenna SIM Card SIM800L) doesn't start after power on.
It is powered by a potent power unit with 3,7 V at the backside small power jack.

After power on is no reaction. I have to press the RST switch and then starts immediately.
Just this is not allowed, it must start without manually handling.

In my manual did I found some recommandations like 10 k between gnd and en or 10 between pin x and pin y but nothing works.

Do you also have a source for my problem?

Regard
aabbcc

Who is online

Users browsing this forum: No registered users and 113 guests