https://github.com/RomeroPablo/DataAcq-StarterProject
The Data Acquisition System for Longhorn Racing Solar can be divided into the following subsystems:
Telemetry Acquisition
This subsystem is responsible for capturing real-time signals from the vehicle’s electrical, mechanical, and environmental systems, and also handles the transmission of this data to the display subsystem.Telemetry Display
The Telemetry Display subsystem is responsible for creating and maintaining the dashboard that displays critical telemetry to relevant systems. This involves designing user-friendly interfaces, integrating real-time data streams, and providing customizable views for the various systems.Telemetry Analysis
This subsystem uses the telemetry data to inform race strategies and verify system performance. The team working on analysis applies advanced data processing techniques, such as data analytics, simulation modeling, and machine learning, to optimize race conditions and suggest improvements to vehicle performance and mechanical design.
This project is designed to introduce you to some key technologies utilized across the various subsystems of Data Acq. While it doesn't serve as an exhaustive overview or an in-depth tutorial on any single technology, its purpose is to help you understand the broader data acquisition pipeline and how the different components come together.
Even if your role focuses on just one of these technologies, it's crucial to have a solid grasp of the overall system. This knowledge not only enhances collaboration with your teammates but also allows you to integrate your work with theirs, ensuring a cohesive design.
Development Environment
Ensure you have properly setup the following software packages before continuing:
https://www.st.com/en/development-tools/stm32cubeide.html
https://www.python.org/downloads/
https://anaconda.org/anaconda/conda
https://projectchrono.org/pychrono/
Objective
Develop a real-time telemetry system that captures, transmits, and analyzes data from an Inertial Measurement Unit (IMU) connected to an STM32 microcontroller, visualizes the data through a web dashboard, and performs dynamic simulations using the PyChrono library for mechanical analysis.
Acquisition
The first step in the data acquisition pipeline is digitizing the target signal—in our case, vehicle positional information. We use the LSM6 IMU, an always-on 3-axis accelerometer and 3-axis gyroscope to achieve this. Since there are several revisions of this IMU, it’s essential to ensure that the datasheet you reference corresponds to the specific version you're working with. Below is the link to the datasheet for the IMU you are likely using for this project:
https://www.st.com/en/mems-and-sensors/lsm6ds3tr-c.html
We also require a Micro Controller Unit (MCU), to interface, process, and transmit the data from the IMU. On LHRS we primarily utilized low-power MCUs developed by STMicroelectronics, which provide MCUs with varying clock speeds, onboard memory, and I/O peripherals. There are several STM MCU product lines, so make sure the data sheet you work with corresponds to the MCU you are targeting. Attached is a link for the dev. board you are likely using for this project:
https://www.st.com/en/evaluation-tools/nucleo-f042k6.html
We also need a way to communicate between the MCU and our laptop. For this purpose, we will be utilizing a UART to USB IC. Attached is a link to the peripheral you are likely to be using for this project:
https://ftdichip.com/products/ft230xs/
On LHRS, we design and develop custom Printed Circuit Boards (PCBs) which are mounted inside the car. These PCBs act as platforms for integrating the electrical components required for our design objectives. For this project, the PCB will provide an interface between the IMU and the MCU, and USB IC.
We will be using KiCad for our PCB prototyping/design, and I have provided a KiCad project folder in the starter project GitHub. The project already contains the appropriate symbols for the design. Using the data sheets, it is your job to make the correct electrical connections on the schematic and PCB between the different peripherals.
Once complete, it should look something like this:
connect based on schematic + uart
setup stm
generate hal
dev firmware
output to terminal
done with this part
Display
WIP
setup npm, setup next.js …
we are feeding the imu data to a terminal, now take this data on display it on a locally hosted website
Analysis
WIP
setup chrono
https://api.projectchrono.org/pychrono_installation.html
Use Python script to simulate the motion of a mechanical system
Helpful Links
Display/Analysis BootCamp: https://github.com/astrolancing/lhr-svt-da-bootcamp-2024
Reference Text: https://drive.google.com/file/d/1WcelXRpiBJWYGkKvwAVdFLVyTp6dLY5V/view