This shows you the differences between two versions of the page.
iothings:proiecte:2025sric:smarthome_application [2025/05/28 23:12] lucian_stefan.barbu [Challenges] |
iothings:proiecte:2025sric:smarthome_application [2025/05/28 23:21] (current) lucian_stefan.barbu [Challenges] |
||
---|---|---|---|
Line 69: | Line 69: | ||
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. | 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 ====== | ||