Page 19
Sensors usually require a pull up resistor to work properly. Each KIPR Link sensor port has a software
selectable pull up resistor, enabled on boot by the KIPR Link Firmware as the default setting. A sensor
such as the "ET" distance sensor available from KIPR may already have a built in pull up resistor. In this
case, the pull up resistor for the port used by the sensor needs to be disabled, which can be done by
using the
set_ analog_pullup
function provided in the KIPR Link Library. For example, for an ET sensor
plugged into analog port 4
set_analog_pullup (
4
,
0
);
will disable the pull up resistor for port 4. The terminology "floating" is used to describe a port without
a pull up resistor and "pull up" if its pull up resistor is enabled. Since "pull up" is the default setting, any
data read by the
analog10
function from an ET sensor in port 4 won't be meaningful until the pull up
resistor for port 4 is disabled.
There are additional functions for sensors in the KIPR Link library, described in the appendices. These
include button functions for the KIPR Link's side button, and for the virtual A, B, C, X, Y, Z buttons on the
program input/output console screen.
Using Servo Motors
Servos plug into the servo ports on the front of the KIPR Link. The arrows used above represent the
most common coloring for servo cables (ground is black, positive is red, and signal is yellow), but yours
may differ. If it does check the pin out to make sure that it is compatible with the KIPR Link before
plugging it in (servos sold through the KIPR online store will always be compatible). The servo ports
operate at 7.2V. Since a servo motor's function is to move to a position and hold it, the motor will
continue to draw significant power to maintain position. As the KIPR Link battery is drained, the
− + S
− + S
1
0
3
2