Skip to main content



      Home
Home » Eclipse Projects » Kura » How can Greehouse example use DHT11 to read temperature and humidity data?
How can Greehouse example use DHT11 to read temperature and humidity data? [message #1767774] Mon, 10 July 2017 22:53 Go to next message
Eclipse UserFriend
Hello Everyone
My DHT 11 sensor module has three pins ,which are VCC/DATA/GND,and integrate the temperature and humidity sensor together.
The sensor of greenhouse example have four pins. How can i use my sensor to replace the sensor used in examle? Thank you very much !


Re: How can Greehouse example use DHT11 to read temperature and humidity data? [message #1768134 is a reply to message #1767774] Thu, 13 July 2017 18:57 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Sorry for the slow response. The sensor used in the published greenhouse demo uses the I2C bus of the Raspberry Pi. The DHT 11 sensor uses a single digital output. So, you would have to modify the source code of the project to use a single GPIO pin as opposed to the I2C bus. Let me know if you are interested in doing this and I can help get you started.

Thanks,
--Dave
Re: How can Greehouse example use DHT11 to read temperature and humidity data? [message #1768159 is a reply to message #1768134] Fri, 14 July 2017 04:44 Go to previous message
Eclipse UserFriend
I have replaced the source code by the example here,
https://github.com/Manoj-red-hat/org.eclipse.kura.DHT11/blob/master/workspace/kura/org.eclipse.kura.DHT11/src/org/eclipse/kura/DHT11/DHT11Sensor.java

but i have no idear how to config the cloud and MQTT, so i can get the temperature and humidity from WEB UI, or MQTT client?
Any advices are appreciated!!
Previous Topic:Privacy preserving for Fog Computing
Next Topic:LoRa
Goto Forum:
  


Current Time: Sun Jul 20 15:56:37 EDT 2025

Powered by FUDForum. Page generated in 0.03620 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top