Reva Poddar’s Status Report for 11/30

Progress Update:

This week, I focused on refining and implementing the data processing algorithms, including smoothing, moving averages, and pitch-based thresholding for footstrike detection. These algorithms are now functioning within the development environment, but further fine-tuning is needed to ensure they handle diverse gait patterns effectively. Initial testing highlighted areas for optimization in both noise reduction and threshold calibration.

Challenges Faced:

  1. Noise Filtering: Balancing the smoothing algorithms to reduce noise without removing key features necessary for accurate footstrike detection.
  2. Threshold Calibration: Determining the appropriate pitch threshold values to reliably identify footstrikes across different running styles and conditions.
  3. Integration: Ensuring the algorithms operate efficiently in the development environment without significant lag.

Next Steps:

  1. Complete fine-tuning of the data processing algorithms to improve accuracy and reliability.
  2. Test the system under varied gait patterns and terrains to identify additional areas for optimization.
  3. Begin integrating the refined algorithms into the main application for further testing and visualization development.

Vansh Mantri’s Status report for 11/16

We have successfully developed the MVP (Minimum Viable Product) for one shoe as a demonstration unit. The following progress highlights key developments and implementations:

  1. FreeRTOS Implementation: The ESP32 is now running FreeRTOS, enabling efficient multitasking and real-time performance for the motion-sensing system.
  2. Yost IMU Integration: The Yost IMU has been integrated using HSPI, providing accurate motion data capture.
  3. SD Card Functionality: An SD card module is operational using SPI (VSPI) on the ESP32, enabling secure data storage for recorded motion metrics.

This iteration demonstrates significant advancements in system stability, data reliability, and real-time processing, marking a major milestone for the project. The MVP will be tested during the demo to validate its performance under real-world conditions.

Team Status Report for 11/16

Progress Update

  1. Algorithm Development:
    • Implemented smoothing algorithms and moving averages to reduce noise in the incoming data, making it more suitable for analysis.
    • Developed a thresholding algorithm that uses pitch changes from the device to detect footstrikes. By analyzing variations in pitch, the system can more accurately identify footstrikes.
  2. Hardware and System Updates:
    • Successfully developed an MVP (Minimum Viable Product) for one shoe, demonstrating key functionalities for motion sensing.
    • Integrated the Yost IMU into the system using HSPI, enabling accurate motion data capture.
    • Deployed FreeRTOS on the ESP32 to achieve efficient multitasking and real-time performance.
    • Operationalized an SD card module using SPI (VSPI) on the ESP32 for secure data storage of recorded motion metrics.

Challenges Faced

  1. Algorithm Optimization:
    • Balancing the smoothing and moving average algorithms to ensure noise reduction without distorting essential data features needed for footstrike detection.
  2. Threshold Calibration:
    • Determining the optimal threshold values for pitch changes to reliably detect footstrikes while minimizing false positives or missed detections.
  3. MVP Testing:
    • Ensuring the integrated hardware and algorithms perform seamlessly during real-world demos.

Key Achievements

  • Algorithm Implementation: Smoothing and thresholding algorithms are operational and ready for validation.
  • FreeRTOS Integration: ESP32 now runs FreeRTOS, enabling real-time multitasking for improved system performance.
  • Hardware Integration: Successfully incorporated the Yost IMU and an SD card module for motion data capture and storage.
  • MVP Development: A functional demonstration unit for one shoe is ready for testing and evaluation.

Next Steps

  1. Algorithm Validation:
    • Test smoothing and thresholding algorithms with a larger dataset to ensure accuracy and reliability.
    • Collect feedback from initial tests to refine the algorithms further.
  2. Integration into Application:
    • Incorporate the footstrike detection feature into the main application to provide real-time insights to users.
  3. MVP Testing:
    • Conduct extensive testing of the MVP under real-world conditions to validate system stability and data reliability.
  4. User Feedback:
    • Gather user feedback during demos to identify areas for improvement in both hardware and software components.

Conclusion

The project has achieved a significant milestone with the development of a fully functional MVP and the integration of advanced data processing algorithms. While challenges in algorithm optimization and threshold calibration remain, the team is on track to refine and enhance the system for real-world application. Upcoming efforts will focus on validation, user feedback, and system integration to further improve accuracy, reliability, and user experience.

Reva Poddar’s Status Report for 11/16

Progress Update:

This week, I focused on implementing smoothing algorithms and moving averages to process the incoming data. These techniques help in reducing noise and making the data more suitable for analysis. I also worked on a thresholding algorithm that uses the pitch of the device as a means of detecting footstrikes. By analyzing the changes in pitch, we can more accurately determine when a footstrike occurs.

Challenges Faced:

  • Algorithm Optimization: Ensuring the smoothing and moving average algorithms do not distort the essential features of the data needed for accurate footstrike detection.
  • Threshold Calibration: Determining the optimal threshold values for pitch changes to reliably detect footstrikes without false positives.

Next Steps:

  • Validate the smoothing and thresholding algorithms with a larger dataset.
  • Integrate the footstrike detection feature into the main application.
  • Collect feedback from initial tests to further refine the algorithms.

Vansh Mantri’s status report for 11/9

Status Report: Motion Sensing Project

Progress Summary: We received the new Yost sensor this week, which we are preparing to integrate into our system. The next steps involve carefully soldering the sensor to ensure stable connectivity and functionality within the device setup.

Key Achievements:

  • Successfully configured the Bosch IMU to communicate data to the ESP, allowing us to capture and process motion data accurately.
  • Set up a pipeline to log this data onto an SD card, creating a structured log of information for further analysis.
  • Implemented BLE functionality, enabling us to transfer the collected data as a .txt file from the SD card directly to the mobile app. This feature enhances accessibility and user interaction with the data.

Next Steps:

  • Proceed with the soldering of the Yost sensor and begin testing its compatibility with our current system.
  • Conduct performance tests to ensure stable data transfer and app connectivity via BLE.
  • Continue refining the system for optimal data accuracy and usability.

Challenges: No significant issues have arisen with the current components; however, careful handling of the Yost sensor during soldering is essential to prevent potential connectivity problems.

Conclusion: The project is on track, with successful data capture and transfer mechanisms established. Integration of the Yost sensor will further enhance motion sensing capabilities and bring us closer to our target performance benchmarks.

Team Status Report for 11/9

Progress Update

  1. Buffer System and Data Handling:
    • Implemented a buffer system to manage incoming data, which is flushed into a local data structure in Dart for real-time processing.
    • Buffered data is being saved into a CSV file for further analysis and visualization.
    • Began developing algorithms to parse through the data structure and CSV file to detect footstrikes, a critical metric for the project.
  2. Integration of New Hardware:
    • Received the new Yost sensor and started preparation for integration into the existing system.
    • The Bosch IMU has been successfully configured to communicate motion data to the ESP32, allowing for accurate data capture and processing.
  3. Data Logging and Transfer:
    • Set up a pipeline to log motion data onto an SD card for structured analysis.
    • Implemented BLE functionality to transfer the data as a .txt file from the SD card directly to the mobile app, enhancing accessibility and user interaction.

Challenges Faced

  1. Data Visualization:
    • Developing intuitive and informative visual representations of buffered and logged data remains a challenge.
  2. Footstrike Detection Algorithm:
    • Parsing complex datasets to accurately detect footstrikes requires fine-tuning and validation against real-world motion scenarios.
  3. Hardware Integration:
    • The soldering and handling of the Yost sensor require precision to ensure stable connectivity and functionality.

Key Achievements

  • Data Capture: Successfully configured the Bosch IMU for seamless communication with the ESP32.
  • Data Logging: Created a robust pipeline for logging motion data onto an SD card.
  • BLE Transfer: Enabled BLE functionality to transfer .txt files directly to the app, improving user interaction.
  • Buffer System: Established a reliable buffer system for efficient data management and storage.

Next Steps

  1. Hardware Integration:
    • Proceed with soldering the Yost sensor and test its compatibility with the current system.
  2. Footstrike Detection:
    • Continue developing and validating the footstrike detection algorithm using collected data.
  3. Data Visualization:
    • Refine visualization tools within the app to better represent trends and patterns in the motion data.
  4. Performance Testing:
    • Test system performance under various conditions to ensure stable data transfer and app connectivity via BLE.
  5. Optimization:
    • Enhance the buffer system for improved performance and reliability.

Conclusion

The project is progressing well, with significant milestones achieved in data capture, logging, and BLE transfer. Integration of the new Yost sensor will expand the system’s capabilities, while ongoing improvements in data visualization and footstrike detection algorithms will provide actionable insights. The team remains focused on refining the system for enhanced accuracy, reliability, and user experience.

Reva Poddar’s Status Report for 11/9

Progress Update:

We have implemented a buffer system to flush incoming data into a local data structure in Dart. This buffered data is also being saved into a CSV file for further analysis. We are currently working on visualizing this data to better understand the patterns and trends. Additionally, we are developing algorithms to parse through the data structure and the CSV file to detect footstrikes, which is a critical component of our project.

Challenges Faced:

  • Data Visualization: Creating intuitive and informative visual representations of the buffered data.
  • Footstrike Detection Algorithm: Parsing complex data to accurately detect footstrikes requires fine-tuning and validation against real-world scenarios.

Next Steps:

  • Continue refining the data visualization tools within the app.
  • Test and improve the footstrike detection algorithm using the collected data.
  • Optimize the buffer system for better performance and reliability.

Vansh Mantri’s Status Report for 11/2

Summary of Work Done

  1. Data Acquisition and Smoothing
    • Raw linear acceleration data along the X-axis was acquired from the BNO055 IMU in NDOF mode.
    • Initial analysis showed significant noise in the raw data even when the sensor was stationary. To address this, we applied exponential smoothing to reduce high-frequency noise and stabilize the signal for further processing. This step was essential to obtain a more accurate representation of linear acceleration.
  2. Bias Correction
    • A bias correction technique was implemented by recording a stationary baseline and calculating the mean of the initial readings to account for any offset. This average offset was then subtracted from all subsequent readings, ensuring that the data approached zero when the IMU was stationary.
  3. Velocity and Displacement Calculation
    • First Integration: The smoothed and bias-corrected acceleration data was integrated over time to estimate velocity.
    • Second Integration: The calculated velocity was further integrated over time to estimate displacement along the X-axis.
    • A fixed time interval (dt), based on the IMU’s sampling rate, was used to ensure consistent and accurate integration at each step.
  4. ESP32 Data Transmission to Mobile App
    • We used an ESP32 microcontroller to transmit the processed IMU data to a mobile app. Here’s how we set up this data transmission:
      • BLE Communication: The ESP32 was configured to create a BLE server, allowing it to communicate wirelessly with the mobile app.
      • Data Formatting: The processed data (smoothed acceleration, velocity, and displacement) was formatted into strings to ensure compatibility with the app’s data parsing requirements.
  5. Challenges Encountered in Transmission
    • Power Management on ESP32: To prevent overheating and optimize power usage, we implemented a delay between data transmissions. Additionally, we configured the ESP32’s Wi-Fi settings to minimize power consumption during idle periods.

Results

The processed data was successfully transmitted from the ESP32 to the mobile app, allowing users to monitor acceleration, velocity, and displacement values. Key outputs included:

  • Velocity (X-axis): An estimated velocity value over time.
  • Displacement (X-axis): An estimated displacement value based on double integration of acceleration data.

Challenges and Recommendations

  1. Noise and Drift in Displacement Calculation
    • Despite smoothing, residual noise in acceleration data caused drift in velocity and displacement estimates. For future improvements, advanced filters like the Kalman filter should be explored to address this drift.
  2. Temperature and Environmental Sensitivity
    • Observations showed minor variations in IMU data under different temperature conditions. Future work could involve temperature-based calibration to further improve accuracy.

Next Steps

  1. Implement Advanced Filtering (Kalman Filter): Integrating a Kalman filter could help reduce drift by combining the current estimate with previous estimates and error measurements, leading to more reliable displacement values.
  2. App Enhancement for Data Visualization: Adding a graphing feature in the app to display trends over time could provide users with better insights into changes in acceleration, velocity, and displacement.

Conclusion

This project successfully calculated and transmitted displacement data from an IMU via an ESP32 to a mobile app. While preliminary results are promising, further improvements in filtering and alternative communication methods could enhance both the accuracy of displacement estimation and the reliability of data transmission. Integrating advanced filtering and refining the app’s user interface for better visualization are recommended next steps.

Team Status Report for 11/2

Progress Update

This week, the team made significant progress on multiple fronts:

  1. Bluetooth Connection:
    • Successfully established a robust Bluetooth connection between the ESP32 device and the mobile application.
    • Developed a protocol to send structured data (using structs) to the app, improving the efficiency and reliability of data transmission.
    • Implemented a transfer status ID to indicate the end of data transmission, ensuring the app can detect when a complete data packet has been received.
  2. Data Acquisition and Processing:
    • Acquired raw linear acceleration data along the X-axis from the BNO055 IMU in NDOF mode.
    • Applied exponential smoothing to reduce high-frequency noise, stabilizing the acceleration signal for further analysis.
    • Corrected sensor bias by recording a stationary baseline and subtracting the offset from subsequent readings.
    • Calculated velocity (through first integration) and displacement (through second integration) based on the smoothed acceleration data, using a fixed time interval determined by the IMU’s sampling rate.
  3. Data Transmission:
    • Configured the ESP32 as a BLE server for transmitting processed IMU data to the app.
    • Formatted the data into strings for compatibility with the app’s parsing requirements.
  4. UI Improvements:
    • Added a user interface section to input height and weight, which will be used in future analytics.
    • Enhanced the visualization of data, focusing on graphs and trends to provide more intuitive insights for users.

Challenges Faced

  1. Data Transmission Timing Issues:
    • The asynchronous nature of Bluetooth communication led to timing discrepancies, with data packets occasionally being received out of order.
  2. Noise and Drift in Displacement Calculation:
    • Residual noise in acceleration data caused drift in velocity and displacement estimates, even after smoothing.
  3. Temperature and Environmental Sensitivity:
    • Minor variations in IMU data were observed under different temperature conditions, highlighting the need for temperature-based calibration.
  4. ESP32 Power Management:
    • To prevent overheating and optimize power usage, delays were implemented between transmissions. Additionally, Wi-Fi settings were optimized to minimize power consumption during idle periods.

Results

  1. Processed Data:
    • Successfully transmitted smoothed acceleration, velocity, and displacement data from the ESP32 to the app.
    • Users can now monitor these values through the mobile app.
  2. Key Outputs:
    • Velocity (X-axis): Estimated velocity over time.
    • Displacement (X-axis): Estimated displacement via double integration of acceleration data.

Next Steps

  1. Data Transmission Improvements:
    • Investigate and resolve timing issues to ensure data packets are received in the correct order.
    • Implement error-checking mechanisms to handle unordered data reception.
    • Conduct extensive testing under different conditions to identify and mitigate bottlenecks.
  2. Advanced Filtering:
    • Explore the use of a Kalman filter to reduce drift and improve accuracy in displacement and velocity calculations.
  3. App Enhancements:
    • Add data visualization features, such as graphs and trendlines, to improve user insights into acceleration, velocity, and displacement trends.
  4. Temperature Calibration:
    • Investigate temperature sensitivity of the IMU and incorporate calibration techniques to minimize its impact.

Conclusion

The team has made significant progress in both hardware communication and data processing. The establishment of Bluetooth communication and successful implementation of data acquisition and smoothing techniques lay the groundwork for further improvements. Challenges such as timing discrepancies, noise-induced drift, and environmental sensitivities have been identified and are being addressed. Upcoming efforts will focus on advanced filtering techniques, enhanced data visualization, and continued system optimization to ensure reliability and usability for end-users.

Reva Poddar’s Status Report for 11/2

Progress Update:

This week, we successfully solidified the Bluetooth connection between our ESP32 device and the mobile application. We developed a protocol to send structured data (using structs) to the app, which has improved the efficiency and reliability of our data transmission. Additionally, we implemented a transfer status ID to indicate the end of data transmission, ensuring that the app knows when a data packet is fully received.

Challenges Faced:

  • Timing Issues: We are experiencing problems with data not being received in order. The asynchronous nature of Bluetooth communication is causing timing discrepancies, leading to out-of-order data packets.

Next Steps:

  • Investigate and resolve the timing issues to ensure data packets are received in the correct order.
  • Implement error-checking mechanisms to handle any unordered data reception.
  • Begin initial testing of data transmission under different conditions to identify potential bottlenecks.