GPIO INPUT ONLY

Rodrigofraga
Posts: 2
Joined: Fri Aug 17, 2018 10:46 am

GPIO INPUT ONLY

Postby Rodrigofraga » Fri Aug 17, 2018 10:55 am

I have a problem when try to use GPIO INPUT ONLY pins. I'm using DHT22 to do some tests in Esp32 boards. When I use GPIO normal pins I have correct informatios in serial monitor. But when I use pins INPUT ONLY all informations about temperature and humidity are ZERO. I tryed to use a pullup resistor un data pin, I used digitalread() and nothing.
I have been using ARDUINO IDE.
I did tests with others sensors and had the same problem. Anybody does know what happen?

User avatar
xvinny
Posts: 12
Joined: Wed Aug 16, 2017 1:15 pm
Location: Curitiba, Brazil

Re: GPIO INPUT ONLY

Postby xvinny » Fri Aug 17, 2018 2:59 pm

Which pins did you use? Could you post a snippet of your code?
___________________________________________________________________________________________________________________________
Tell me if you knows how to use the Programmer module of Windows Calc and I'm gonna say who you are.

Rodrigofraga
Posts: 2
Joined: Fri Aug 17, 2018 10:46 am

Re: GPIO INPUT ONLY

Postby Rodrigofraga » Mon Aug 20, 2018 11:35 am

I was reading about sensors and discover that dht22 needs a normal GPIO ( input and output) because this sensor has a pritocol to comunicate with esp32.

Who is online

Users browsing this forum: No registered users and 185 guests