Monday, October 12, 2015

Arduino Programming basic Read Analog Voltage

Arduino Programming basic Read Analog Voltage 


Step 1:     Open the Arduino software

Step 2:     Go to file

Step 3:     Then move to examples

Step 4:     Then open Read Analog Voltage program

Step 5:     Then watch the video 

Step 6:     Make clear and brief detail pf this program from this video

Step 7:     Try to make implement with Potentiometer

Step 8:     By adjusting Potentiometer Analog voltage values can be varied

Step 9:     By using serial monitor output values can be read.



void setup() {
  // initialize serial communication at 9600 bits per second:
// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
  float voltage = sensorValue * (5.0 / 1023.0);
  // print out the value you read:

For details follow us and ask in  Contact Form. You will receive response in 24 hours


Post a Comment