amc:ss2023:group-a:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc:ss2023:group-a:start [2023/07/25 20:28] – osama-haiyl-attallah.attallah | amc:ss2023:group-a:start [2023/07/26 01:23] (current) – [2.0 Materials and Methods] ismail.santina-jarkass | ||
---|---|---|---|
Line 17: | Line 17: | ||
- | ==Quantitaive methods of biodiversity determination== (Ismail) | + | **Quantitaive methods of biodiversity determination** (Ismail) |
To describe species diversity in natural communities, | To describe species diversity in natural communities, | ||
Line 82: | Line 82: | ||
{{: | {{: | ||
+ | |||
Fig 6. 1K, 10K resistors and 2N2222A NPN Transistor | Fig 6. 1K, 10K resistors and 2N2222A NPN Transistor | ||
- | The transistor here acts as a switch, | + | The transistor here acts as a switch (10) |
- | (10) | + | |
==2.1.6 Battery + charge regulator (henry)== | ==2.1.6 Battery + charge regulator (henry)== | ||
- | Lithium-ion polymer batteries are thin, light, and powerful with an output range of 4.2V to 3.7V and a capacity of 2000mAh. The battery comes with a pre-attached genuine 2-pin JST-PH connector preventing snags, smooth insertion, and removal, as well as built-in protection circuitry to prevent overcharging, | + | Lithium-ion polymer batteries are thin, light, and powerful with an output range of 3.7V to 4.2V and a capacity of 2000mAh. The battery comes with a pre-attached genuine 2-pin JST-PH connector preventing snags, smooth insertion, and removal, as well as built-in protection circuitry to prevent overcharging, |
- | The Adafruit Universal USB/ | + | |
- | Adafruit | + | The Adafruit |
- | This charger | + | |
+ | {{: | ||
- | Fig 7. Battery + Charger | + | Fig 7. Battery + LiPo Charger |
- | The bq24074 which powers this design is great for solar charging, and will automatically draw the most current possible from the panel in any light condition | + | The bq24074 which powers this design is great for solar charging, and will automatically draw the most current possible from the panel in any light condition |
- | Maximum Power Point Tracking is a family of control algorithms that aims at optimizing the use of a power source that possesses a fluctuating power profile. | + | Maximum Power Point Tracking is a family of control algorithms that aims at optimizing the use of a power source that possesses a fluctuating power profile. The cloud coverage significantly impacts the capability of a panel to deliver electricity. As such, maximizing the extracted power requires identifying – and tracking – the operating point that provides the highest power level as a function of the operating conditions. MPPT is applied in renewable energy systems. Other special operating points may be interesting to track, such as the maximum efficiency point tracking (MEPT), reasons related to operating costs. The inevitable internal resistance can hinder the maximum possible output power. Since the maximum power point is not located at the maximum (Voc) voltage and max. Isc current point. Therefore, the operating point that delivers the maximum power must be constantly tracked by searching for the best voltage · current combination. Voltage collapses during high current draw. We need to find a way to keep the lipo charger from drawing too much current, and backing off when the voltage starts to drop. The bq24074 is equipped with an Input Dynamic Power Managemtn Mode (Input DPM) and basically, when the input drops below 4.5V approximately, |
- | Indeed, some power sources, like solar panels, present power characteristics that strongly depend on the operating conditions. For instance, the cloud coverage significantly impacts the capability of a panel to deliver electricity. As such, maximizing the extracted power requires identifying – and tracking – the operating point that provides the highest power level as a function of the operating conditions. | + | The charger has 2 LEDS: |
- | + | ||
- | Therefore, Maximum Power Point Tracking (MPPT) is often applied in renewable energy systems – e.g. photovoltaic plants or wind turbines – as their power delivery capability varies significantly and in an unpredictable manner. Other special operating points may be interesting to track, such as the maximum efficiency point tracking (MEPT), or other optimum, e.g. related to operating costs. | + | |
- | + | ||
- | For practically all real power sources, the power that can be extracted varies with the operating point. While electrical sources are related to the voltage/ | + | |
- | + | ||
- | In all cases, the inevitable internal resistance (or equivalent quantity) limits the maximum possible output power. Non-linear or more complex characteristics also exist, but with the same result: the maximum power point is not located at the [max. voltage · max. current] point (or equivalent quantity). Therefore, the operating point that delivers the maximum power must be constantly tracked by searching for the best voltage · current combination. | + | |
OUT - Regulated load output. This pin will provide a regulated output when the input voltage is below the over voltage protection threshold and above the regulation voltage. It will never be higher than 4.4V (but it may dip down to 3V or whatever the LiPo battery voltage is at, if USB/DC isnt plugged in) | OUT - Regulated load output. This pin will provide a regulated output when the input voltage is below the over voltage protection threshold and above the regulation voltage. It will never be higher than 4.4V (but it may dip down to 3V or whatever the LiPo battery voltage is at, if USB/DC isnt plugged in) | ||
PGOOD - Power Good Status (active low). PGOOD pulls to GND (open drain) lighting the connected led when a valid input source is connected. If the input power source is not within specified limits, PGOOD is disconnected from ground (high impedance) and the LED will be off. | PGOOD - Power Good Status (active low). PGOOD pulls to GND (open drain) lighting the connected led when a valid input source is connected. If the input power source is not within specified limits, PGOOD is disconnected from ground (high impedance) and the LED will be off. | ||
- | CHG - Charge status (active low) pulls to GND (open drain) lighting the connected led when the battery is charging. If the battery is charged or the charger is disabled, CHG is disconnected from ground (high impedance) and the LED will be off. | + | CHG - Charge status (active low) pulls to GND (open drain) lighting the connected led when the battery is charging. If the battery is charged or the charger is disabled, CHG is disconnected from ground (high impedance) and the LED will be off. (12) |
- | + | ||
- | OK so how do we fix this problem? The issue we have here is that the voltage collapses during high current draw. We need to find a way to keep the lipo charger from drawing too much current, and backing off when the voltage starts to droop. | + | |
- | + | ||
- | The bq24074 is designed to handle this sort of situation, calls it Input Dynamic Power Managemtn Mode (Input DPM) and basically, it does precisely what we want. When the input drops below 4.5V approximately, | + | |
===2.2 schematic (osama)=== | ===2.2 schematic (osama)=== | ||
- | |||
- | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum | ||
{{: | {{: | ||
- | made with KiCad | + | Fig 8. System schematic |
====3.0 Results (osama)==== | ====3.0 Results (osama)==== | ||
Line 131: | Line 118: | ||
===3.1 Arduino IDE C++ code(Osama)=== | ===3.1 Arduino IDE C++ code(Osama)=== | ||
- | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborumLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum | + | This code is adapted from Random Nerd Tutorials: |
- | (13) | + | |
< | < | ||
Line 277: | Line 263: | ||
The system should be optimized to consume the least power possible. This can be achieved by programming the ESP32-CAM to switch to several sleep modes, such as in the table: | The system should be optimized to consume the least power possible. This can be achieved by programming the ESP32-CAM to switch to several sleep modes, such as in the table: | ||
- | |||
as noted from the table, wireless communication requires a lot of power | as noted from the table, wireless communication requires a lot of power | ||
Line 286: | Line 271: | ||
{{: | {{: | ||
- | |||
Battery run time | Battery run time | ||
- | + | by using a tool to calculate how long the provided battery can provide power to the whole system, all while being charged by a 6V 1A solar panel | |
- | by using a tool to calculate how long the provided battery can provide power to the whole system, all while being charged by a 6V 0.8A solar panel | + | |
This can also be estimated manually: | This can also be estimated manually: | ||
Line 297: | Line 280: | ||
Generally, if a 5V battery has a 1 Ah capacity (or 1000 mAh), then it theoretically powers a 1 A consumer for 1 h based on the formula: | Generally, if a 5V battery has a 1 Ah capacity (or 1000 mAh), then it theoretically powers a 1 A consumer for 1 h based on the formula: | ||
- | Charge capacity = discharge time x charge consumption | + | Charge capacity = discharge time x charge consumption |
- | If 2000 mAh battery | + | If 2000 mAh battery |
- | + | 220 milli amperes x 6 seconds | |
- | 220 milli amperes x 6 x 10 = 13, | + | |
There are 86,400 seconds in a day, 60 of them are considered for operation = 86,340 seconds, multiplied by 10 microamperes = 863.4 milliamperes or 0.8634 amperes | There are 86,400 seconds in a day, 60 of them are considered for operation = 86,340 seconds, multiplied by 10 microamperes = 863.4 milliamperes or 0.8634 amperes | ||
- | |||
average daily current discharge = 13.2 + 0.8634 = 14 amperes | average daily current discharge = 13.2 + 0.8634 = 14 amperes | ||
average daily power consumption = battery operating voltage x average daily current consumption = 4.2 v x 14 = 58.8 | average daily power consumption = battery operating voltage x average daily current consumption = 4.2 v x 14 = 58.8 | ||
- | |||
to fully discharge a 2 Ah LiPo battery, assuming it is not charged with a solar panel, find the time t = battery capacity/ | to fully discharge a 2 Ah LiPo battery, assuming it is not charged with a solar panel, find the time t = battery capacity/ | ||
+ | For a more optimal design, some tips: | ||
In this case, birdfood is placed outside in front of the birdhouse, and the camera is placed facing the outside. Ensure that the PIR sensor is protected one way or another, since it is imperative for monitoring purposes | In this case, birdfood is placed outside in front of the birdhouse, and the camera is placed facing the outside. Ensure that the PIR sensor is protected one way or another, since it is imperative for monitoring purposes | ||
Line 325: | Line 306: | ||
===3.2 Python script to transfer photos (Osama)=== | ===3.2 Python script to transfer photos (Osama)=== | ||
(14) | (14) | ||
- | |||
- | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum | ||
{{: | {{: |
amc/ss2023/group-a/start.1690309683.txt.gz · Last modified: 2023/07/25 20:28 by osama-haiyl-attallah.attallah