Skip to content

Automate water meter recording ๐Ÿ“ธ with ESP32-CAM. Turning "dumb meter" into "smart meter" ๐Ÿง  with with power efficiency ๐Ÿ”‹ in mind.

License

Notifications You must be signed in to change notification settings

luke-who/esp32cam-gdrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Power Efficient Smart Water Meter Measuring with ESP32-CAM, Google Apps Script and Google Drive

This project automates the utility measuring unit(water meter in this case) and record-keeping process with ESP32-CAM. This is achieved by taking an image of the water meter, then uploading the image directly from ESP32-CAM to Google Drive with the desired frequency.

Getting Started

  1. Make sure the camera is correctly connected to the ESP32 board.
  2. Log into your Google account, create a project on your Google App Script home page, and upload the code from upload.gs to the new project.
  3. Deploy the project and copy the Deployment ID
  4. Paste the Deployment ID into MyCamera.h
  5. Modify the WiFi SSID and Password in esp32cam-gdrive.ino to enable WiFi connectivity for the board.
  6. Adjust the sleep timer and wake-up frequency accordingly in esp32cam-gdrive.ino & sleep_time.h. The default is the 10th of every month around mid-day.
  7. Connect your ESP32-CAM to a computer via a USB cable.
  8. Upload all the sketch/code in the current folder except upload.gs to the board via Arduino IDE.
  9. Push the reset button on the ESP32-CAM if necessary to see some output for debugging.
  10. The final step is to hook up a stand-alone power source (battery) and power management module and install them in your local cabinet where the water meter is located. This step will vary depending on the type of building, accessibility of the meter and possibly weather concerns which might affect the circuit. It is recommended to encapsulate the board and power source to prevent unwanted interference or degradation from the outside environment.

Sleep Mode

There are currently five sleep modes on the ESP32 to preserve power when it's not in use. Different onboard modules will be disabled depending on which sleep mode it is set to. The sleep mode for this project is deep sleep.

In deep sleep mode, the chip consumes anywhere between 0.15 mA (when the ULP coprocessor is on) and 10 ยตA according to ESP32 Series Datasheet. It is worth noting the actual current consumption is higher than the specs in the datasheet. However, with an optimised board such as FireBeetle 2 ESP32-E IoT Microcontroller it could consume as low as around 10 ยตA.

Reference

  1. Inspired by gsampallo/esp32cam-gdrive
  2. ESP32 Series Datasheethttps://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf

About

Automate water meter recording ๐Ÿ“ธ with ESP32-CAM. Turning "dumb meter" into "smart meter" ๐Ÿง  with with power efficiency ๐Ÿ”‹ in mind.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published