Skip to content

Commit 02885b2

Browse files
authored
Merge pull request #1181 from arduino/jacobhylen/minima-adc-range
Update ADC range ADC guide
2 parents 7e6296c + 3b77cbd commit 02885b2

File tree

1 file changed

+3
-2
lines changed
  • content/hardware/02.hero/boards/uno-r4-minima/tutorials/adc-resolution

1 file changed

+3
-2
lines changed

content/hardware/02.hero/boards/uno-r4-minima/tutorials/adc-resolution/adc-resolution.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags:
77
author: 'Karl Söderby'
88
---
99

10-
In this tutorial you will learn how to change the analog-to-digital converter (ADC) on an **Arduino UNO R4 Minima** board. By default, the resolution is set to 10-bit, which can be updated to both 12-bit (0-4096) and 14-bit (0-65355) resolutions for improved accuracy on analog readings.
10+
In this tutorial you will learn how to change the analog-to-digital converter (ADC) on an **Arduino UNO R4 Minima** board. By default, the resolution is set to 10-bit, which can be updated to both 12-bit (0-4096) and 14-bit (0-16383) resolutions for improved accuracy on analog readings.
1111

1212
## Goals
1313

@@ -29,13 +29,14 @@ To update the resolution, you will only need to use the [analogReadResolution()]
2929

3030
To use it, simply include it in your `setup()`, and use `analogRead()` to retrieve a value from an analog pin.
3131

32+
3233
```arduino
3334
void setup(){
3435
analogReadResolution(14); //change to 14-bit resolution
3536
}
3637
3738
void loop(){
38-
int reading = analogRead(A3); // returns a value between 0-65355
39+
int reading = analogRead(A3); // returns a value between 0-16383
3940
}
4041
```
4142

0 commit comments

Comments
 (0)