unicornpower
Well-known member
I'm trying to make use of both ADCs on the Teensy 3.6 using the ADC.h library. One will be dedicated to the audio library, and the other will be used to read the value of potentiometers.
As I mentioned in another post, it does not seem to be possible to set the voltage reference of ADC_1 if ADC_0 is in use by the audio library (it just get's overriden, even if I reset it before each analog read). If someone knows how to do this, please tell me!
My potentiometers are currently connected to the 3.3V rail, so with the 1.2V voltage reference set by the audio library, I only get a reading from half a turn of the pot.
My question is, assuming the vref cannot be set independently for each ADC, is there a to get access to the 1.2V vref on the board, so I can connect my pots to it? AREF is at 3.3V regardless it seems. I see on the Teensy schematic there's a VREF_OUT, but I can't see it broken out on the board anywhere.
Obviously I could create my own 1.2V rail, which is what I'll probably end up doing, but I'd like to reduce components as much as possible.
Thanks,
Scott
As I mentioned in another post, it does not seem to be possible to set the voltage reference of ADC_1 if ADC_0 is in use by the audio library (it just get's overriden, even if I reset it before each analog read). If someone knows how to do this, please tell me!
My potentiometers are currently connected to the 3.3V rail, so with the 1.2V voltage reference set by the audio library, I only get a reading from half a turn of the pot.
My question is, assuming the vref cannot be set independently for each ADC, is there a to get access to the 1.2V vref on the board, so I can connect my pots to it? AREF is at 3.3V regardless it seems. I see on the Teensy schematic there's a VREF_OUT, but I can't see it broken out on the board anywhere.
Obviously I could create my own 1.2V rail, which is what I'll probably end up doing, but I'd like to reduce components as much as possible.
Thanks,
Scott