29. ADC Serial plotter

Back To All Submissions
Previous Submission
Next Submission

Solving Approach:

How do you plan to solve it?

This is regular ADC code. By using Serial.println(), the values plotted on serial plotter.

Code

int pot = A0;

void setup(){
  pinMode(pot, INPUT);
  Serial.begin(115200);
}

void loop(){
  float val = analogRead(pot);
  Serial.println(val);
  delay(500);
} 

Output

Video

Add video of output (know more)

Photo of Output

 

 

 

 

 

 

 

 

Was this helpful?
Upvote
Downvote