Analog Read Serial

This example demonstrates how to read analog input from a potentiometer.

Jun 7, 2020

6941 views

1 respects

Components and supplies

1

Breadboard (generic)

1

Jumper wires (generic)

1

Rotary potentiometer (generic)

1

Arduino UNO

Apps and platforms

1

Arduino IDE

Project description

Code

Sketch

arduino

Downloadable files

Schematic Diagram

Schematic Diagram

Breadboad Diagram

Breadboad Diagram

Comments

Only logged in users can leave comments

nikiforos_

a year ago

It works perfectly!!!!

Anonymous user

4 years ago

got there in the end, initially the serial moniter was stuck on 1023,tried swapping the pot for a 330k resistor between 5v and A0,nothing checked pot with multimeter,working fine,wondered if i had the female pins in the correct plane into the pot,so turned them 90 degrees,it worked!