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


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 the USB cable

  1. Identify the USB cable included in your Rokit Smart Kit.
  • If you have a Micro USB Cable, proceed with the FTDI Installation the cable will look like the following images
    FTDI Driver: femaleFTDI_cable_1 USB Male cablemale_micro-768x828 Rear view of the USB to UART connectedFTDI_cable
  • If you have a Mini USB Cable, proceed with theCP210x Installation the cable will look like the following images
    USB FemaleCP210x_cable USB Male

    IMG_4076-768x642

FTDI Driver Installation

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

2) Make sure that dipswitch 1 is up and that the blue LED on the far right is blinking

 

3) Download and install the driver corresponding to the computer you are using:

  • Windows Installation: click here
  • Mac OSX Installation 10.9 and Above: click here
  • If you are unable to install the driver click here you can download the driver specific to your computer’s operating system

4) After the installation is complete verify that the drivers are installed by selecting the available serial port in Arduino.

  • click on tools –> port and make sure that the port matches the label in your device manager.

00_FTDI_2

Mac: click on the apple on the task bar(the apple icon), click about this mac, and system report

Under hardware, verify that it says the USB UART shows when the cable is connected

Windows: 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 Tools, Serial Port, from there select the port number that matches the one in your device manager.

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

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.