Tutorials/Getting Started
(→Getting Started with Arduino) |
(→Getting Started with Arduino) |
||
| Line 226: | Line 226: | ||
|Once your sample program has been opened, you can download it to your Arduino controller by going to the '''Robot''' menu and selecting '''Compile and Download'''.<br /><br /> | |Once your sample program has been opened, you can download it to your Arduino controller by going to the '''Robot''' menu and selecting '''Compile and Download'''.<br /><br /> | ||
[[File:gettingstarted-arduino-6.png]]<br /> | [[File:gettingstarted-arduino-6.png]]<br /> | ||
| − | |||
| − | |||
|} | |} | ||
<br /> | <br /> | ||
| Line 234: | Line 232: | ||
{|width="740px" | {|width="740px" | ||
|- | |- | ||
| − | |During the BETA period for ROBOTC for Arduino, take a look at our support documenting including functions reference, known issues and other support documents available on the ROBOTC.net Wiki | + | |During the BETA period for ROBOTC for Arduino, take a look at our support documenting including functions reference, known issues and other support documents available on the [[Main_Page|ROBOTC.net Wiki]] |
| − | Join the ROBOTC for Arduino discussion on the ROBOTC.net Arduino Forums | + | Join the ROBOTC for Arduino discussion on the [http://www.robotc.net/forums/viewforum.php?f=62 ROBOTC.net Arduino Forums] |
| − | Additional help and support can be found at www.robotc.net or by e-mailing support@robotc.net | + | Additional help and support can be found at [http://www.robotc.net] or by e-mailing support@robotc.net |
|} | |} | ||
<br /> | <br /> | ||
Revision as of 13:00, 11 May 2012
Contents |
System Requirements
| ROBOTC requires basic system specifications to run properly. The development environment is not processor intensive, but the interactive debugger may slow down computer performance on older machines.
|
Uninstalling and Installing ROBOTC
Uninstalling
Installing
Activate Online
Activate by Web
| Follow these steps to activate on a computer without internet access:
Note: You will need to use a separate computer with Internet access in step 4 at this activation process. You must repeat this process on each computer without internet access. 1. Open ROBOTC and select "Activate ROBOTC" from the menu.
|
Select Platform Type
Getting Started with Arduino
Selcting your Arduino Board
| Before you being programming your Arduino in ROBOTC, you'll need to let ROBOTC know which Arduino board you are using. To do this, go to the Robot menu and select Platform Type &rarr Arduino &rarr Standard Arduino and choose your board from one of the choices. Note: If you are using an Arduino 2560, make sure you take a look at the follow page on how to upgrade your bootloader. |
Select your Serial Port
| Once your Arduino's Type is selected, you'll need to select which serial port the Arduino is connected to on your computer. Go to the View menu and choose Select Communication Port. From here, you'll pick your Arduino board from the dropdown menu. |
Downloading Firmware
| Now that your board and communication port are both select, it's time to download the ROBOTC Firmware! Go to the Robot menu and select Download Firmware and then choose Standard File. Your firmware will begin downloading instantly! Note: Downloading ROBOTC's Firmware will not remove the ability to use the Arduino "Wiring" Open Source language. |
Opening Sample Programs
Running a Program
| Once your sample program has been opened, you can download it to your Arduino controller by going to the Robot menu and selecting Compile and Download. |
More Resources
| During the BETA period for ROBOTC for Arduino, take a look at our support documenting including functions reference, known issues and other support documents available on the ROBOTC.net Wiki
Join the ROBOTC for Arduino discussion on the ROBOTC.net Arduino Forums
Additional help and support can be found at [1] or by e-mailing support@robotc.net |
Getting Started with NXT and TETRIX
Download Firmware
| ROBOTC requires a different firmware from the other programming languages available for the NXT. This firmware is what unlocks most of the advanced functionality found in ROBOTC.
You can update the firmware on the NXT directly from the ROBOTC application. To update the firmware, follow these instructions: Prerequisite: Make sure that your NXT is connected to your computer via USB and is powered on with a fully charged battery. 1. Open the "Robot" menu and select "Download Firmware." 2. Since NXT is set as the Platform Type, the "NXT Brick Download" screen will appear. From this screen you can rename your NXT and update the firmware. Make sure that your NXT appears under the "NXT Bricks Currently Connected via USB" list before proceeding. If the NXT does not appear, make sure it is connected via USB, powered on, and that the NXT USB driver is installed. Then click the "Refresh Lists" button to see if your brick can be found. 3. To start downloading firmware, click the "F/W Download Button."
Note: Always select the highest version number available with the "NXT" prefix.
|
Sample Programs
| OOne of the best ways to start working with ROBOTC is to look at already developed programs. ROBOTC for Mindstorms comes with over 150 sample programs to help new programmers learn how to program their robots.
To access the sample programs, go to the "File" menu and select "Open Sample Program".
|
Compiling and Downloading
| ROBOTC is an "Integrated Development Environment." ROBOTC has a custom text editor to assist the programmer by color coding different potions of code to differentiate between integers, reserved words, functions and parameters.
In the example below:
Once the download finishes, the built-in debugger launch. Some windows will launch, such as the "NXT Device Control Display" and the "Program Debug" window. Others may launch docked into the interface, such as the "Global Variables" screen. You can start your programs execution by clicking the "Start" button on the "Program Debug" window. Learn more about these windows in the 'Debugger' section of the help file. |
Test I2C
| ROBOTC has a very powerful utility for testing digital sensors on the NXT. Digital sensors are those that support the industry standard I2C protocol for communications between the NXT and the sensor. The utility allows you to easily test an I2C sensor on the NXT. A screen shot of the utility is shown below.
Port Selects which of the four ports on the NXT the message will be sent to.
|
Getting Started with the VEX PIC
Configuring Serial Port
| When using ROBOTC for the first time, you may need to specify which Serial Port is used to communicate with your VEX. To change the Serial Port, follow these steps:
1. Open the Preferences menu under the "View" menu.
|
Download Master Firmware
| The Master Firmware for the VEX is sperate from the ROBOTC Firmware. The Master firmware controls all of the lower-level controls of the VEX controller (such as serial and radio communication). This firmware is supplied by Innovation FIRST and has not been modified by ROBOTC. Every VEX Microcontroller is preloaded with a version of the master firmware, but downloading the latest version will ensure that your robot is compatible with the latest hardware available.
|
Download ROBOTC Firmware
| Before you can use ROBOTC with the VEX platform, you have to download the ROBOTC firmware to the VEX.
Prerequisites:
1. Open the Robot menu, select "Download Firmware", "ROBOTC Firmware", and then "Standard File". 2. A Download Progress window will appear. When the window closes, the download is complete.
|
Sample Programs
| One of the best ways to start working with ROBOTC and learning how to program is to look at already developed programs. ROBOTC comes with over 75 sample programs to help the programmer learn how to program their robotics controllers.
To access these sample programs, open the "Sample Programs" folder by going to the "File" menu and selecting "Open Sample Program."
|
Compiling and Downloading
| ROBOTC is considered to be an "Integrated Development Environment." This means that ROBOTC has a custom text editor for developing code that will assist the programmer by color coding different potions of code to differentiate between integers, reserved words, functions and parameters.
In the example below:
|
Getting Started with the VEX CORTEX
Download Master Firmware
| The Master Firmware for the VEX 2.0 Cortex is sperate from the ROBOTC Firmware. The Master firmware controls all of the lower-level controls of the VEX 2.0 Cortex controller (such as VEXnet Communication). This firmware is supplied by Innovation FIRST and has not been modified by ROBOTC. Every VEX 2.0 Cortex Microcontroller is preloaded with a version of the master firmware, but downloading the latest version will ensure that your robot is compatible with the latest hardware available.
To download and update the VEX 2.0 Cortex Master Firmware: Place your VEX Cortex in "Bootload" Mode
Placing your VEX Cortex in "Bootload" mode is necessary before downloading the Master CPU Firmware. Keep the Cortex powered OFF.
Plug one end of the USB A-to-A Cable into a USB port on your computer. Do not plug the other end into the Cortex. Note: The order detailed in these steps is crucial. When the Cortex is powered on, it immediately tries to determine how it is connected (over VEXnet, USB, or no connection). Some power is provided to the Cortex over USB, which will allow it to determine that it is connected to your computer.
Once the Master CPU Firmware finishes downloading, the Cortex will be recognized as a new device, and Windows may ask you to verify the software installation for the Cortex. Press Continue or Continue Anyway to complete the installation.
|
Download ROBOTC Firmware
| The ROBOTC Firmware enables you to download ROBOTC programs to your robot and utilize the various debugger windows.
Prerequisites:
If you are also using the VEXnet Joysticks, you will need to update its firmware and establish a wireless VEXnet link between it and the Cortex. |
Download VEXnet Joystick Firmware
| The VEXnet Joystick includes two joysticks (each having an X and Y-axis), 8 buttons on the front, and 4 additional trigger buttons on the top. Inside, there is also 3-Axis accelerometer, capable of providing X-Y-Z acceleration values. Values from the joysticks, buttons, and accelerometer are sent as a constant stream of information over VEXnet to the robot, enabling a user to control the robot in real-time.
You will need to update the firmware on the VEXnet Joystick to ensure that it will operates correctly. Placing your VEXnet Joystick in "Bootload" mode is necessary before downloading the VEXnet Joystick Firmware. Keep the VEXnet Joystick powered OFF.
The process of placing your VEXnet Joystick in Bootload mode is easier if you start by plugging one end of the USB A-to-A cable into the device. Keep the VEXnet Joystick turned OFF, and do not plug the other end of the USB A-to-A cable in yet.
|
Setting up VEXnet Communication
| In this section, you will learn how to pair a VEX Cortex Microcontroller to a VEXnet Remote Control, allowing them to communicate over VEXnet. This section assumes that you have already updated the master firmware on the VEX Cortex and VEXnet Remote Control. VEXnet is an 802.11 WiFi communication system between the VEX Cortex and VEXnet Remote Control.
VEXnet features include:
7. Power the Cortex and Remote Control ON. After roughly 15 seconds, the ROBOT and VEXnet LED’s will blink green, indicating that the VEXnet communication link has been established.
Issue: Slow blinking green ROBOT light on the Cortex Solution: Download the Cortex Master Firmware using ROBOTC. Issue: Slow blinking ROBOT green light on the VEXnet Remote Control Solution: Push and hold CONFIG button for about 5 seconds, until the status LEDs starts blinking green. Release it, wait for another 5 seconds, and then turn the VEXnet Remote Control OFF and then back ON. If that fails, download the VEXnet Joystick Firmware using ROBOTC. Issue: Yellow or red ROBOT light on the Cortex Solution: Make sure you are using fully charged Robot battery. Issue: Yellow or red ROBOT light on the VEXnet Remote Control, even though they are both green on the Cortex. Solution: Power cycle both the VEXnet Remote Control and CORTEX. |
VEXnet Remote Control Calibration
| This document contains the procedure for calibrating the VEXnet Remote Control joysticks. Some steps are time-sensitive, so it’s recommended that you read through the instructions once before following along.
The VEXnet Remote Control includes two joysticks (each having an X and Y-axis), 8 buttons on the front, and 4 additional trigger buttons on the top. Inside, there is also 3-Axis accelerometer, capable of providing X-Y-Z acceleration values. Values from the joysticks, buttons, and accelerometer are sent as a constant stream of information over VEXnet to the robot, enabling a user to control the robot in real-time. To ensure that the VEXnet Remote Control sends out accurate joystick values, the joysticks must be calibrated before their first use, and after any firmware updates are applied to the remote control. You will need:
Important - Time Sensitive Instructions 4. Move both joysticks through their full ranges of motion. When the remote control detects that the joysticks have been fully rotated, the JOYSTICK LED stops blinking red and green, and switches to a solid green. 4a. Move the joysticks through their full ranges of motion - Up, Down, Left, Right, and in a circle.
|
Sample Programs
| One of the best ways to start working with ROBOTC and learning how to program is to look at already developed programs. ROBOTC comes with over 75 sample programs to help the programmer learn how to program their robotics controllers.
To access these sample programs, open the "Sample Programs" folder by going to the "File" menu and selecting "Open Sample Program."
|
Compiling and Downloading
| ROBOTC is considered to be an "Integrated Development Environment." This means that ROBOTC has a custom text editor for developing code that will assist the programmer by color coding different potions of code to differentiate between integers, reserved words, functions and parameters.
In the example below:
Option 2: Download Using USB Only Option 3: Download for Competition (VEXnet) Note: Switching between Download Modes may require you to power cycle your Cortex before it takes effect. Once your program has successfully compiled and you've selected the appropriate Download Method, you can send the program to the controller by clicking the "Compile and Download Program" option under the "Robot" menu. Note: Your robot must be turned on and connected to the computer before you can download a program.
|


































































































