Page 1 of 1

VUSB as a osciloscope = interrupts / sample rate

Posted: Mon Oct 28, 2013 11:23 pm
by damgad
Hello all!

I'm trying to make something like osciloscope using avr and V-USB. (min sample rate ~ 3kHz) The idea is to use ADC and send each sample by USB to PC. Preferably as a HID device.

The problem appears when I try to enable other than VUSB interrupts. Even if I enable interrupts ( sei() ) in my ADC interrupt procedure ( SIGNAL(SIG_ADC) ).
The priority of ADC interrupt is lower (by default) than INT0 used by VUSB.

Is there any way to make it works?

I'm trying for few days, I've found and read a lot of examples but neither is useful for me.

Any hints?

Re: VUSB as a osciloscope = interrupts / sample rate

Posted: Tue Oct 29, 2013 7:46 pm
by matrixstorm
Hi damgad.

There are already lots of V-USB oscilloscopes available.
You also can get one source from me (up to 10kHz) for tinyUSBboard (http://matrixstorm.com/avr/tinyusbboard/).
What really is missing is a nice GUI for both: Linux and Windows.

BR matrixstorm

Re: VUSB as a osciloscope = interrupts / sample rate

Posted: Tue Oct 29, 2013 10:10 pm
by damgad
Yes, I've read about that project before here: viewtopic.php?f=8&t=8414 . Looks like a thing that I'm looking for ;) But... Is it available in your site? Sorry, I can't find it. :oops:

Only a
VUSB skeleton/example with corresponding linux, windows (delphi) and platform independent GTK libusb program
which doesn't even use ADC...

GUI is not a problem... I only need data, but constant sampling frequecy and no lose of samples is crucial.

Re: VUSB as a osciloscope = interrupts / sample rate

Posted: Fri Nov 01, 2013 3:14 am
by matrix storm
Okay I will upload the source somewhere and then post URL.

(After going to bed, here in my country it is 2 o"clock in the morning...)

I did not publish source until now, since I do not have a GUI until now.

You also can mail me and I can respond you the URL privatly.

BR matrixstorm