amc:ss2024:schafalarm:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc:ss2024:schafalarm:start [2024/07/30 22:06] – [First Prototype (Xiao BLE Sense)] tasio.rodriguez-puy | amc:ss2024:schafalarm:start [2024/07/30 22:26] (current) – [5. Conclusion] tasio.rodriguez-puy | ||
---|---|---|---|
Line 136: | Line 136: | ||
</ | </ | ||
- | 3º Setup function, here the serial communication is initialized | + | 3º Setup function, here the serial communication is initialized |
<code C++> | <code C++> | ||
Line 175: | Line 175: | ||
</ | </ | ||
- | 4º Loop Function, the BLE listens for connections from central devices (this is configured as a periphreal). When a connexion is established, | + | 4º Loop Function, the BLE listens for connections from central devices (this is configured as a periphreal). When a connexion is established, |
<code C++> | <code C++> | ||
Line 387: | Line 387: | ||
</ | </ | ||
- | 5º The setup function initializes the serial communication, | + | 5º The setup function initializes the serial communication, |
<code C++> | <code C++> | ||
void setup() { | void setup() { | ||
Line 451: | Line 451: | ||
6º The loop function makes the state machine handle different states:\\ | 6º The loop function makes the state machine handle different states:\\ | ||
MOVE STATE:\\ | MOVE STATE:\\ | ||
- | Occurs when the system wakes up due to a motion interrupt from the MPU6050 sensor. In the void loop, read the IMU data, transfer | + | Occurs when the system wakes up due to a motion interrupt from the MPU6050 sensor. In the void loop, the IMU data is read, transfered |
- | < | + | < |
TIMER STATE:\\ | TIMER STATE:\\ | ||
- | Occurs | + | It occurs |
STOP STATE: \\ | STOP STATE: \\ | ||
Line 516: | Line 516: | ||
</ | </ | ||
======3. Results ====== | ======3. Results ====== | ||
- | This section presents the findings from testing two prototypes for monitoring sheep movement. Each prototype was tested | + | This section presents the findings from testing two prototypes for monitoring sheep movement. Each prototype's range was tested in outdoors and indoors conditions.\\ |
Line 530: | Line 530: | ||
In this prototype the microcontroller was flashed with the __code__ and connected to a 1000mAh lithium-ion battery and inserted on a casing attached to a collar. Some measurements and tests were taken with some alpacas that were available.\\ | In this prototype the microcontroller was flashed with the __code__ and connected to a 1000mAh lithium-ion battery and inserted on a casing attached to a collar. Some measurements and tests were taken with some alpacas that were available.\\ | ||
- | The module receiving the data sent by the prototype was another Xiao BLE Sense flashed with some __receiver code__, since it was not possible to receive it on the desktop application of Nordic Semiconductors (However, on the mobile app enabling and data download was possible, allowing to read the accelerometer values from the alpacas with a smartphone).\\ | + | The module receiving the data sent by the prototype was another Xiao BLE Sense flashed with some __receiver code__, since it was not possible to receive it on the desktop application of Nordic Semiconductors (however, on the mobile app enabling and data download was possible, allowing to read the accelerometer values from the alpacas with a smartphone).\\ |
**RANGE TESTS**\\ | **RANGE TESTS**\\ | ||
Line 546: | Line 546: | ||
The maximum range acheived both __indoors__ and __outdoors__ in normal conditions was of 42m, +-2m, on the onther side, when tested with the nRF app on the smartphone values of 60m, +-2m, both indoors and outdoors were obtained as well.\\ | The maximum range acheived both __indoors__ and __outdoors__ in normal conditions was of 42m, +-2m, on the onther side, when tested with the nRF app on the smartphone values of 60m, +-2m, both indoors and outdoors were obtained as well.\\ | ||
- | However, it is important to highlight that this values were obtained without any obstacle in between and at average height of 1.4m from the ground. **OUTOORS** it was observed that if you the board was placed in the ground or close to it, the conexion would be lost, and recoverd | + | However, it is important to highlight that this values were obtained without any obstacle in between and at average height of 1.4m from the ground. **OUTOORS**, it was observed that if the board was placed in the ground or close to it, the conexion would be lost, and recovered |
- | The [[https:// | + | The [[https:// |
Line 584: | Line 584: | ||
- | All current | + | All current |
**with deep sleep**\\ | **with deep sleep**\\ | ||
Line 597: | Line 597: | ||
======4. Discussion ====== | ======4. Discussion ====== | ||
- | The initial use of the Xiao BLE Sense showed that while it was capable of detecting motion and transmitting data via BLE, the range limitations and lack of roaming capability made it unsuitable for our needs. The range limitations | + | The initial use of the Xiao BLE Sense showed that, while it was capable of detecting motion and transmitting data via BLE, the range limitations and lack of roaming capability made it unsuitable for our needs. The range limitations |
The switch to the ESP32-S3 microcontroller with the RFM69HCW radio module and the GY-521 accelerometer overcame these issues. The RF69 module provided a much larger range, and the ESP32-S3' | The switch to the ESP32-S3 microcontroller with the RFM69HCW radio module and the GY-521 accelerometer overcame these issues. The RF69 module provided a much larger range, and the ESP32-S3' | ||
Line 607: | Line 607: | ||
Power consumption is also a critical factor for this project. Since the sensors and communication modules will be attached to sheep, they need to operate efficiently on battery power. One of the solutions to further reduce the power consumption would be cutting of the power supply to the RF69 module when the esp32 in on deep sleep so more power can be saved. | Power consumption is also a critical factor for this project. Since the sensors and communication modules will be attached to sheep, they need to operate efficiently on battery power. One of the solutions to further reduce the power consumption would be cutting of the power supply to the RF69 module when the esp32 in on deep sleep so more power can be saved. | ||
======5. Conclusion ====== | ======5. Conclusion ====== | ||
- | In conclusion, while the project has made significant progress in developing a system to detect sheep movement and potential wolf attacks, several critical steps remain. Field testing is necessary to check the system' | + | In conclusion, while the project has made significant progress in developing a system to detect sheep movement and potential wolf attacks, several critical steps remain |
amc/ss2024/schafalarm/start.1722370009.txt.gz · Last modified: 2024/07/30 22:06 by tasio.rodriguez-puy