PRGM HUB Instructions

TI-Innovator™ HUB Menu Instructions

This section describes the TI-Innovator™ HUB Menu Instructions.

See TI-Innovator™ System activities for details and parameter values for specific sensors and controls. This section describes the instructions or commands contained in the TI-Innovator™ HUB menu and how the commands paste to the program editor.

Topic Links

TI-Innovator™ HUB Menu

To display the TI-Innovator™ HUB menu, press ¼ from the program editor only.

Important Tip: To quickly find a command,
use ƒ } or ƒ to page through screens.

If 7 is on, then } and will page through screens in menus and the program edit screen.
After entering alpha characters, remember to turn off 7 to avoid unexpected paging of screens.

Note: All TI-Innovator™ Hub command can be entered character by character as well.

TI-Basic commands such as Send(, Get(, Wait, and eval( must be pasted as tokens from the menus.

 

 

CTRL

I/O

COLOR

EXEC

HUB

 

 

 

 

 

 

 

 

 

 

 

 

Description

1:

Send("SET…

Builds out a Send( command to paste to editor

2:

Send("READ…

Builds out a Send( command to paste to editor

3:

Settings...

Pastes a TI-Innovator™ Hub command to editor

4:

Wait

Pastes a TI-Basic command to editor

5:

Get(

Pastes a TI-Basic command to editor

6:

eval(

Pastes a TI-Basic command to editor

7

Rover (RV)

Pastes a TI-Basic command to editor

8:

Send("CONNECT-OUTPUT

Builds out a Send( command to paste to editor

9:

Send("CONNECT-INPUT

Builds out a Send( command to paste to editor

0:

Ports…

Pastes a TI-Innovator™ Hub command to editor

A:

Send("RANGE…

Builds out a Send( command to paste to editor

B:

Send("AVERAGE…

Builds out a Send( command to paste to editor

C:

Send("DISCONNECT-OUTPUT

Builds out a Send( command to paste to editor

D:

Send("DISCONNECT-INPUT

Builds out a Send( command to paste to editor

E:

Manage…

Pastes several commands (:) to editor

For Catalog Help when using the commands eval(, Get(, or Wait, press Ã.

To return to the program editor without selecting an item, press until the cursor returns to the program editor.

Warning: Do not press repeatedly unless you are viewing the screen navigation. Once the menus are cleared, pressing clear again may clear an entire line of your program. There is no undo in the program editor.

 


Before you begin

This section provides descriptions of how each menu item pastes to the program editor. For specific TI-Innovator™ System information dealing with syntax and parameters for each sensor, see specific information in the TI-Innovator™ System activities and kits. You may also type the TI-Innovator™ Hub command (only) letter by letter using the [alpha] key, [ “ ], [ _ ], etc.

Extra spaces are pasted for your convenience. TI-Innovator™ Hub sketch will ignore extra spaces within quotation marks in a Send( command. However, when you run your program, extra spaces cannot be at the end of command lines and will give you a syntax error. If you get a syntax error at the end of a line, check for extra spaces and delete.

How does the Send( command build out a TI-Innovator™ Hub command from the HUB menu?

From the HUB menu, select a Send( command. The next screen will give you options for that format of Send(.

Example: To paste Send(“SET COLOR.RED to the program editor, follow these steps.

1. With cursor on a command line in the program editor, press ¼ to get to the programming command menus.

2. Press | to select the HUB menu.
Select 1:Send(“SET…
The “…” indicates there is another menu of options.

3. Select 2:COLOR.RED.

4. The entire Send( command line pastes to the program editor.
Repeat to select more TI-Innovator™ Hub commands.
Use ƒ [“] and [ ) ] to complete the Send( command when appropriate.

Note: All TI-Innovator™ Hub commands using Send( within quote marks can be typed in using the [alpha] keys on the keypad.

For colors, do not use the COLOR token command from the COLOR menu when communicating with TI-Innovator.™ Hub.

 

 


Send("Set...

The SET command instructs the “TI-Innovator™ Hub sketch to SET the value of the specified object. It supports all of the 'named' objects.

 

Program

Output

Example: This switches a red LED on for 1.5 seconds and then switches it off.

 

Note: The power LED is green.

 

The ON and OFF command can be typed in or are found in the Settings… menu item in the HUB menu.

 

Use [alpha] [ _ ] for space as needed.

 


Send("READ...

The 'READ' command is to instruct the TI-Innovator™ Hub sketch to read the value from the specified port/pin/object. It supports all of the 'named' objects. It can also be used with 'raw' pin addresses. It needs to be followed by a 'Get( command to actually transfer the information to a variable to use or display the variable value.

 

Program

Output

 


Settings...

Settings menu contains operations to set the state of digital and analog pin operations such as the LED in the TI-Innovator™ Hub or a connected servo motor movement to states such as ON, OFF, CW (clockwise), and CCW (counterclockwise).
See TI-Innovator™ System activity kits for more details.

 

 

Program

Output

Example: This switches a red LED on for1.5 seconds and then switches it off.

 

Reminder: The power LED is green.

 


Wait

Wait suspends execution of a program for a given time. Maximum time is 100 seconds. During the wait time, the busy indicator is on in the top-right corner of the screen.

Wait time

Program

Output: “Bye!” displays after 5 seconds.

TI-Innovator™ Hub Tips:

Wait may be used in TI-Innovator™ Hub programs to allow time for sensor or control communications prior to the program executing the next command line.

 


Get(

Get( Retrieves a value from a connected TI-Innovator™ Hub and stores the data to a variable on the receiving CE calculator.

Get(variable)

Notes:

Use GetCalc( to get data from another CE calculator.
You can access Get(, Send( and GetCalc( from the CATALOG to execute them from the home screen.

Program

Output

TI-Innovator™ Hub Tips:

Get( command definition is specific to the TI-8x calculator and the cable connection via DBus or USB. The CE calculator is USB connectivity only and here, Get( is designed for communication with the TI-Innovator™ Hub.

See also Send( and eval(.

 


eval(

eval( returns an evaluated expression as a string with 8 significant digits. The expression must simplify to a real expression.

eval(expression)

Program

Output

TI-Innovator™ Hub Tips:

eval( may be used within a string in the Send( command. The evaluated expression replaces eval(expression) with the result as characters within the string

For debugging purposes, using the command line Disp Ans immediately after a command line using Send( displays the complete string being sent.

Program

Output: Using Disp Ans after Send( command line.


Rover (RV)...

Prerequisite: Use the Send "Connect RV" Command First

The "CONNECT RV" command needs to be used first when using the Rover. The "CONNECT RV" command configures the TI-Innovator™ Hub software to work with the TI-Innovator™ Rover.

It establishes the connections to the various devices on the Rover – two motors, two encoders, one gyroscope, one RGB LED and one color sensor. It also clears the various counters and sensor values. The optional ‘MOTORS’ parameter configures only the motors and allows direct control of motors without the additional peripherals.

CONNECT RV - initializes the hardware connections.

Connects RV and inputs and outputs built into the RV.

Resets the Path and the Grid Origin.

Sets the units per meter to default value of 10. Default Grid unit = 10cm.

 

 


Send("CONNECT-OUTPUT...

CONNECT (Output) associates a given control or sensor with a pin or port on the TI-Innovator™.

 

 

Program

Output

 

Connects servo motor to OUT3.

Note: The BEGIN command puts the string “READY” in the TI-Innovator output buffer. The Get(Str0) command moves “READY” from the output buffer to string variable 0 on the calculator. Executing Get forces a communication connection between the TI-84 CE and the TI-Innovator, this is a superior approach to Wait 1 for assuring that the TI-Innovator is initiated. Disp Str0 displays “READY” on the home screen to inform the user that the BEGIN command is complete.

If the output buffer has not been cleared of “READY”, the first Get( command will return an incorrect value.

 


Send("CONNECT-INPUT...

CONNECT (Input) associates a given control or sensor with a pin or port on the TI-Innovator™ Hub.

 

 

Program

Output

Connects an external range finder to IN 1.

Note: The BEGIN command puts the string “READY” in the TI-Innovator output buffer. The Get(Str0) command moves “READY” from the output buffer to string variable 0 on the calculator. Executing Get forces a communication connection between the TI-84 CE and the TI-Innovator, this is a superior approach to Wait 1 for assuring that the TI-Innovator is initiated. Disp Str0 displays “READY” on the home screen to inform the user that the BEGIN command is complete.

If the output buffer has not been cleared of “READY”, the first Get( command will return an incorrect value.

 


Ports…

Ports menu lists available ports to connect such as input, output or to a breadboard.

 

 

Program

Output

Connects an external range finder to IN 1.

 

Note: Extra spaces paste such as the space in “IN 1.” “IN1” is also accepted by the TI-Innovator™ Hub sketch on TI-Innovator™.

 


Send("RANGE…

Changes or sets the range to a user-selected range from minimum to a maximum value.

 

Syntax Examples:

Send(“RANGE BRIGHTNESS minimum maximum”)

Send(“RANGE LIGHTLEVEL # minimum maximum”)

 


Send("AVERAGE…

The AVERAGE command is used to set the number of samples taken to represent an average single sensor reading.

 

Syntax Examples:

Send("AVERAGE BRIGHTNESS number”)

Send("AVERAGE LIGHTLEVEL # number”)

Where “number” is the number of readings to average.

 


Send("DISCONNECT-OUTPUT…

DISCONNECT (Output) breaks the association between a specific control or sensor from a pin or port on the TI-Innovator™.

 

 

Program

Output

 

Disconnects the SERVO 1 from use.

 


Send("DISCONNECT-Input…

DISCONNECT (Input) breaks the association between a specific control or sensor from a pin or port on the TI-Innovator™.

 

Program

Output

Disconnects range sensor from use.

 


Manage…

The Manage menu pastes a Send( command with the following management items. Str0 is displayed on Home Screen with information if requested in the command.

BEGIN – Disconnects all connected sensors and controls. Send("BEGIN") may be needed in a TI-Innovator™ Hub program to re-initialize a sensor or control prior to sending a command to that sensor or control.
ISTI – Responds with TI STEM
WHO – Responds with TI-Innovator™ Hub ON MSP432
WHAT – Responds with TI-Innovator™ Hub
HELP – Responds with USE HELP COMMAND FOR DETAILS
VERSION – Responds with TI-Innovator™ Hub version number
ABOUT – Responds with TI-Innovator™ Hub ©2016 Texas Instruments

 

 

Note: The [ : ] is used to sequence command lines on one command line. The Manage… menu pastes a convenient set of commands to then display the information in Str0 on the home screen.