Schedule‎ > ‎

Lab 01: C++ and Arduino

Academic Honesty

Read the Scholastic Honesty Policy and Assignment Integrity policies of the syllabus. Here are some clarifications for this particular assignment:

  • Do not communicate with anyone nor look up any information (like with Google) during the quiz.
  • You must complete the Hour of Code by yourself. If you get stuck, email the instructor.
  • You may get help from others installing the compiler, as long as you actually do all the steps yourself.

^ top

Step 1   Reviewing the Lesson 1b Concepts

Complete the following steps to complete the first quiz:

  1. Review the lecture from Lesson 1b Slides
  2. Review the following information about how to convert between binary and decimal numbers as needed:
  3. Practice your skills with binary numbers with one or more of the following games as needed:
  4. Complete the Hwk 1 Quiz in Canvas to verify your understanding. Make sure to study and practice before taking the quiz!

    The purpose of this quiz is to help you decide if you have a good understanding of the concepts from lesson 1 and this assignment. Since this is the first quiz, you may take it multiple times.

Step 2   Hour of Code

The purpose of this project is to give you an intuitive grasp of important programming concepts. While completing this assignment, please pay particular attention to how the computer executes the instructions you give it in order!

  1. Start the hour of code here and select Minecraft Adventurer.

    Play the videos if you need help. If you get stuck, please let the instructor know so he can help.

  2. When finished with all the steps, click the "I've finished my Hour of Code" link.

    Hour of Code Link

  3. Add your full name (first and last) to personalize the certificate and then press the Submit button.

    Hour of Code Certificate

  4. Click on the certificate and it will take you to a new webpage with a larger picture of your certificate. Here is a link to an example certificate:

  5. Highlight the web address (URL) for your certificate in the browser bar and copy it (Ctrl + c).

    Hour of Code certificate address

  6. Paste (Ctrl + v) the entire URL into the Canvas comment for this Lab to receive credit. Do NOT submit the certificate.

Step 3:  Coding a Name Banner

For this project write a C++ program that displays your name in banner-sized letters to the serial monitor. For example, the output of the program for the name Strelitz would be:

S        T    R   R  E      L        I      T      Z
 SSS     T    RRRR   EEE    L        I      T     Z   
    S    T    R  R   E      L        I      T    Z    

Project Specifications
  1. Write your name with cout statements to the terminal window in banner-sized letters like the above using a 5 character width by 5 character length (5x5) letters.
  2. The name of the source code file must be banner.ino
  3. Each banner letter must be made from the uppercase letters of the letter being created.
    For example, a banner "S" would be made of uppercase S's as shown above.
  4. Print at least 7 banner-sized letters and no more than 18.
    The example above has 8 banner-sized letters.
  5. No input is needed or allowed.
  6. Submit this project with the rest of the assignment in Canvas.  Note that each time you submit to an Exercise in canvas you have to submit ALL the files at the same time. 


Each Step above is worth 5 points for a total of 15 points.


#include <ArduinoSTL.h>
using namespace std;
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  cout << " SSS  H   H    AAA   RRR     O    N   N" << endl;
  cout << "S     H   H   A   A  R  R   O O   NN  N" << endl;
  cout << " SSS  HHHHH   AAAAA  RRR   O   O  N N N" << endl;
  cout << "    S H   H   A   A  R  R   O O   N  NN" << endl;
  cout << "SSSS  H   H   A   A  R   R   O    N   N" << endl;
  cout << endl << endl;

// the loop function runs over and over again forever
void loop() {