I have an application that simulates physiological signals at approximately 10khz. This works great on the Teensy and I can stream data out through the USB device without a problem to a virtual scope on the host.
I’d like to add real DAC output because for teaching it’s important to demonstrate how real scopes work. My thought is to up the timer interrupt rate to 11025 and toss the simulated value into a buffer repeated four times and use the Audio Queue interface to push 128 of these samples (every 32 wakeups) as soon as the next buffer is ready. Does this approach seem like it should work?
If there are DAC options other than the I2S to audio shield for the 4.0/4.1 I’d of course consider them (SPI is surely fast enough for this app, I’d assume).
Thank you!
I’d like to add real DAC output because for teaching it’s important to demonstrate how real scopes work. My thought is to up the timer interrupt rate to 11025 and toss the simulated value into a buffer repeated four times and use the Audio Queue interface to push 128 of these samples (every 32 wakeups) as soon as the next buffer is ready. Does this approach seem like it should work?
If there are DAC options other than the I2S to audio shield for the 4.0/4.1 I’d of course consider them (SPI is surely fast enough for this app, I’d assume).
Thank you!