Module
Ports
Image
Sample code for
TI CE Graphing Calculator
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
IN 2
IN 3
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
IN 2
IN 3
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
OUT 2
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:
For details, refer to the TI-Innovator™ Technology eGuide (page ii).
21