Terrapin Resources

InO-Bot Properties

The InO-Bot robot is like the Logo screen turtle come to life. Many commands may be sent to InO-Bot in the same way they are sent to the screen turtle. FORWARD, BACK, LEFT, and RIGHT commands move a connected InO-Bot the same way they move the screen turtle.

Like the screen turtle, InO-Bot has a number of properties which may be changed or controlled via Logo to manipulate or set the status of InO-Bot. These properties may be viewed and changed using Logo’s robust property list commands.

(Logo does not TRACE or STEP these properties, but you can monitor them with WHEN or WHENEVER.)

The following list shows the special properties of InO-Bot with examples of how to use them. You can display an editable dialog of InO-Bot properties by right-clicking the Logo screen turtle when it is displayed as InO-Bot or with the command EDPLIST.

BATTERY

Reports the battery level of InO-Bot.

Description

BATTERY reports the battery level of the internal InO-Bot battery in volts.

Example

GPROP “INOBOT “BATTERY Result: 3.7

Note that if all 8 LEDs flash red, InO-Bot needs to be recharged.

CALIBRATION

Controls InO-Bot’s calibration factors for turns and movements.

Description

Most often, Ino-Bot needs to be calibrated somewhat. You can use this property to make the bot’s movements and turns more accurate. This property is a two-element list. The first element is a turn adjustment factor, and the second element is a movement adjustment factor. Initially, both values are set to 1.

Example

GPROP “INOBOT “CALIBRATION Result: [1 1] PPROP “INOBOT “CALIBRATION LIST 85/90 1

CONNECTOR

Controls InO-Bot’s external connector.

Description

InO-Bot has a small connector of the right side that can be used to attach a secondary motor, a light, or the like. This property controls the setting of this connector. Its input can be one the values FORWARD, BACK, or STOP.

Example

GPROP “INOBOT “CONNECTOR Result: STOP

DISTANCE

Reports InO-Bot’s distance to an obstacle.

Description

DISTANCE reports the distance to an obstacle in centimeters. InO-Bot uses ultrasound to measure the distance, within 5% accuracy.

Example

GPROP “INOBOT “DISTANCE Result: 125

FRONTLEFT

Reports the status of InO-Bot’s front left obstacle sensor.

Description

FRONTLEFT reports the status of InO-Bot’s front left obstacle sensor as either TRUE or FALSE.

Example

GPROP “INOBOT “FRONTLEFT Result: FALSE

FRONTRIGHT

Reports the status of InO-Bot’s front right obstacle sensor.

Description

FRONTRIGHT reports the status of InO-Bot’s front right obstacle sensor as either TRUE or FALSE.

Example

GPROP “INOBOT “FRONTRIGHT Result: FALSE

INFRARED

Controls InO-Bot’s infrared sensor.

Description

InO-Bot has a built-in infrared emitter and sensor. You can turn the emitter on or off by setting the INFRARED property to TRUE or FALSE. If you read the INFRARED property, it reports a value between 0 and 1 according to the strength of the infrared signal.

Example

GPROP “INOBOT “INFRARED Result: 0.58

LIGHT

Reports the status of InO-Bot’s light sensor.

Description

LIGHT reports the status of InO-Bot’s light sensors as a value between 0 and 1.

Example

GPROP “INOBOT “LIGHT Result: 0.38

LIGHTS

Controls InO-Bot’s headlights.

Description

The LIGHTS property reports and sets the level of InO-Bot’s headlights. Its input is a list of two values between 0 and 1 for the left and right headlight, where 0 turns the headlight off, and 1 turns it on at full intensity.

Note that Logo assumes that the headlights are turned off when you connect. InO-Bot does not transmit information about its headlights.

Example

; turn both headlights on PPROP “INOBOT “LIGHTS [1 1] ; Use half intensity left, and full intensity right PPROP “INOBOT “LIGHTS [0.5 1] ; Turn them off PPROP “INOBOT “LIGHTS [0 0]

LINELEFT

Reports the status of InO-Bot’s left line sensor.

Description

LINELEFT reports the status of InO-Bot’s left line sensor as either TRUE or FALSE.

Example

GPROP “INOBOT “LINELEFT Result: FALSE

LINERIGHT

Reports the status of InO-Bot’s right line sensor.

Description

LINERIGHT reports the status of InO-Bot’s right line sensor as either TRUE or FALSE.

Example

GPROP “INOBOT “LINERIGHT Result: FALSE

NOISELEVEL

Reports InO-Bot’s microphone noise level.

Description

NOISELEVEL reports the level of noise that InO-Bot’s microphone detects. The more noise it detects, the higher NOISELEVEL reports. Note that the noise level increases when InO-Bot’s motors are turned on.

Example

GPROP “INOBOT “NOISELEVEL Result: 15

REARLEFT

Reports the status of InO-Bot’s rear left obstacle sensor.

Description

REARLEFT reports the status of InO-Bot’s rear left obstacle sensor as either TRUE or FALSE.

Example

GPROP “INOBOT “REARLEFT Result: FALSE

REARRIGHT

Reports the status of InO-Bot’s rear right obstacle sensor.

Description

REARRIGHT reports the status of InO-Bot’s rear right obstacle sensor as either TRUE or FALSE.

Example

GPROP “INOBOT “REARRIGHT Result: FALSE