Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:proiecte:2025sric:smarthome_application [2025/05/28 22:26]
lucian_stefan.barbu [Software]
iothings:proiecte:2025sric:smarthome_application [2025/05/28 23:21] (current)
lucian_stefan.barbu [Challenges]
Line 65: Line 65:
 ====== Challenges ====== ====== Challenges ======
  
 +1. Tuya-compatible devices are bound to send data to a pre-defined database (the tuya data center). Tried reverse engineering its flow to be able to send the data to the ESP32 board but without success. The solution was to create a proxy server between the ESP32 and Thingsboard which should handle requests to retrieve data from the devices and send them to Thingsboard and send commands from the Thingsboard cloud directly to the devices. This layer was implemented using Google Cloud VMs & Google Cloud functions but is not yet fully functional (created the scripts used to handle the requests but was unable to start the server due to extra costs).
 +
 +2. MQ-2 gas sensor only has a digital output so was unable to read the actual value read by the sensor (it only acts as a notifier for when the measured value passes a certain threshold). The threshold was set using the sensors datasheet and a potentiometer installed on the sensor'​s module.
 +
 +3. In the final configuration the photoresistor module'​s output is connected to pin 4 of the ESP32 dev board (the only remaining working pin with an ADC). It seems that pin 4 is also used for Wi-Fi communication so while the ESP32 is connected to Thingsboard the board is not able to read the sensor'​s value. However, to demonstrate that the sensor works and ESP is able to read its value a small script was attached below.
 +
 +{{:​iothings:​proiecte:​2025sric:​light.jpg?​200|}}
 ====== References ====== ====== References ======
  
 +1. Thingsboard documentation:​ https://​thingsboard.io/​docs/​getting-started-guides/​helloworld/​
 +
 +2. Tuya Developer documentation:​ https://​developer.tuya.com/​en/​overview
 +
 +3. DHT11 sensor connection: https://​randomnerdtutorials.com/​esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/​
  
 +4. Google Cloud documentation:​ https://​cloud.google.com/​docs
iothings/proiecte/2025sric/smarthome_application.1748460392.txt.gz · Last modified: 2025/05/28 22:26 by lucian_stefan.barbu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0