2

Currently I am using the DHT22/AM2302 which has a built in 5.1k resistor, using the program provided from https://ms-iot.github.io/content/en-US/win10/samples/GpioOneWire.htm and connected the sensors VCC to 3.3V(Pin1), GND to GND(Pin6), and DOUT to GPIO4(Pin7). Everything seems to be hooked up right but when running the program no sensor is detected. Has anyone had a similar situation?

  • The example may be incomplete... sigh at Microsoft, very common. I think you may be missing a permission in the app.xaml - Did you add xmlns:local="using:GpioOneWire" - Try this code as is - github.com/ms-iot/samples/tree/develop/GpioOneWire – Piotr Kula Nov 19 '15 at 9:36
  • 1
    To report back, I have tested the sensor using Linux Raspbian-jessie. So good news the senor nor the pi is broken, bad news is the pain in the butt windows 10 iot will be trying to solve the software issue. Followed this tutorial youtube.com/watch?v=IHTnU1T8ETk for the linux setup. Now on to windows 10 thanks ppumkin I'll give it a shot! – JKMartinez Nov 19 '15 at 21:40
  • 1
    This is what I have concluded so far. I do not have a hardware issue, and I know this because the sensor was tested using Linux and it worked fine. It is also a fact that windows 10 iot is not a real time OS therefore it makes difficult to capture the sensors data. Reading these other forums:social.msdn.microsoft.com/Forums/en-US/… social.msdn.microsoft.com/Forums/en-US/… – JKMartinez Dec 1 '15 at 0:59
  • 1
    Others have had similar issues. But they have had slightly different circuits than I. Which leads me to believe that my sensor's model(which has a 5.1k resistor) doesn't fit the programs timer. In other words the level of resistance affects the out put of the sensor. Source:expediteapps.com/blog/… – JKMartinez Dec 1 '15 at 1:05
  • 1
    Thank you for all your help ppumkin, and yes I'll make sure to document in detail and post a solution once one is found. The GitHub issue as been opened just have to wait for a response. – JKMartinez Dec 2 '15 at 21:27
0

Well I can't say I don't learn anything, and this experience, even though it was very frustrating especially since I am very new to Windows 10 iot, was eye opening. My issue has been resolved.

If you have a DHT22/AM2302 and you are experiencing issue with getting no feedback from your temperature sensor then check with these troubleshooting tips.

Do you have a hardware issue? Check both the sensor and raspberry pi for damage or defects. Do a test run of the sensor on a different OS such as Linux.

Is your circuit correctly connected to the raspberry pi? Make sure all pins are connected to their correct corresponding GPIO pins and a resistor was added(other have stated a resistor is not necessary but if you're having issues it wont hurt to try) I had used 5.1K resistor. Is your windows 10 iot up to date?

Is your OS up-to-date? This is a big one mainly because it was why my sensor wasn't working with the GPIOOneWire program. This is a quote from jordanrh1 who is one of the developers of the GPIOOneWire program"The DHT11 sample only works on build 10556 and higher." I was using Version 10.0.10240 thinking since I had just reinstalled windows 10 iot it was up to date. So always check your iot versions as a troubleshooting tip**

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.