This project simulates a pedometer system using two methods:
- Analog circuit simulation with LTSpice
- Signal processing and analysis using MATLAB
The LTSpice simulation includes the following components:
- Input Signal: Represents the accelerometer data.
- Pre-Amplifier: Amplifies the input signal.
- Low Pass Filter: Removes high-frequency noise.
- High Pass Filter: Removes low-frequency noise.
- Comparator: Converts the filtered signal into a digital signal.
- Binary Counter: Counts the number of steps based on the digital signal.
The MATLAB code processes accelerometer data to simulate a pedometer. The key steps include:
- Loading Data: Loads the recorded accelerometer data.
- Generating Noisy Signals: Adds white noise to the X, Y, and Z axis data.
- Filtering Signals: Applies a bandpass filter to the noisy signals.
- Generating Accelerometer Signal: Combines the X, Y, and Z axis signals to generate a single accelerometer signal.
- Generating Pulse Wave: Creates a pulse signal based on a predefined threshold.
- Counting Steps: Counts the number of steps detected from the pulse signal.
- Noisy Signal Plots: Visual representation of the noisy signals for X, Y, and Z axes.
- Filtered Signal Plots: Visual representation of the filtered signals for X, Y, and Z axes.
- Combined Signal Plot: Shows the combined accelerometer signal.
- Fourier Transform Plot: Provides frequency domain analysis of the combined signal.
- Pulse Signal Plot: Displays the generated pulse signal indicating detected steps.
- Steps Count: Shows the total number of steps detected.
- MATLAB
- LTSpice (for analog simulation)