Step 1: Download and Install the Arduino IDE

  1. Download and Install the Arduino Integrated Development Environment or (IDE)
  2. Download and install the version of Arduino corresponding to the machine you are using.
  3. Run the Arduino IDE by double clicking on the IDE

Windows

Mac


Step 2: Download and Install the Rokit Arduino Add-on Files

  1. In order to use the Smart Inventor Board with the Arduino IDE, you need to install the Rokit Add-on files. Click on the provided link below to download them.
    • *NEW* Updated July 22, 2016 here
  2. Windows: Unzip the compressed file named “rokitarduinov1-0-9-1”, run the Arduino IDE, and click the “File” tab then go to “Preferences”
    MAC: Unzip the compressed file named “rokitarduinov1-0-9-1”, run the Arduino IDE, and click the application name tab “Arduino”, then go to “Preferences” OR press “command” AND  “,
  3. Click the ‘Browse’ button to locate and select the folder where you unzipped the file “rokitarduinov1-0-9-1”.
  4. Exit out of the Arduino IDE, then reopen it.
  5. Click on the “Tools” tab, and select the board you are using. The board has a green sticker indicating which version of the board you possess.
    • ex. Rokit-SmartInventor-mega32_V1
    • ex. Rokit-SmartInventor-mega32_V2

Step 3: Download and Install the Appropriate Drivers for your USB cable

Locate the Micro USB to UART dongle, UART to UART Cable, & the Micro USB cable

For Reference:

UART Adapter
This is a top view of the Micro USB to UART dongle
Rear View of UART Cable
This is a rear view of the Micro USB to UART dongle
This is the UART to UART Cable included in your kit
This is the Micro USB Cable

Assemble the USB cable so that the cable and all the components are connected.

From Left to Right: (UART Cable, UART to USB dongle, Micro USB cable)

Once you have assembled the cable please proceed with the CP210x Installation

CP210x Installation

1) Connect the enclosed USB cable to the PC and the Inventor Board.

00_CP210_1

 

  • As shown above, connecting the USB cable to the controller makes the blue light flash

2) Click on the link below to download the USB driver.

  1. Link to the CP210x driver: http://www.silabs.com/products/interface/Pages/interface-software.aspx#cp210x
  2. The file should be located under the “USB Software”
    • click on the CP210X VCP Drivers
  3. Scroll down to the section that matches your appropriate operating system
    • Click on “Download VCP (3.66 MB)”
  4. Unzip the downloaded file, and open/run the appropriate VCP Installation Driver corresponding to your CPU Architecture either the 64-bit or the 86-bit.
    • (Note: when installing the driver please make sure that your computer is connected to the Controller).

3) After installation:open the “Device Manager” and click on the Ports (COM& LPT) tab. Then note the COM port number.

  • (ex. Silicon Labs CP210x USB to UART Bridge(COM3))
  • The COM port number should match the COM port listed in the Arduino IDE’s Port tab.
    • This is found by going to the tools tab and highlighting ports. Verify that the port number listed matches the one in your device manager.
  • Please note: Pre 2010 Macbooks must mount the silicon labs installer.
    • do this by right clicking on the downloaded cp210x file 
    • select show package contents 
    • expand the contents folder 
    • expand the mac os folder
    • open the install_CP210x_SDK with the terminal application. 

Once you have installed the appropriate usb driver, continue to Step 4


Step 4: Arduino Sketch Test

  1. Use the USB cable to connect the Smart InventorBoard to your computer.
  2. Then place “Dipswitch 1” in the “ON” position and press the black button, this should prompt the blue light to flash.
  3. Run the Arduino IDE (sketch).
  4. Go to the Tools tab, Board menu, and make sure that the board name matches the controller’s name.
    1. If you don’t find the SmartInventor, refer to the “Rokit for Arduino installation” or “Step2: Installing Add-ons for Rokit Arduino
  5. Verify that the upload worked correctly by clicking on the File tab -> Examples -> Communication -> ASCII table.  This should prompt a sample ASCII table code.
    1. The following example ASCII code table is a program that outputs the serial monitor window.
  6. Click the OK button, to compile the program. The code should compile normally, unless there is an error in the code.
  7. Click the UPLOAD button to upload the program to the controller.
  8. As soon as the upload is complete, click the SERIAL MONITOR button to bring up the Serial Monitor window.
  9. Place  “Dipswitch 1” in the “OFF” position, and the program will run. If this is done correctly the ASCII table’s code will display various characters on the serial monitor.