This shows you the differences between two versions of the page.
iothings:proiecte:2022:smartcameralivefeed [2023/01/20 12:03] ioana.georgescu |
iothings:proiecte:2022:smartcameralivefeed [2023/01/20 12:10] (current) ioana.georgescu |
||
---|---|---|---|
Line 22: | Line 22: | ||
{{:iothings:proiecte:2022:smartcamera.jpg?direct&200|}} | {{:iothings:proiecte:2022:smartcamera.jpg?direct&200|}} | ||
- | The DHT22 is connected to the ESP32-CAM module. The ESP32-CAM module does not have a built-in programmer. I useed an FTDI programmer to connect it to upload my code and to provide the power supply. Both the ESP32-CAM and the DHT22 require a 6V power supply. | + | The DHT22 is connected to the ESP32-CAM module. The ESP32-CAM module does not have a built-in programmer. I used an FTDI programmer to connect it to upload my code and to provide the power supply. Both the ESP32-CAM and the DHT22 require a 6V power supply. |
===== 3. Software ===== | ===== 3. Software ===== | ||
Line 30: | Line 30: | ||
For storing the data I created a Firebase project. I used the Realtime Database to store and update the sensor readings and the Storage for the images from the CAM. The images are referenced by their URL in the Realtime Database to make querying them in the Android app more straightforward. | For storing the data I created a Firebase project. I used the Realtime Database to store and update the sensor readings and the Storage for the images from the CAM. The images are referenced by their URL in the Realtime Database to make querying them in the Android app more straightforward. | ||
+ | |||
+ | The CAM reads the sensor and takes a picture every 5 seconds. It uses an NTP server to determine the current hour. The hour is used to compose the path to the data to be updated in the Realtime Database and to determine weather the current image shoul be included in the 30 day summary. | ||
===== Resources ===== | ===== Resources ===== |