Skip to content

Update ADC range ADC guide #1181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
author: 'Karl Söderby'
---

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.
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.

## Goals

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

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


```arduino
void setup(){
analogReadResolution(14); //change to 14-bit resolution
}

void loop(){
int reading = analogRead(A3); // returns a value between 0-65355
int reading = analogRead(A3); // returns a value between 0-16383
}
```

Expand Down