amc:ss2023:group-e:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc:ss2023:group-e:start [2023/07/25 12:32] – wai001 | amc:ss2023:group-e:start [2023/07/26 07:45] (current) – wai001 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====Bird House: Surveillance system==== | ====Bird House: Surveillance system==== | ||
HSRW AMC Project\\ | HSRW AMC Project\\ | ||
- | Yongyi Wang(27634), | + | Yongyi Wang(27634), |
**1. Introduction** \\ | **1. Introduction** \\ | ||
EU The Birds Directive (Directive 79/ | EU The Birds Directive (Directive 79/ | ||
Line 43: | Line 43: | ||
The specification can be assessed here in the datasheet below. | The specification can be assessed here in the datasheet below. | ||
\\ | \\ | ||
- | {{: | + | {{: |
\\ | \\ | ||
Esp32 cam can be powered by either 3.3V or 5V but when flashing on 3.3 V, esp32 cam error | Esp32 cam can be powered by either 3.3V or 5V but when flashing on 3.3 V, esp32 cam error | ||
Line 49: | Line 49: | ||
be powered with 5V. Gpio 3 and 1 are serial pins and transfer data and used to upload codes | be powered with 5V. Gpio 3 and 1 are serial pins and transfer data and used to upload codes | ||
to the camera module. | to the camera module. | ||
- | Esp32 In flashing | + | //Esp32 In flashing |
camera | camera | ||
- | connection and unground the GPIO 0, for the camera module to start working. | + | connection and unground the GPIO 0, for the camera module to start working.// |
- | / | + | \\{{: |
Fig3: Esp32 cam on flashing mode( source: Wai Lin) | Fig3: Esp32 cam on flashing mode( source: Wai Lin) | ||
\\ | \\ | ||
Line 67: | Line 67: | ||
● PIR Sensor\\ | ● PIR Sensor\\ | ||
| | ||
- | Fig 5: PIR sensor description (source: Adafruit ) \\ | + | Fig 4: PIR sensor description (source: Adafruit ) \\ |
PIR referred to as " | PIR referred to as " | ||
low power and inexpensive motion sensors. It has a sensitivity range up to 6 meters high and | low power and inexpensive motion sensors. It has a sensitivity range up to 6 meters high and | ||
Line 101: | Line 101: | ||
unnecessary troubleshooting along the way. The source code from esp32 library was utilized | unnecessary troubleshooting along the way. The source code from esp32 library was utilized | ||
for this step. \\ | for this step. \\ | ||
- | {{ : | + | {{ : |
We chose AI thinker camera configuration. | We chose AI thinker camera configuration. | ||
If everything goes well you will receive the IP address of your image stream on serial monitor | If everything goes well you will receive the IP address of your image stream on serial monitor | ||
Line 112: | Line 112: | ||
\\ | \\ | ||
**Camera module and PIR sensor connection**\\ | **Camera module and PIR sensor connection**\\ | ||
- | | + | |
\\ | \\ | ||
When motion is detected by the PIR sensor, GPIO13 goes high, the board will then wake up, | When motion is detected by the PIR sensor, GPIO13 goes high, the board will then wake up, | ||
Line 119: | Line 119: | ||
be published to Flespi via MQTT as a message and also saved on the SD card. | be published to Flespi via MQTT as a message and also saved on the SD card. | ||
- | ====Sleeping Modes of ESP32==== | + | **Sleeping Modes of ESP3** |
The ESP32 microcontroller utilized in the project supports a range of general sleeping modes | The ESP32 microcontroller utilized in the project supports a range of general sleeping modes | ||
depending on which can reduce the RAM and CPU power and the working Wifi capabilities. | depending on which can reduce the RAM and CPU power and the working Wifi capabilities. | ||
- | Table 1.2 depicts a range of sleeping modes and their features with power supply. | + | Table 1.2 depicts a range of sleeping modes and their features with power supply. |
+ | \\ | ||
Table 1.2: The sleeping modes supported by ESP32 (source: | Table 1.2: The sleeping modes supported by ESP32 (source: | ||
+ | ^ Power Mode ^ Description | ||
+ | | Active (RF working) | ||
+ | | Modem-sleep | ||
+ | | Modem-sleep | ||
+ | | Modem-sleep | ||
+ | | Modem-sleep | ||
+ | | Modem-sleep | ||
+ | | Light-sleep | ||
+ | | Deep-sleep | The ULP co-processor is powered on.|The ULP co-processor is powered on. | 150 µA 100 µA @1% duty 10 µA | | ||
+ | | Deep-sleep | ULP sensor-monitored pattern |ULP sensor-monitored pattern| 150 µA 100 µA @1% duty 10 µA | | ||
+ | | Deep-sleep | RTC timer + RTC memory |RTC timer + RTC memory | 150 µA 100 µA @1% duty 10 µA | | ||
+ | | Hibernation | RTC timer only |RTC timer only | 5µA | | ||
+ | | Power off | CHIP_PU is set to low level, the chip is powered off. |CHIP_PU is set to low level, the chip is powered off. | 1µA | | ||
Line 137: | Line 151: | ||
sensor, the waking up of the system takes place. \\ | sensor, the waking up of the system takes place. \\ | ||
| | ||
- | \\ | + | \\ |
- | ***MQTT Protocol*** \\ | + | \\ |
+ | **MQTT Protocol** \\ | ||
MQTT (message queuing telemetry transport) is a messaging protocol that was designed to | MQTT (message queuing telemetry transport) is a messaging protocol that was designed to | ||
create a reliable standard for machine-to-machine (m2m) communication. It is a publish-and- | create a reliable standard for machine-to-machine (m2m) communication. It is a publish-and- | ||
Line 272: | Line 287: | ||
- | ***4. Discussion*** \\ | + | **4. Discussion** \\ |
**4.1 Limitations**\\ | **4.1 Limitations**\\ | ||
The flashlight on ESP 32 cam is an indicator for successful photo taking, however, it is too | The flashlight on ESP 32 cam is an indicator for successful photo taking, however, it is too | ||
Line 290: | Line 305: | ||
\\ | \\ | ||
**5. Conclusion **\\ | **5. Conclusion **\\ | ||
- | | + | |
\\ | \\ | ||
In the end, the surveillance system achieves the set criteria of inexpensive, | In the end, the surveillance system achieves the set criteria of inexpensive, |
amc/ss2023/group-e/start.1690281131.txt.gz · Last modified: 2023/07/25 12:32 by wai001