Subject: Introduction to the Arduino Class: EE 101 Date: February 27, 2017 Progr
ID: 2080247 • Letter: S
Question
Subject: Introduction to the Arduino
Class: EE 101
Date: February 27, 2017
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
sketch janola I Ardui no 1.0.3 Upload sketch jano la S int LedPin 13 void setup pinMode led Pin, OUTPUT void loop digitalWrite LedPin, LOW); Done uploading. Binary sketch size: 872 bytes Cof a 32,256 byte maximum 10 Arduino Uno on /dev/tty.usbmodeml411Explanation / Answer
the program for printing "hi world,your name repeatedly" is
int hiworld, yourname /*initiating the vaiable*/
void setup()
{
serial.begin(9600);
}
void loop()
{
serial.printlnx(hiworld, yourname);
}
for the second program
void setup()
{
}
void loop()
{
for( int i=0; i<7;i++)
println(x)
}