amc:ss2023:group-t:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc:ss2023:group-t:start [2023/07/25 17:04] – somaya.ahmadian | amc:ss2023:group-t:start [2023/07/25 20:36] (current) – somaya.ahmadian | ||
---|---|---|---|
Line 28: | Line 28: | ||
- | https:// | + | Source: |
**ESP32CAM** | **ESP32CAM** | ||
- | The ESP32-CAM is the microcontroller that we used in this project that comes with a detachable camera aid. It costs approximately $10. Besides the OV2640 camera, and several GPIOs to connect peripherals, | + | The ESP32-CAM is the microcontroller that we used in this project that comes with a detachable camera aid. It costs approximately $10. Besides the OV2640 camera, and several GPIOs to connect peripherals, |
- | + | ||
- | {{: | + | |
Source: https:// | Source: https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Figure 1: ESP32CAM https:// | ||
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | Figure 2: ESP32CAM pinout https:// | ||
+ | |||
==== 2.2. UartSBee ==== | ==== 2.2. UartSBee ==== | ||
UART stands for universal asynchronous receiver/ | UART stands for universal asynchronous receiver/ | ||
- | {{: | + | {{: |
+ | |||
+ | Figure 3: UartSBee https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Figure 4: Uart uses two wires between transmitter and receiver to transmit and receive in both directions. https:// | ||
Line 46: | Line 60: | ||
{{: | {{: | ||
+ | |||
+ | Figure 5: Uart frame contains start and stop bits, data bits, and an optional parity bit. https:// | ||
+ | |||
UART is still a widely used serial data protocol but has been replaced in some applications by technologies such as SPI, I2C, USB, and Ethernet in recent years. | UART is still a widely used serial data protocol but has been replaced in some applications by technologies such as SPI, I2C, USB, and Ethernet in recent years. | ||
- | Source: https:// | ||
==== 2.3. 16 GB MicroSD card ==== | ==== 2.3. 16 GB MicroSD card ==== | ||
Line 79: | Line 95: | ||
{{: | {{: | ||
+ | |||
+ | Fifure 6: LiPo Battery https:// | ||
==== 2.9. LiPo charger/ | ==== 2.9. LiPo charger/ | ||
Line 85: | Line 103: | ||
{{: | {{: | ||
+ | |||
+ | Figure 7: LiPo charger/ | ||
==== 2.10. Step-up/ | ==== 2.10. Step-up/ | ||
Line 90: | Line 110: | ||
{{: | {{: | ||
+ | |||
+ | Figure 8: Voltage Regulator https:// | ||
===== 3. Method ===== | ===== 3. Method ===== | ||
Line 97: | Line 119: | ||
The initial step involved connecting the ESP32CAM and UART module, using jumper cables. This ensured the proper flow of data between the devices. | The initial step involved connecting the ESP32CAM and UART module, using jumper cables. This ensured the proper flow of data between the devices. | ||
- | {{: | + | {{: |
+ | |||
+ | Figure 9: Connection setup of ESP32CAM with UartSBee | ||
+ | Table 1: Pin connection of ESP32CAM and UartSBee | ||
+ | |||
+ | {{: | ||
Line 111: | Line 139: | ||
Next, we navigated to the firmware folder on the hard disk and followed the installation instructions from the AI_on_the_edge documentation[4]. We initiated the process with the command " | Next, we navigated to the firmware folder on the hard disk and followed the installation instructions from the AI_on_the_edge documentation[4]. We initiated the process with the command " | ||
- | {{: | + | {{: |
The next step, was to initialize the Ai-on-the-edge through Arduino' | The next step, was to initialize the Ai-on-the-edge through Arduino' | ||
Line 130: | Line 158: | ||
{{: | {{: | ||
+ | |||
+ | Figure 10: Focus adjustment of the camera https:// | ||
==== 3.6. Casing ==== | ==== 3.6. Casing ==== | ||
Line 136: | Line 166: | ||
{{: | {{: | ||
+ | |||
+ | Figure 11: ESP32CAM and watermeter casing | ||
+ | |||
==== 3.7 Power Supply ==== | ==== 3.7 Power Supply ==== | ||
Line 141: | Line 174: | ||
{{: | {{: | ||
+ | |||
+ | Figure 12: Power supply setup | ||
Line 149: | Line 184: | ||
{{: | {{: | ||
+ | |||
+ | Figure 13: AI-on-the-edge setup webpage | ||
However, we encountered an issue with the ESP32' | However, we encountered an issue with the ESP32' | ||
Line 161: | Line 198: | ||
{{: | {{: | ||
+ | |||
+ | Figure 14: Selecting some reference points | ||
Line 166: | Line 205: | ||
{{: | {{: | ||
+ | |||
+ | Figure 15: Selecting Region Of Interest (ROI) | ||
To adjust the positions of the ROIs within the reading, we used the options "Move Next" or "Move Previous." | To adjust the positions of the ROIs within the reading, we used the options "Move Next" or "Move Previous." | ||
Line 172: | Line 213: | ||
==== 4.3. MQTT in Home Assistant ==== | ==== 4.3. MQTT in Home Assistant ==== | ||
+ | |||
+ | Further in the process, using the Oracle VirtualBox, a virtual machine was setup to run Home Assistant in a Linux based environment. Following the documentation on the Home Assistant website, the configuration was complete [8]. Once the setup was finished, Mosquitto Broker was installed as an Add-on into the Home Assistant. We had used the digitizer in the AI-on-the-edge initialisation to set up the MQTT credentials to be used for this process. | ||
{{: | {{: | ||
- | Further in the process, using the Oracle VirtualBox, a virtual machine was setup to run Home Assistant in a Linux based environment. Following the documentation on the Home Assistant website, the configuration was complete [8]. Once the setup was finished, Mosquitto Broker was installed as an Add-on into the Home Assistant. We had used the digitizer in the AI-on-the-edge initialisation to set up the MQTT credentials to be used for this process. | + | Figure 16: Oracle VirtualBox setup to run Home Assistant in a Linux based environment |
===== 5. Discussion ===== | ===== 5. Discussion ===== | ||
- | While the SWM system is an inexpensive way to monitor household water consumption and the setup is relatively straightforward, | + | While the SWM system is an inexpensive way to monitor household water consumption and the setup is relatively straightforward, |
- | There were several instances where the camera module just stopped functioning, | + | Additionally, |
- | Although, the initial learning material helped us form the basis of establishing the connections, | + | Although, the initial learning material helped us form the basis of establishing the connections, |
amc/ss2023/group-t/start.1690297493.txt.gz · Last modified: 2023/07/25 17:04 by somaya.ahmadian