Tutorial 1: Loading the First Sketch
English Chinese (Simplified) Czech French German Hindi Italian Japanese Korean Russian Spanish

In this tutorial we will show you how to load a sketch onto your OSEPP UNO R3 Plus board.  A sketch is the name that Arduino uses to refer to the code that runs on an Arduino board.  We will start with a simple sketch that toggles the LED on your board.

1 – Stuffs that you will need:

You will need a UNO R3 Plus board, a mini USB to standard USB cable and Windows PC.  The UNO R3 Plus board will be powered by your PC through the USB cable, so don’t need a power adapter.

                        

UNO R3 Plus                   Mini USB to Standard USB          Windows PC

 

II – Download the Arduino Environment:

a)     Download the latest Arduino environment from here: http://arduino.cc/en/Main/Software.

b)     Once the download is completed, place the arduino-x.y.z-windows.zip file to your desired working folder path then unzip it.

 

III – Connect the Board to Your PC

a)     Attached the USB cable to the mini USB connector on the UNO R3 Plus board.

b)     Attached the other end of the USB cable to your Windows PC.

c)     Windows will begin its driver installation process, but the process will fail.  This is normal because Windows doesn’t natively carry the required FTDI Virtual COM port driver.

 

IV – Install the FTDI Virtual COM Port Driver:

a)     Go to Control Panel then to Device Manager.

b)     Under Port (COM & LPT), you should see the “FT232R USB UART” device with an “!” mark.

c)     Right click on it and select “Update Driver Software”.

d)     Choose the “Browse my computer for Driver software” option.

e)      Navigate to the “drivers/FTDI USB Drivers” folder inside the arduino-x.y.z-windows folder you unzipped in step II.

f)      Let Windows finish the installation.

 

V – Start the Arduino Environment and Upload your Sketch

a)     Go   back to the arduino-x.y.z folder and double click the arduino.exe file.  The below Windows will appear.

b)     Load the blinking LED example sketch by clicking “File → Examples → Basics → Blink”, and another Windows with the Blink sketch will appear.

c) Select your board by clicking “Tools → Board → Arduino UNO”.  (IMPORTANT: If your sketch does not load properly using this selection, please select Arduino Duemilanove or Nano w/ ATmega328. It was brought to our attention that some of our UNO R3 boards may have been loaded with this bootloader instead (we are embarrassed). Functionally, it is the same so no real concerns. Please accept our apologies!! If you have any concerns, please email This email address is being protected from spambots. You need JavaScript enabled to view it. and you will be looked after!)

d)     Select the virtual serial communication port by clicking “Tools → Serial Port → COM X”.

e)     Upload the sketch to the UNO R3 Plus board by clicking the Upload button.

f)     When the upload is completed, you will see the “Done Uploading” message.

 

VI – Blinking LED Sketch

At this point, the LED labeled L on your board should be blinking ON and OFF.  The LED should light ON for 1 second and OFF for 1 second.

You can experiment with the sketch and see how it alters the behavior of the LED.  For instance, try changing the delay(1000) to delay (2000) or changing delay(1000) to delay(500).

 

Useful Note: A typical Arduino sketch consists of two main procedures, a “setup” functions and a “loop” procedure.   The “setup” function gets executed one time only every time the board is power cycle or reset, and it is mainly use for defining the default or initial behavior.  The “loop” function gets executed continuously.

Click to Download All Tutorial Codes: ARD101_Tutorial_Code

 

Things we have covered in this tutorial:

  • How to setup the Arduino environment
  • How to load an Arduino sketch
  • How to install the FTDI virtual COM port driver

 

Tutorial 2: Controlling Digital Outputs

Tutorial 3: Using Digital Input

Tutorial 4: An LED Game

Tutorial 5: Building Voltage Meter

Tutorial 6: Using Buzzer to Play a Melody

Tutorial 7: Counting Down with a 7 Segment LED

Tutorial 8: Powering the UNO R3 PLUS Using Batteries

 

Download  ARD-101_Tutorial_Codes