Ambient TOUCH LIGHT Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Controlos remotos Ambient TOUCH LIGHT. Forward Until Dark Light Sensor Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 11
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 0
1 2 3 4 5 6 ... 10 11

Resumo do Conteúdo

Página 1

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

Página 2 - Light Sensor (cont.)

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

Página 3

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

Página 4

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

Página 5 - Thresholds 201 (cont.)

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

Página 6

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

Página 7

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

Página 8

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

Página 9

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

Página 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

Página 11

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

Comentários a estes Manuais

Sem comentários