Learn Arduino Programming using 37 sensors for beginners : Practical way to learn Arduino for the year 2017 by Jennifer Williams

Learn Arduino Programming using 37 sensors for beginners : Practical way to learn Arduino for the year 2017 by Jennifer Williams

Author:Jennifer Williams [Williams , Jennifer]
Language: eng
Format: epub
Published: 2017-06-20T17:00:00+00:00


Note: change the logic of the program to the condition, when you press a button led should turn off and when you release the button led should go on.

Using a Potentiometer (analog sensor)

Arduino Program for Reading a Potentiometer value.

// Define the pin to which the angle sensor is connected.

const int potentiometer = A0;

void setup()

{

// Configure the serial communication line at 9600 baud (bits per second.)

Serial.begin(9600);

// Configure the angle sensor's pin for input.

pinMode(potentiometer, INPUT);

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.