Ok, try this.
watch the video and tell me i see wierd numbers
.....but good work
Well, I can't really tell you what is wrong without having the actual sensor to work with.
Thanks to Nathan for kick-starting the customization of the LIFA firmware and for implementing a LV Lib.
I fixed couple of issues, rearranged the code, and completed the implementation to support setting the DHT_Pin # and DHT_Type in LV code.
The code was tested fine with DHT11.
Calculations for DHT21/22 were added in LV but I have no such sensor to test with.
Cheers
Edited:
I just realized that I had an error in calculating the DHT21/22 temp when it's negative; obviously it will be hard to discover this error in warm weather!
Correction attached as Rev B
I am happy for you Morvy187!
I see that you are using HDT22. If you can place the sensor in a freezer and ensure that it still gives valid readings when negative, it would be great. I am still not 100% sure that negative Temps work fine! My HDT11 sensor doesn't go below 0 Deg C.
Thanks you sooooo much i`ll try it and inform you .....
For some reason I couldn't read Analog inputs after reading the DHT sensor no matter what I try. So I updated the LIFA firmware with DHT code from the Arduino site: http://playground.arduino.cc/Main/DHTLib, which is a much cleaner implementation than the Adafruit's.
Now it works fine! Check the attached 'DHT_Test.lvproj', after you upload the modified LIFA_Base, of course.
Best regards,
Samir
hey sambo plz could you give a littel explanation of that new Progman you did upload and why there is ana analog voltage read ports ????????
I have an application where I have to read several analog sensors in addition to ambient temperature and humidity provided by the DHT sensor.