Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You have to use Program Arduino to answer Programming the Ardunio: (Printouts ne

ID: 2080364 • Letter: Y

Question

You have to use Program Arduino to answer

Programming the Ardunio: (Printouts need have exact spacing)

For the following programs supply the following

-copy of code

-printout from the Serial Monitor

Classic Hello World Project                                                  

Write a program that as long as the program runs using Serial.println that continuously outputs the following :

Hi World, your name

Hi World, your name

Hi World, your name

Hi World, your name

Hi World, your name

Hi World, your name

Hi World, your name

Hi World, your name

… Introduction to For statements

Write a program using For that continuously outputs the following:

Start For loop

0 1   2 3 4 5 6

End for loop

Start For loop

0 1   2 3 4 5 6

End for loop

Start For loop

0 1   2 3 4 5 6

End for loop

Start For loop

0 1   2 3 4 5 6

End for loop

Explanation / Answer

1)

// SerialHelloworldproject
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 pin:
Serial.println("Hi World,your name");
delay(1000); // delay in between print for stability
}

2.

void setup() {
Serial.begin(9600); // open the serial port at 9600 bps:
}

void loop() {
for(;;){
Serial.println("Start For Loop");
Serial.println("0 1 2 3 4 5 6");
Serial.println("Stop For Loop");
delay(1000);
}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote