12 Bit ADC in Teensy LC

Status
Not open for further replies.

ybr

Member
Hi Guys,

I'm currently working on a music instrument based on the Teensy LC. In the Teensy overview I see that it has 13 Analog Ins with a resolution of 12 bits. When reading sensor data however, I'm only able to get values between 0 - 1023, or 10 Bit. How could I use the full 12 bit ADC capabilities of the Teensy? FYI, I'm using the Arduino IDE to program the Teensy.

Kind regards,

YBR
 
Analog read defaults to 10 bit resolution. Call analogReadResolution(bits) to change it. Also, it's the "effective" resolution that would be in the 12-13 bit range, due to noise. The analog to digital converter is 16 bit.

Brian
 
Yup, use analogReadResolution(12). You might also try analogReadAveraging(8) or even analogReadAveraging(32).

Also consider your analog circuitry. Low signal impedance is needed to actually achieve low enough noise to really use 12 bits.
 
Status
Not open for further replies.
Back
Top