Ambient TOUCH LIGHT Manual de usuario

Busca en linea o descarga Manual de usuario para Controles remotos Ambient TOUCH LIGHT. Forward Until Dark Light Sensor Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 11
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
ROBOTC
Sensing
Forward Until Dark / Light 1
©
Carnegie Mellon Robotics Academy / For use with LEGO
®
MINDSTORMS® Education NXT software and base set 9797
Forward Until Dark Light Sensor
Touch Sensor
The Touch Sensor detects physical contact with the
orange trigger, and returns a SensorValue of 1 if it is
pressed in, or 0 if it is not.
Ultrasonic Sensor
The Ultrasonic (sometimes called Sonar) Sensor sends
out pulses of sound and measures the time it takes for
the sound waves to bounce off an object and return.
Since the speed of sound is known, the sensor calculates
the distance based on the time, and reports the distance
in centimeters as its SensorValue
In this lesson, you will learn how the Light Sensor works, and how its feedback compares to
the Touch and Ultrasonic Sonar sensors.
Detects:
Feedback:
Typical use:
Sample code:
Physical contact
0 if unpressed, 1 if pressed
Bumper
while (SensorValue(touchSensor) == 0)
will run the while() loop as long as the
touch sensor is not pressed.
Detects:
Feedback:
Typical use:
Sample code:
Distance to object
Range to object in centimeters (1-250)
Obstacle detection and avoidance
while (SensorValue(sonarSensor) > 25)
will run the while() loop as long as there
is no object detected within 25 cm.
Vista de pagina 0
1 2 3 4 5 6 ... 10 11

Indice de contenidos

Pagina 1

ROBOTCSensingForward Until Dark / Light • 1© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 2 - Light Sensor (cont.)

ROBOTCSensingForward Until Dark / Light • 10© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 3

ROBOTCSensingForward Until Dark / Light • 11© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 4

ROBOTCSensingForward Until Dark / Light • 2© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 5 - Thresholds 201 (cont.)

ROBOTCSensingForward Until Dark / Light • 3© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 6

ROBOTCSensingForward Until Dark / Light • 4© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 7

ROBOTCSensingForward Until Dark / Light • 5© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 8

ROBOTCSensingForward Until Dark / Light • 6© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 9

ROBOTCSensingForward Until Dark / Light • 7© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 10 - Wait for Dark (cont.)

ROBOTCSensingForward Until Dark / Light • 8© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Pagina 11

ROBOTCSensingForward Until Dark / Light • 9© Carnegie Mellon Robotics Academy / For use with LEGO® MINDSTORMS® Education NXT software and base set

Comentarios a estos manuales

Sin comentarios