20
TI-Innovator™ I/O Modules
TEST These Input/Output modules (purchased separately) include cables for connecting
the modules to the TI-Innovator™ Hub.
Module
Ports
Image
Sample code for
TI CE Graphing Calculator
White LED
OUT 1
OUT 2
OUT 3
Turn on the White LED module connected to
OUT 1
:
Send("CONNECT LED 1 TO OUT 1")
Send("SET LED 1 ON")
Servo Motor
OUT 3
Rotate the shaft of the Servo Motor
connected to
OUT 3
counter clockwise by
90
°
:
Send("CONNECT SERVO 1 TO OUT 3")
Send("SET SERVO 1 TO -90")
Equivalent code using a variable with
eval()
:
angdeg:=-90
Send("CONNECT SERVO 1 TO OUT 3")
Send("SET SERVO 1 TO eval(angdeg)")
Analog Light
Sensor
IN 1
IN 2
IN 3
Read and display ambient light level from
the sensor connected to
IN 2
:
Send("CONNECT LIGHTLEVEL 1 TO IN2")
Send("READ LIGHTLEVEL 1")
Get(L):Disp(L)
Ultrasonic
Ranger
IN 1
IN 2
Read and display measured distance from
the ranger connected to
IN 2
:
Send("CONNECT RANGER 1 TO IN2")
Send("READ RANGER 1")
Get(R):Disp(R)
Vibration
Motor
OUT 1
OUT 2
OUT 3
Turn on the Vibration Motor connected to
OUT 1
:
Send("CONNECT VIB.MOTOR 1 TO OUT 1")
Send("SET VIB.MOTOR 1 TO ON")
Temperature
Sensor
IN 1
IN 2
IN 3
Read and display the ambient temperature
from the sensor connected to
IN 3
:
Send("CONNECT TEMPERATURE 3 TO
IN3")
Send("READ TEMPERATURE 3")
Get(T):Disp(T)
Temperature
and
Humidity
Sensor
IN 1
IN 2
IN 3
Connect the
DHT
sensor to port
IN 2
Send( "CONNECT DHT 1 TO IN2 ")
Read the temperature from the
DHT
sensor
connected to
IN 2
: