Jump to content
Electronics-Lab.com Community
Michael Zhang

Realtek Ameba RTL8195 IoT system with DHT + MQTT

Recommended Posts

Temperature and humidity are 2 of the most important factors affecting people’s comfort level in an enclosed space. 
The DHT humidity and temperature sensor can read the ambient temperature and humidity every 2-3 seconds, and then pass the data to Ameba who will forward them to the server using MQTT protocol. Whoever “subscribing” to the right topic gets the data almost instantaneously. Users can then adjust the aircon mode or temperature according to the readings received.
An android phone was used as an MQTT client and the Ameba RTL8195 Dev. Board acted as another MQTT client communicating with the android phone. Both clients have to connect to the same MQTT server before proceeding to the next step.
The DHT sensor updates its data every 10 seconds to stay as accurate as possible. Once sensor data is received, Ameba then “publishes” the data to the MQTT server where all clients “subscribing” to the right topic gets the data displayed on the console. 

 

GitHub page
https://github.com/Realtek-AmebaApp/Ameba_Examples/tree/master/RTL8195AM/003_DHT_MQTT
Official pages
https://www.amebaiot.com.cn/en/
https://www.amebaiot.com/en/
Facebook pages
https://www.facebook.com/groups/AmebaIoT/
https://www.facebook.com/groups/AmebaIoTWW/
BiliBili channel
https://space.bilibili.com/45777743

WeChat Image_20200320143630.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...