Skip to content
Parallax Learn (Stage)

Parallax Learn (Stage)

This is the staging site. Please see https://learn.parallax.com for the official site.

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence Tutorial Series
          • Cybersecurity: Radio Data tutorialCybersecurity Tutorial Series
          • cyber:bot Tutorial Series
          • Boe-Bot Tutorial SeriesBoe-Bot Tutorial Series
          • Arduino Shield-Bot Tutorial Series
          • ActivityBot with C TutorialsActivityBot with C Tutorials
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot with BlocklyProp Tutorial Series
          • Scribbler 3 Tutorial SeriesScribbler 3 Tutorial Series
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education Tutorial Series
          • Propeller C-Language BasicsPropeller C Basics and Projects
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit C Tutorial Series
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit BlocklyProp Tutorials
          • Badge WX Tutorial SeriesBadge WX Tutorial Series
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics and Projects
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Robotics with the Board of Education Shield for Arduino

Robotics with the Board of Education Shield for Arduino

Chapter 1 Challenges

Questions

  1. What device will be the brain of your BOE Shield-Bot?
  2. When the Arduino sends a character to your PC/laptop, what type of numbers are used to send the message through the programming cable?
  3. What is the difference between the setup and loop functions?
  4. What’s the difference between a variable name and a variable type?
  5. What’s the difference between global and local variables?
  6. What are the arithmetic operators?  What does each one do?
  7. What variable type will the Arduino editor apply to 21.5 if it appears in your code?  Why?
  8. What three elements are included between parentheses in a for loop?
  9. What’s the difference between a block comment and a line comment?

Exercises

  1. Write a piece of code that displays “the value of i = ” followed by the value of stored in the variable i in the Serial Monitor.  Both should display on the same line, and then move the cursor to the beginning of the next line for displaying more messages.
  2. Declare a long variable named bigVal, and initialize it to 80 million.
  3. Write an if…else statement that takes the modulus of a variable divided by 2 and compares it to zero.  If the result is zero, display “The variable is even.”  If not, display “The variable is odd.”
  4. Write a for loop that starts counting at 21 and stops at 39, and counts in steps of 3.
  5. Write a piece of code that displays the character a variable stores along with its ASCII value.
  6. Write a for loop, but instead of counting from one value to another, make it count from ’A’ to ’Z’ and display the letters in the alphabet.

Projects

  1. Write a sketch to display the printable ASCII characters.  The first printable character is the space character, which is one press/release of your keyboard’s space bar between apostrophes, like this: ‘ ’.  The last printable character is the tilde character ‘~’.  Alternately, you could use 32 for the loop’s start value and 126 for the end value.
  2. Write a sketch that tells you if a variable is odd or even.  Hint: when a number is even, the remainder of the number divided by 2 is 0.  Hint: variable % 2 == 0.

Printer-friendly version
Chapter 1 Summary
Prev
Chapter 1 Solutions
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn (Stage) • Built with GeneratePress