Arduino Programming basic Read Analog Voltage
Procedure:
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.
Video:
Program:
void setup() {// initialize serial communication at 9600 bits per second:Serial.begin(9600);}// 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:Serial.println(voltage);}
For details follow us and ask in Contact Form. You will receive response in 24 hours
0 comments:
Post a Comment