Communication Skill Helpfully

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

FACULTY OF ENGINEERING, SCIENCES & TECHNOLOGY

Subject Embedded Systems Design (3+1) Program BE (CSE)

Dated: 10-01-2022 Deadline:


Student Name: Talha Shahid
Student ID: OBE: CLO-2, PLO-1 and C2
11009
Weight (Max.
Assessment Activity Assignment -3 3
Marks)
Semester Fall 2021 Section Code
IMPORTANT INSTRUCTIONS:

Read the Instructions carefully.


 Please submit only a single word file.
 Write the code of the tasks as text.
 Write code with proper syntax and indentation.
 Do NOT submit .zip or .rar file.
 Focus on the task only solution must be simple and to the point.

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.

 Write the code of the task using Arduino IDE.


 Paste the snapshot of the output of code.
 Draw a labelled diagram of the circuit.

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

You might also like