Skip to main content

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 adcutils are 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adcutils-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for adcutils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf003fd0d69a72cbbf73a701c2839ec830b50be96784aec9806fdc1989b6a610
MD5 f3ccba6f5a97ce586d7f98ecbde2a512
BLAKE2b-256 4b64747b29439a9e3902ae26aba0cce6d0ab976f6e8f10ba06c05fa790f9e243

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page