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

ASSIGNMENT 3 A

NAME: Bhave Akshay Shailesh

BRANCH: ELN

DIVISION: C

PRN NO:21410071

TITLE OF EXPERIMENT: use of special pins on arduino Uno.

OVERVIEW:

1. Set up serial command serial.begin(boud rate), so serial communication starts.

2. Read the data on Rx pin

SCHEMATIC DIAGRAM:

ARDUINO IDE CODE:

1.

void setup(){

Serial.begin(9600);

void loop(){
Serial.println(“Hello world”);

delay(1000);

2.

int value=0;

int led=13;

void setup() {

Serial.begin(9600);

pinMode(led, OUTPUT);

void loop() {

if(Serial.available()>0)

value=Serial.read();

delay(5);

if(value =='1'){

digitalWrite(led, HIGH);

Serial.println("LED is on");

if(value=='0'){

digitalWrite(led, LOW);

Serial.println("LED is off");

}
}

NEW COMMENTS USED:

1. Serial.begin():

To set up serial communication.

2. Serialprintln().

3. Serial.available():

To check some data .

RESULT:

We checked the analog voltage using arduino board.

You might also like