User Tools

Site Tools


amc:ss2023:group-t:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
amc:ss2023:group-t:start [2023/07/25 19:39] somaya.ahmadianamc:ss2023:group-t:start [2023/07/25 20:36] (current) somaya.ahmadian
Line 28: Line 28:
  
  
-https://randomnerdtutorials.com/getting-started-with-esp32/+Source: https://randomnerdtutorials.com/getting-started-with-esp32/
  
 **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, it also features a microSD card slot that can be useful to store images taken with the camera or to store files to serve to clients. For the purpose of our project we have used an ESP32Cam by AIThinker.+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, it also features a microSD card slot that can be useful to store images taken with the camera or to store files to serve to clients. For the purpose of our project we have used an ESP32Cam by AIThinker.  
 + 
 +Source: https://randomnerdtutorials.com/esp32-cam
  
 {{:amc:ss2023:group-t:esp32cam-berrybase.de.png?200|}} {{:amc:ss2023:group-t:esp32cam-berrybase.de.png?200|}}
-                  +
 Figure 1: ESP32CAM https://www.makershop.de/plattformen/nodemcu/esp32-cam-board/ Figure 1: ESP32CAM https://www.makershop.de/plattformen/nodemcu/esp32-cam-board/
  
Line 40: Line 42:
 {{:amc:ss2023:group-t:esp32cam_pinout.jpeg?400|}} {{:amc:ss2023:group-t:esp32cam_pinout.jpeg?400|}}
  
-Figure 2: https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/+Figure 2: ESP32CAM pinout https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/
    
- 
-Source: https://randomnerdtutorials.com/esp32-cam 
  
 ==== 2.2. UartSBee ==== ==== 2.2. UartSBee ====
  
 UART stands for universal asynchronous receiver/transmitter and is a simple, two-wire protocol for exchanging serial data. UART stands for universal asynchronous receiver/transmitter and is a simple, two-wire protocol for exchanging serial data.
-{{:amc:ss2023:group-t:uartsbee-seeedstudio.jpeg?200|}}                    {{:amc:ss2023:group-t:uart_txrx.png?200|}}+{{:amc:ss2023:group-t:uartsbee-seeedstudio.jpeg?200|}}   
 + 
 +Figure 3: UartSBee https://evelta.com/uartsbee-v5-seeed-studio/                   
 + 
 +{{:amc:ss2023:group-t:uart_txrx.png?200|}} 
 + 
 +Figure 4: Uart uses two wires between transmitter and receiver to transmit and receive in both directions. https://www.rohde-schwarz.com/us/products/test-and-measurement/essentials-test-equipment/digital-oscilloscopes/understanding-uart_254524.html#gallery-8
  
  
Line 54: Line 60:
  
 {{:amc:ss2023:group-t:05_understanding-uart_02_w480_hx.png?400|}}  {{:amc:ss2023:group-t:05_understanding-uart_02_w480_hx.png?400|}} 
 +
 +Figure 5:  Uart frame contains start and stop bits, data bits, and an optional parity bit. https://www.rohde-schwarz.com/us/products/test-and-measurement/essentials-test-equipment/digital-oscilloscopes/understanding-uart_254524.html#gallery-8
 +
  
  
 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://www.rohde-schwarz.com/us/products/test-and-measurement/essentials-test-equipment/digital-oscilloscopes/understanding-uart_254524.html#gallery-8 
  
 ==== 2.3. 16 GB MicroSD card ==== ==== 2.3. 16 GB MicroSD card ====
Line 87: Line 95:
  
 {{:amc:ss2023:group-t:lipo_akku_ekstein-shop.de.png?200|}} {{:amc:ss2023:group-t:lipo_akku_ekstein-shop.de.png?200|}}
 +
 +Fifure 6: LiPo Battery https://www.akkuman.de/shop/Akku-kompatibel-Fatboy-Edison-the-petit-PN704050-37V-1600mAh?curr=EUR&gad=1&gclid=Cj0KCQjw5f2lBhCkARIsAHeTvljkZAMPWR_616Zd6VWrigpjHYuo1BEREuBQiuNyIN_1z3dzxAbeGUkaAlhoEALw_wcB
  
 ==== 2.9. LiPo charger/adapter ==== ==== 2.9. LiPo charger/adapter ====
Line 93: Line 103:
  
 {{:amc:ss2023:group-t:lipo_charger_ekstein-shop.de.png?200|}} {{:amc:ss2023:group-t:lipo_charger_ekstein-shop.de.png?200|}}
 +
 +Figure 7: LiPo charger/adapter https://eckstein-shop.de/AdafruitUniversalUSB2FDC2FSolarLithiumIon2FPolymercharger?gclid=Cj0KCQjw5f2lBhCkARIsAHeTvlhVRSFS-UhLw4jDF7190yPZA1hKYx_U5e4FTyNKABkcUAkUa7Tg8cYaAkOcEALw_wcB
  
 ==== 2.10. Step-up/Step-down Voltage Regulator ==== ==== 2.10. Step-up/Step-down Voltage Regulator ====
Line 98: Line 110:
  
 {{:amc:ss2023:group-t:pololu_stepup_down_voltage_regulator.png?200|}} {{:amc:ss2023:group-t:pololu_stepup_down_voltage_regulator.png?200|}}
 +
 +Figure 8: Voltage Regulator https://www.pololu.com/product/4085
  
 ===== 3. Method ===== ===== 3. Method =====
Line 105: 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.
  
-{{:amc:ss2023:group-t:wiring.jpeg?400|}}                    {{:amc:ss2023:group-t:pin_connection.jpeg?200|}}+{{:amc:ss2023:group-t:wiring.jpeg?400|}}  
  
 +Figure 9: Connection setup of ESP32CAM with UartSBee                  
 +
 +
 +Table 1: Pin connection of ESP32CAM and UartSBee
 + 
 +{{:amc:ss2023:group-t:pin_connection.jpeg?200|}}
  
  
Line 138: Line 158:
  
 {{:amc:ss2023:group-t:camerafocus.jpeg?200|}} {{:amc:ss2023:group-t:camerafocus.jpeg?200|}}
 +
 +Figure 10: Focus adjustment of the camera https://jomjol.github.io/AI-on-the-edge-device-docs/Installation/
  
 ==== 3.6. Casing ==== ==== 3.6. Casing ====
Line 144: Line 166:
  
 {{:amc:ss2023:group-t:img_0229.jpg?200|}} {{:amc:ss2023:group-t:img_0229.jpg?200|}}
 +
 +Figure 11: ESP32CAM and watermeter casing
 +
 ==== 3.7 Power Supply ==== ==== 3.7 Power Supply ====
  
Line 149: Line 174:
  
 {{:amc:ss2023:group-t:img_0729.jpg?400|}} {{:amc:ss2023:group-t:img_0729.jpg?400|}}
 +
 +Figure 12: Power supply setup 
  
  
Line 157: Line 184:
  
 {{:amc:ss2023:group-t:screenshot_2023-07-25_at_13.55.551.png?400|}} {{:amc:ss2023:group-t:screenshot_2023-07-25_at_13.55.551.png?400|}}
 +
 +Figure 13: AI-on-the-edge setup webpage
  
 However, we encountered an issue with the ESP32's built-in LED, as its flashing caused unwanted reflections on the glass of the water meter, making the AI-based readout challenging. To address this, we decided to cover the LED with a piece of tape, which provided better control over reflections and improved the accuracy of the readings.  However, we encountered an issue with the ESP32's built-in LED, as its flashing caused unwanted reflections on the glass of the water meter, making the AI-based readout challenging. To address this, we decided to cover the LED with a piece of tape, which provided better control over reflections and improved the accuracy of the readings. 
Line 169: Line 198:
  
 {{:amc:ss2023:group-t:screenshot_2023-07-25_at_14.00.27.png?400|}} {{:amc:ss2023:group-t:screenshot_2023-07-25_at_14.00.27.png?400|}}
 +
 +Figure 14: Selecting some reference points
  
  
Line 174: Line 205:
  
 {{:amc:ss2023:group-t:screenshot_2023-07-25_at_14.04.43.png?400|}} {{:amc:ss2023:group-t:screenshot_2023-07-25_at_14.04.43.png?400|}}
 +
 +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." Finally, we saved all our changes with "Save all to Config.ini."Since our water meter lacked analog information, we unchecked the next step. To adjust the positions of the ROIs within the reading, we used the options "Move Next" or "Move Previous." Finally, we saved all our changes with "Save all to Config.ini."Since our water meter lacked analog information, we unchecked the next step.
Line 184: Line 217:
  
 {{:amc:ss2023:group-t:screenshot_2023-07-25_at_15.55.47.png?400|}} {{:amc:ss2023:group-t:screenshot_2023-07-25_at_15.55.47.png?400|}}
 +
 +Figure 16: Oracle VirtualBox setup to run Home Assistant in a Linux based environment
  
  
amc/ss2023/group-t/start.1690306760.txt.gz · Last modified: 2023/07/25 19:39 by somaya.ahmadian