Is there a special library command or setting for it ?
In the description for the teensy 3.6 he says:
25 Analog Inputs to 2 ADCs with 13 bits resolution
All the 25 analog inputs they have 13bit resolution or two of them?
If so what are they?
In the description for the teensy 3.6 he says:
25 Analog Inputs to 2 ADCs with 13 bits resolution
All the 25 analog inputs they have 13bit resolution or two of them?
If so what are they?
Yes, use analogReadResolution(13);
It defaults to 10 bits for Arduino compatibility.
Hmm, may have to request changes to Pedvide's library to do this, if you set it to 13Bit it goes to 12Bit. His library only allows 16, 12, 10, 8. And it rounds down to the nearest value.
The number of useful (as in not just random) bits can be at least 15. With differential 16-bit mode and 32x hardware averaging, measuring a battery voltage, I get a standard deviation of 1.35. (And that's with using USB power (data disabled).)We publish "13 bits" in the description, even though the hardware actually reads 16, because even the very best case scenario is at most 13 good bits from the 16 the hardware gives.
There is a 13-bit differential mode.The hardware doesn't actually have any 13 bit mode.
New here and I am having some problems when trying to set the read resolution to 12-bits using the code:
analogReadResolution(12);
The Arduino IDE reports an error of:
expected constructor, destructor, or type conversion before '(' token
Do I need to have a #include or #define or other code besides the analogReadResolution(12); statement?
I should add that I get this problem no matter what the resolution I set it to is...
Brian
void setup() {
Serial.begin(9600);
analogReadResolution(12);
}
void loop() {
}
You need to put analogReadResolution(16) inside setup().