https://github.com/zazi2002/pedometer-project
Sensory & Measurment project, simulating pedometer by designing analog circuit in LTSpice and processing its signal in MATLAB.
https://github.com/zazi2002/pedometer-project
analog-circuit ltspice matlab pedometer sensor-measurement
Last synced: 3 months ago
JSON representation
Sensory & Measurment project, simulating pedometer by designing analog circuit in LTSpice and processing its signal in MATLAB.
- Host: GitHub
- URL: https://github.com/zazi2002/pedometer-project
- Owner: ZaZi2002
- Created: 2024-09-07T10:40:17.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T17:36:39.000Z (9 months ago)
- Last Synced: 2024-12-28T10:44:35.527Z (5 months ago)
- Topics: analog-circuit, ltspice, matlab, pedometer, sensor-measurement
- Language: MATLAB
- Homepage:
- Size: 4.63 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pedometer Project
## Overview
This project simulates a pedometer system using two methods:
1. Analog circuit simulation with LTSpice
2. Signal processing and analysis using MATLAB## LTSpice Simulation

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.## MATLAB Code
The MATLAB code processes accelerometer data to simulate a pedometer. The key steps include:
1. **Loading Data**: Loads the recorded accelerometer data.
2. **Generating Noisy Signals**: Adds white noise to the X, Y, and Z axis data.
3. **Filtering Signals**: Applies a bandpass filter to the noisy signals.
4. **Generating Accelerometer Signal**: Combines the X, Y, and Z axis signals to generate a single accelerometer signal.
5. **Generating Pulse Wave**: Creates a pulse signal based on a predefined threshold.
6. **Counting Steps**: Counts the number of steps detected from the pulse signal.## Results
- **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.## Requirements
- MATLAB
- LTSpice (for analog simulation)