Professional Documents
Culture Documents
Communication Skill Helpfully
Communication Skill Helpfully
Communication Skill Helpfully
ASSIGNMENT TASKS:
Select a potentio meter and connect it with an Arduino UNO using analog pin. The Arduino
should send the values of the potentio meter to the serial port of the system after every 3
seconds. Paste the complete code of the Arduino IDE and the snapshot of the output.
Page 1 of 3
CODE:
int analogpin = A0;
int val;
void setup(){
Serial.begian(9600);
pinMode(9,OUTPUT);
}
void loop(){
val = analogRead(analogpin);
val = map(val,0,1023,0,255);
Serial.println(val);
analog.Write(9,val);
}
SNAPSHOT:
Page 2 of 3
LABELLED DIAGRAM:
Page 3 of 3