TEST These Input/Output modules (purchased separately) include cables for connecting the modules to the TI‑Innovator™ Hub.
Module |
Ports |
Image |
Sample code for |
---|---|---|---|
White LED |
OUT 1 |
|
Turn on the White LED module connected to OUT 1: Send("CONNECT LED 1 TO OUT 1") |
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") Equivalent code using a variable with eval(): angdeg:=-90 |
Analog Light Sensor |
IN 1 |
|
Read and display ambient light level from the sensor connected to IN 2: Send("CONNECT LIGHTLEVEL 1 TO IN2") |
Ultrasonic Ranger |
IN 1 |
|
Read and display measured distance from the ranger connected to IN 2: Send("CONNECT RANGER 1 TO IN2") Send("READ RANGER 1") |
Vibration Motor |
OUT 1 |
|
Turn on the Vibration Motor connected to OUT 1: Send("CONNECT VIB.MOTOR 1 TO OUT 1") |
Temperature |
IN 1 |
|
Read and display the ambient temperature from the sensor connected to IN 3: Send("CONNECT TEMPERATURE 3 TO IN3")
|
Temperature and |
IN 1 |
|
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: Send( "READ DHT 1 TEMPERATURE") Get temperature Read the humidity from the DHT sensor: Send "READ DHT 1 HUMIDITY" Get humidity |
Hall Sensor |
IN 1 |
|
Connect the Hall effect sensor to IN3 port: Send "CONNECT ANALOG.IN 1 TO IN 3" Read the value of the magnetic field reported by the sensor: Send "READ ANALOG.IN 1" Get m |
Moisture Sensor |
IN 1 |
|
Connect moisture sensor to IN 1: Send "CONNECT MOISTURE 1 IN 1" Configure the measurement range to be between 0 and 100. The range is an index and has no units. Send "RANGE MOISTURE 1 0 100" Read the sensor: Send "READ MOISTURE 1" Get moisture |
MOSFET |
OUT 1 |
|
Connect the MOSFET to the OUT 1 port: Send "CONNECT ANALOG.OUT 1 TO OUT 1" Control the connected motor/pump at 50% speed for 3 seconds: Send "SET ANALOG.OUT 1 128 TIME 3" |
Water Pump |
|
|
It is controlled through a MOSFET module. |
*The White LED module requires some assembly.
**The Servo Motor requires auxiliary power and some assembly.
Note:
You use the I/O cable included with the module to connect it to a
1. | Check the above table to ensure that you know which I/O ports support the module that you are connecting. |
2. | Connect either end of the I/O cable to the white connector on the module. |
3. | Connect the free end of the I/O cable to the |
4. | If the module requires auxiliary power, connect the power source (here), |
The following TI CE graphing calculator program uses Send and Wait commands to blink an LED module connected to an I/O port.
Note: This program operates correctly only if the calculator is connected to the
PRGM: BLINKIO Send("CONNECT LED 1 TO OUT1") For(N,1,10) Send("SET LED 1 ON") Wait 1 Send("SET LED 1 OFF") Wait 1 End Send("DISCONNECT LED 1") Note: If you are using TI‑Nspire™ CX technology, omit the parentheses, and change End to EndFor. |
|
The
For a list of precautions to take while using the I/O Modules, refer to General Precautions (here).