Sensor Values; Example Programs - TTS InO-Bot Blockly Teachers Manual

Table of Contents

Advertisement

Sensor values

Sensor
Light
Sound
Distance
IR – Infrared

Example Programs

There are a number of example programs. Tap on OPEN to access them.
Program
Automatic headlights
Draw a hexagon
Emergency vehicle lights
Explorer
LED Patterns
Proximity sensors
Sound and light sensing
Value
0 to 255
0 to 255
0 to 255
255 to 0 (lower values = more IR light)
Description
Makes the headlights light in duller light conditions.
Lowers the pen holder and moves in a hexagonal shape.
Flashes LED 1, 4, 5 and 8 red and blue.
Moves around avoiding obstacles detected by the range
finder.
Lights the top LEDs in different colours.
Lights LED 1, 4, 5 or 8 when nearest corner sensor is
triggered.
Lights LED 4 and 5 at given trigger sound level and lights
headlights at given trigger light level.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents