{"id":10049,"date":"2015-03-31T13:27:11","date_gmt":"2015-03-31T02:27:11","guid":{"rendered":"http:\/\/legoeng.local\/?p=10049"},"modified":"2019-03-26T18:28:55","modified_gmt":"2019-03-26T07:28:55","slug":"darkness-or-darker","status":"publish","type":"post","link":"http:\/\/legoeng.local\/darkness-or-darker\/","title":{"rendered":"Darkness or darker?"},"content":{"rendered":"

\"Brick-sweeper\"<\/a>In this article, we look at the difference between fixed and relative thresholds in LabVIEW, that is the \u201cdarkness\u201d and the \u201cdarker\u201d settings in the Wait for Light Sensor block.<\/p>\n

Note: This article builds on \u201cExploring thresholds<\/a>\u201d by Josep Fargas. It is recommended that you read that article first.<\/p>\n

The examples in this article were written in LabVIEW<\/a> with the LabVIEW Module for LEGO MINDSTORMS.<\/p>\n

A common exercise in robotics classes consists of having a robot drive on a white surface until it detects a black border and then stop. We might call this \u201cStop at the line\u201d.<\/p>\n

To do this, the robot has to first learn what light sensor readings correspond to the white surface and what readings correspond to the black border.<\/p>\n

\"Port-View\"<\/a>In Port View students can verify the light values for white surface and black border respectively as follows:<\/p>\n