Join Olivia Stone for an in-depth discussion in this video Calibrate the Light Sensor, part of Lego Mindstorms: Open the Box.
- [Voiceover] I might want to know if my robot…is looking at a light or dark surface.…This could be useful to follow a line on the ground,…or to prevent my robot from rolling off a cliff.…I've opened 05_07_Calibration_Start,…which has a configured Color Sensor block…set up to measure reflected light intensity.…First, I'll change the mode of my color sensor block…to compare reflected light intensity.…I have six different options for the compare type…depending on whether I'm looking for an exact value,…or something that falls within a range.…
I want to use this to determine whether…I'm looking at a dark area,…so I'll pick the Lesser Than option.…As we saw earlier,…a black card in front of the sensor…returned the value 5.…While a white surface in front of the sensor…returned 94.…So somewhere between 5 and 94…is a value that corresponds to the robot…transitioning into a dark area.…I want to set my threshold value input…to somewhere within that range.…So I'll pick 60.…
To finish up the program,…I'll wire the Compare Result…
Learn how to unpack the hardware, connect to the programming interface, run prebuilt programs, and control the motors and sensors. Chapter 6, "Adding Flow to a Program," covers advanced programming topics such as transferring data between blocks, using variables to store temporary data, programming conditional logic, and looping actions to run again and again. By the end of the course, you'll have the skills to bring your own robotic creations to life.
- Installing the LEGO Mindstorms software
- Exploring the programming interface
- Connecting to the EV3 brick
- Downloading and running prebuilt programs
- Coordinating motor movement
- Calibrating the sensors
- Transferring data with data wires
- Adding logic with switch blocks
- Looping actions
- Troubleshooting problems with LEGO Mindstorms
- Broadcasting sounds and displaying images
- Updating LEGO Mindstorms
Skill Level Beginner
1. Getting Started
3. Explore a New Project
4. Connect with the EV3 Brick
5. Program Movement and Sensing
6. Adding Flow to a Program
7. Document Your Work
8. Troubleshoot Problems
9. Extra Tools
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.