Rimbik
Posts: 3
Joined: Wed Oct 03, 2018 6:53 am

Getting PinReading IsValid False with pin17

Thu Oct 04, 2018 7:00 am

Friends, I am getting IsValid = False when I use the code below:

AM using rpi3 b+, Windows IOT Core OS, C# code sample from github: https://github.com/porrey/Dht
application: (Sensors.OneWire)

C# code:
//--------------------------------------------------------------------------------------------------------------------------------------------
_pin = GpioController.GetDefault().OpenPin(17, GpioSharingMode.Exclusive); //17
_dht = new Dht11(_pin, GpioPinDriveMode.Input);

DhtReading reading = new DhtReading();
reading = await _dht.GetReadingAsync().AsTask();
//--------------------------------------------------------------------------------------------------------------------------------------------
Hardware: Rpi 3 b+ with Win IOT Core OS
My Sensor device is: DHT11 - Temperature and Humidity Sensor , Module EC-0442

\Images:
https://drive.google.com/open?id=16IA16 ... OPA1JR9p1i
https://drive.google.com/open?id=14dhHt ... wARk670VTO


Pin used as:
(+) red wire to GPIO 3v3 pin that is pin1
(-) yellow wire to GND pin, that is pin6
data: brown wire to GPIO17, that is pin11

Please suggest why I am getting reading invalid

Return to “Other programming languages”

Who is online

Users browsing this forum: No registered users and 2 guests