Skip to main content

How to program arduino for beginner's 2

How to program arduino for beginner's part 2

  1. Analog  signal read:
Today am going to write the program to read  analog signal serially using analog inputs .
first we have to connect the any one analog sensor or potentiometer to the one of analog input A0 to A5. In this program am going to connect the potentiometer to A0 pin.


program:
void setup()
{
serial.begin(9600);
}
void loop()
{
int sensorValue = analodRead(A0);
Serial.println(sensorValue);
delay(1);
 

Comments

Popular posts from this blog

CAN INTERVIEW QUESTIONS

Qualifiers and Modifier in C

RTOS Real time operating system interview questions

CAN INTERVIEW QUESTIONS 2

What is UDS protocol

Memory mapping in c

TOP IOT PLATFORMS