Ambient TOUCH LIGHT User Manual

Browse online or download User Manual for Remote controls Ambient TOUCH LIGHT. Forward Until Dark Light Sensor

  • Download
  • Add to my manuals
  • Print
  • Page
    / 11
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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.
Page view 0
1 2 3 4 5 6 ... 10 11

Summary of Contents

Page 1

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

Page 2 - Light Sensor (cont.)

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

Page 3

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

Page 4

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

Page 5 - Thresholds 201 (cont.)

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

Page 6

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

Page 7

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

Page 8

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

Page 9

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

Page 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

Page 11

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

Comments to this Manuals

No comments