Utility package for ADC measurements and signal analysis
Project description
adcutils
adcutils is a Python utility library for working with ADC (Analog-to-Digital Converter) sample arrays and lists. It provides tools for calculating signal characteristics such as frequency from sampled data, helping you analyze and process raw ADC output more effectively.
⚠️ Disclaimer: The methods and calculations provided by
adcutilsare intended for exploratory or educational use. While care has been taken to ensure reasonable functionality, results may not be suitable for critical applications. Use with discretion and validate independently for your specific use case.
Installation
Install the latest release from pypi:
pip install adcutils
Quickstart
Check out the examples here or try the following python code in a main.py:
import numpy as np
from adcutils import frequency
# Create a 5 Hz sine wave sampled at 500 Hz
sample_rate = 500
t = np.linspace(0, 1, sample_rate, endpoint=False)
signal = np.sin(2 * np.pi * 5 * t)
# Estimate frequency using FFT
freq_est = frequency.get_freq(signal, sample_rate, mode="zero-crossings")
print(f"Estimated frequency: {freq_est:.2f} Hz")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adcutils-0.1.0-py3-none-any.whl.
File metadata
- Download URL: adcutils-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf003fd0d69a72cbbf73a701c2839ec830b50be96784aec9806fdc1989b6a610
|
|
| MD5 |
f3ccba6f5a97ce586d7f98ecbde2a512
|
|
| BLAKE2b-256 |
4b64747b29439a9e3902ae26aba0cce6d0ab976f6e8f10ba06c05fa790f9e243
|