Skip to content
Parallax Learn

Parallax Learn

  • 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
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • 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
          • MakeCode
          • 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

Activity 2: Write a Simple “Hello!” Sketch

To get started using Arduino Web Editor instead of the Arduino IDE, click here.
To get started using Codebender instead of the Arduino IDE, click here.

Here is a screen capture of the Arduino Development Environment edit pane on the left, containing a simple sketch that sends a “Hello!” message to the Serial Monitor window on the right.

  • Open your Arduino software and carefully type in the code:
void setup()

{
  Serial.begin(9600);
  Serial.print("Hello!");
}

void loop()
{
  //Add code that repeats automatically here.
}
  • Be sure you have capitalized “Serial” both times, or the sketch won’t work.
  • Also, notice in the figure that the sketch uses parentheses() and curly braces {}. Be sure to use the right ones in the right places!

  • Click the Verify button to make sure your code doesn’t have any typing errors.
  • Look for the “Binary sketch size” text in the message pane.
  • If it’s there, your code compiled and is ready to upload to the Arduino.
  • If there’s a list of errors instead, it’s trying to tell you it can’t compile your code. So, find the typing mistake and fix it!
  • Click the Upload button. The status line under your code will display “Compiling sketch…,”  “Uploading…,” and then “Done uploading.”
  • After the sketch is done uploading, click the Serial Monitor button.
  • If the Hello message doesn’t display as soon as the Serial Monitor window opens, check for the “9600 baud” setting in the lower right corner of the monitor.
  • Use File → Save to save your sketch.  Give it the name HelloMessage.

Now you are ready to see How the Hello Sketch Code Works.


Printer-friendly version
Activity 1: Download and Install the Software
Prev
Codebender Hello Sketch
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress