C++ Programming

The purpose of this section is to teach you how to program the robot to perform a series of tasks. This tutorial assumes that you have a basic understanding of C++, but we will try and explain the elements of the language that you will be using.

Throughout the tutorial, you will be presented with sections of code, and you may be tempted to copy those sections and paste them into your program. However, I highly recommend that you type them in instead.  Doing so will help you better understand the syntax of the C++ language, and finding and fixing the errors you make when you enter the code manually will be very valuable.

Before you begin, you will need to download our SimpleRobot Arduino library which can be found here. Just download the zip file and unzip the entire contents into the library  section of your Arduino install:


Note that this zip file also contains the MsTimer2  library which we will also need.  This library can also be found here.

So let’s get started!

Next: Hello World