#IoT, #Arduino, #ArduinoProjects Hello Friends, Welcome back to my channel.
Today I am going to do a simple tutorial with Arduino.We are going to read the analog output from a potentiometer and display the value in serial monitor.
I will be using tinkercad simulation software for this. If you haven’t seen my previous videos on tinkercad arduino projects please check my channel. Let's get started.
Do not forget to Subscribe to my channel.Like the video , share and comment.
Code:
int potentiometer = 0;
void setup()
{
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop()
{
//reading the potentiometer value
potentiometer = analogRead(A0);
//print the value to serial monitor
Serial.println(potentiometer);
delay(10); // Wait for 10 millisecond(s)
}
Watch video Arduino Serial Monitor Tutorial | Potentiometer With Arduino online without registration, duration hours minute second in high quality. This video was added by user Thetips4you 23 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,755 once and liked it 33 people.