Arduino Serial Monitor Tutorial | Potentiometer With Arduino

Опубликовано: 23 Май 2020
на канале: Thetips4you
3,755
33

#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)
}


Смотрите видео Arduino Serial Monitor Tutorial | Potentiometer With Arduino онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Thetips4you 23 Май 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,755 раз и оно понравилось 33 людям.