Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analog input #49

Open
Harvie opened this issue Jun 30, 2019 · 2 comments
Open

Analog input #49

Harvie opened this issue Jun 30, 2019 · 2 comments

Comments

@Harvie
Copy link

Harvie commented Jun 30, 2019

Atmega328 can sample analog data using ADC at 10kHz, i think we can provide analog sampling at low samplerates. Something between 1 to 10kHz seems doable (depending on number of analog pins used)... High sample rates would be still available in logic-only mode.

Not sure if SUMP protocol allows this, but sigrok/pulseview does, so we might add some custom SUMP extension (without breaking compatibility with legacy SUMP software).

@gillham
Copy link
Owner

gillham commented Dec 20, 2021

Are you talking about sampling similar to the current logic analyzer where we sample 1024 bytes of data and stop? Or are you talking about continuously reading samples and reporting via USB serial? Also how many pins would be sampled? The issue is each sample takes a byte of data so you could sample 1 pin 1024 times, or 6 pins ~170 times.
There are a few modes to support. 1 channel x 1024 samples, N x 1024/N samples, continuous streaming samples (115200/10 = 1440 bytes/s max) etc.

With continuous sampling you could do roughly 1KHz I guess?

Anyway, I'm not sure it would be a good feature set for the logic analyzer code, but could be a separate firmware image.

What would be a typical use case?

@Harvie
Copy link
Author

Harvie commented Dec 22, 2021

Use case would be to have simple oscilloscope-ish device.
I really like using logic analyzers with sigrok/pulseview software. and pulseview already has some basic support for analog samples. Eg.:

Digital:
image

Analog:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants