amc:ss2023:group-d:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc:ss2023:group-d:start [2023/07/25 10:14] – 29907_students.hsrw | amc:ss2023:group-d:start [2023/07/25 20:23] (current) – [Table] 29907_students.hsrw | ||
---|---|---|---|
Line 17: | Line 17: | ||
The ESP32-CAM is a popular and cheap development board based on the ESP32 microcontroller. Its dimensions of 27mm*40.5mm*4.5mm make it small but a powerful tool. It also comes with a built-in camera module and microSD card slot and has Wi-Fi and Bluetooth connectivity feature with a dual-core processor, making it suitable for a wide range of IoT (Internet of Things) applications, | The ESP32-CAM is a popular and cheap development board based on the ESP32 microcontroller. Its dimensions of 27mm*40.5mm*4.5mm make it small but a powerful tool. It also comes with a built-in camera module and microSD card slot and has Wi-Fi and Bluetooth connectivity feature with a dual-core processor, making it suitable for a wide range of IoT (Internet of Things) applications, | ||
More details at: [[https:// | More details at: [[https:// | ||
- | ^{{: | + | ^ {{: |
- | |**Figure 1.** ESP32-CAM \\ Source: | + | | **Figure 1.** ESP32-CAM |
Line 51: | Line 51: | ||
==== f. Microcontroller housing ==== | ==== f. Microcontroller housing ==== | ||
- | To mount the setup onto the watermeter, a cardboard housing of length 10 cm and 9 cm diameter was designed. This housing helps to create a controlled environment with a fixed distance from the watermeter and also no external light coming in. Also, the lens was focused on that the object. | + | To mount the setup onto the watermeter, a cardboard housing of length 10 cm and 9 cm diameter was designed. This housing helps to create a controlled environment with a fixed distance from the watermeter and also no external light coming in. Also, the lens was focused on the object |
^ {{: | ^ {{: | ||
Line 62: | Line 62: | ||
==== a. Hardware Setup ==== | ==== a. Hardware Setup ==== | ||
- | Using jumper cables, ESP32-CAM was connected to the FTDI programmer. The connection setup can be seen in Figure 5 below. GPIO 0 and GND are both connected in ESP32-CAM to upload the code (Program). After programming, | + | Using jumper cables, ESP32-CAM was connected to the FTDI programmer. The connection setup can be seen in Figure 5 below. Figure 6 is the actual experimental setup of this project. Whereas in Figure 7, the schematic representation of the ESP32-CAM and FTDI programmer is shown. GPIO 0 and GND are both connected in ESP32-CAM to upload the code (Program). After the programming |
^{{: | ^{{: | ||
Line 71: | Line 71: | ||
|**Figure 6.** ESP32-CAM and Programmer connection with USB-A Cable| | |**Figure 6.** ESP32-CAM and Programmer connection with USB-A Cable| | ||
- | ..\\ | + | |
- | ..\\ | + | ^{{: |
- | ..\\ | + | |**Figure 7.** Schematic drawing of connection |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ..\\ | + | |
- | ^^ | + | |
- | |**Figure 7.** Schematic drawing of connection| | + | |
Line 96: | Line 79: | ||
==== b. Software Setup ==== | ==== b. Software Setup ==== | ||
- | For this project, the software provided in the AI-on-the-edge-device GitHub repository was implemented. The complete documentation provided by the author can be found under the following link. **[[https:// | + | For this project, the software provided in the AI on the edge device GitHub repository was implemented. The complete documentation provided by the author can be found under the following link. **[[https:// |
Steps to flash the device with the above-mentioned software are given below: | Steps to flash the device with the above-mentioned software are given below: | ||
- | Open the web installer in Chrome or Edge: | ||
- Download the program from the following link. [[https:// | - Download the program from the following link. [[https:// | ||
Line 120: | Line 102: | ||
|**Figure 9.** Reference Image setup| | |**Figure 9.** Reference Image setup| | ||
- | 2. After that, alignment marks should be set up. It is a reference position for the software to search for the analog and digit regions of interest as observed in Figure 10 below. | + | 2. After that, alignment marks should be set up. It is a reference position for the software to search for the analog and digit regions of interest, which is the unit of measurement in the watermeter' |
^{{: | ^{{: | ||
|**Figure 10.** Alignment marks setup for ' | |**Figure 10.** Alignment marks setup for ' | ||
- | 3. Then, the region of interest for the digits has to be set up, it is done by selecting x and y coordinates for every numeric digit of interest. It is seen in Figure 11 below. | + | 3. Then, the region of interest for the digits |
^{{: | ^{{: | ||
|**Figure 11.** Digit region of interest setup| | |**Figure 11.** Digit region of interest setup| | ||
- | 4. Likewise, the analog region of interest is marked, as shown in Figure 12. In this project, we are only interested in one digit after decimal. For more precise measurement, | + | 4. Likewise, the analog region of interest is marked, as shown in Figure 12. Analog needles give the numbers after the comma for a reading, hence the more needles we introduce the more precise the reading gets. In this project, we are only interested in one digit after decimal. For more precise measurement, |
^{{: | ^{{: | ||
|**Figure 12.** Analog region of interest setup| | |**Figure 12.** Analog region of interest setup| | ||
Line 135: | Line 117: | ||
=====4. Results ===== | =====4. Results ===== | ||
- | After reboot, the device now automatically captures the image and using its optical character recognition technology converts regions of interest into data readings. The device read the different samples provided as follows. Figure 13 shows the experimental setup of the device over the sample image. And Figure 14 shows the different readings when the device was placed over the different sample images. The value on the top right of the image is the actual post processed value, and above the individual digits and the analog needle are the pre processing initial read values. | + | After reboot, the device now automatically captures the image and using its optical character recognition technology converts regions of interest into data readings. The device read the different samples provided as follows. Figure 13 shows the experimental setup of the device over the sample image. |
^{{: | ^{{: | ||
|**Figure 13.** Experimental setup of the device over the sample image| | |**Figure 13.** Experimental setup of the device over the sample image| | ||
+ | |||
+ | Figure 14 shows the different readings when the device was placed over the different sample images. The value on the top right of the image is the actual post-processed value, and above the individual digits and the analog needle are the pre-processing initial read values. | ||
^{{: | ^{{: | ||
Line 168: | Line 152: | ||
^{{: | ^{{: | ||
|**Figure 19.** Remote data reception according to the subscription (main value and timestamp)| | |**Figure 19.** Remote data reception according to the subscription (main value and timestamp)| | ||
+ | |||
+ | For this project, only two topics i.e., the reading after post-processing and time stamp were pursued. Some other topics that could be also subscribed hence, remotely monitored are listed with their respective subscription topic and description in Table 1. | ||
|**Table 1:** Some topics and their description|| | |**Table 1:** Some topics and their description|| | ||
Line 176: | Line 162: | ||
| watermeter/ | | watermeter/ | ||
- | For this project, only two topics i.e., the reading after post-processing and time stamp were pursued. Some other topics that could be also subscribed hence, remotely monitored are listed with their respective subscription topic and description in Table 1. | ||
=====6. Best practice suggestions ===== | =====6. Best practice suggestions ===== | ||
Line 192: | Line 177: | ||
The main issue is still the reliability and accuracy because it cannot be always made sure that the device reads the correct values from the meter. In the above examples, we could see that the digits could be properly recognized but there was always a discrepancy with the analog needle values. Other than that, there is also the question of reliability in terms of maintaining the service, as the AI software doesn' | The main issue is still the reliability and accuracy because it cannot be always made sure that the device reads the correct values from the meter. In the above examples, we could see that the digits could be properly recognized but there was always a discrepancy with the analog needle values. Other than that, there is also the question of reliability in terms of maintaining the service, as the AI software doesn' | ||
- | These issues can be tackled by using fully digital flow meters that can share their reading via numerous digital data transfer methods. Infrared reading is common with radiators and electric meters, where the values can be accurately transmitted. But it cannot be done in real-time. Another thing that could be further looked into in the future would be to introduce a battery-based current source and further | + | These issues can be tackled by using fully digital flow meters that can share their reading via numerous digital data transfer methods. Infrared reading is common with radiators and electric meters, where the values can be accurately transmitted. But it cannot be done in real-time. Another thing that could be further looked into in the future would be to introduce a battery-based current source and moreover |
- | All in all, if the user is looking for a cheap solution that works with existing infrastructure and is able to maintain the accuracy and reliability of the readings, then this method will definitely be suitable. | + | All in all, if the user is looking for a cheap solution that works with existing infrastructure and is able to maintain the accuracy and reliability of the readings, then this method will definitely be suitable. It was undoubtedly difficult to realize this project in a limited amount of time and with insufficient technological expertise, but with enough devotion and guidance from the instructors, |
=====8. References ===== | =====8. References ===== |
amc/ss2023/group-d/start.1690272880.txt.gz · Last modified: 2023/07/25 10:14 by 29907_students.hsrw