theoretical question concerning scheduler interval / ADC

n871's icon

Hello,

I have a rather theoretical question. The minimum scheduler interval is 1ms.
Does this mean that Max can't do more than a 1000 things per second?
Does this mean the maximum position-detection of objects like slider is 1000?

Reason for those who care :) => I'm about to buy a 16bit ADC (analog to digital converter)
for my arduino.The sample rate is however quite low (800) compared to a 12bit ADC (3300)
of the same brand. I guess this sample rate means how many values are detected
each second. If max can only handle 1000 than there's no need looking at higher
rates for an ADC. Probably we can't hear any difference anyway, especially when using small
time delays to allow a 'glide' between values (line object).

But it might be possible that I'm talking nonsense right now, so please help if you can.

thank you!

n871's icon

Thank you for your helpful reply Raja! I still have to read a lot about this topic to fully understand how everything works together. My arduinos will have to receive data coming from some potentiometers, convert it to the digital world (ADC) and send it to max through USB, using the maxuino object in Max.

brendan mccloskey's icon

Hi
I realise this question is a technical and not an artistic one, but from a purely practical standpoint the maximum bit depth and baud rate are also important, and I have yet to encounter a situation where 10 bits at 19200 baud into Max was impractical or unmanageable, particularly in the signal domain. While I am similarly in the dark about the event scheduler timing and such matters, with 16 FSRs running on my Mega2560, I can get 10-bits from each sensor, really quickly.

Playing Devil's Advocate, what are the performative benefits of 16 bits over 10 bits, especially when using pots?

Brendan

n871's icon

Well, I'm building an 'ondes martenot'-like ring controller. The original instrument had a wire that covered 6 octaves. The last model (8th model 1980s) was digital 13 bit (8192 values). I would like to cover 9 octaves, so 14 bit (16384 values) would be perfect. 1024 Values are not nearly enough. But since I'm using a very small delay to allow a very, very fast glide between values I don't really need that many values after all. Adafruit has two ADC's with an arduino script: one is 12bit (4096 values, not too many, but this might be ok, 3300 samples/second). The other one is 16 bit (65536 values, which is a crazy big amount) but only 800 samples/second. Not sure if the 16 bit ADC is fast enough, probably it is but then there's the 'noise' issue. Still not sure which one to buy..

brendan mccloskey's icon

Ok I see, you do have an artistic as well as a technical reason for the enhanced bit resolution (shoulda read your 1st post a bit more closely, my bad).

Could you post links to the Adafruit ADC's so I can have a look?

Thanks
Brendan

brendan mccloskey's icon

you mean the Arduino Zero?

n871's icon

The Arduino zero does have a 12bit ADC as does the due. My initial plan however was to use a shield in combination with an arduino uno.

guess I need a USB shield again as well.