Answers.Body: <p>Yes this is doable.</p>
  
  <p>The typical use is with a robot, a lamp/light placed some distance away, with the goal being: navigate towards the light.</p>
  
  <p>Assuming a robot that can spin (turn in place without moving forward or backward);
  mount a light sensor in a tunnel that shield the sensor from most of the light except light coming from straight forward.</p>
  
  <p>Spin the robot until the light sensor sees the light (anything above 80% is reasonable).  </p>
  
  <p>Drive forward while the bright light is visible, when it isn't stop, spin until it is visible. </p>
  
  <p>The color sensor has an ambient light setting, use that.</p>
  
  <p>There are a number of line-following algorithms that can be modified to handle moving toward a point of light.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-19T16:35:18.293Z
Answers.LastActivityDate: 2017-03-19T16:35:18.293Z
Answers.UserDisplayName: dfrevert
Body: <p>I would like to know if there is any workable way to use a single color sensor to track a light source in one axis of rotation?</p>
  
  <p>Would rotating the sensor back and forth within a few degrees, every few seconds, to check differing light levels work?</p>
  
Tags: <ev3>
Title: Any way to track a light source in 1 dimension using one color sensor?
UserDisplayName: callisto
ThreadText: # Any way to track a light source in 1 dimension using one color sensor?
  
  (Asked by: username_0 on 2017-03-17)
  
  I would like to know if there is any workable way to use a single color sensor to track a light source in one axis of rotation?
  
  Would rotating the sensor back and forth within a few degrees, every few seconds, to check differing light levels work?
  
  **Tags:** ev3
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-19. Score: 4
  
  Yes this is doable.
  
  The typical use is with a robot, a lamp/light placed some distance away, with the goal being: navigate towards the light.
  
  Assuming a robot that can spin (turn in place without moving forward or backward);
  mount a light sensor in a tunnel that shield the sensor from most of the light except light coming from straight forward.
  
  Spin the robot until the light sensor sees the light (anything above 80% is reasonable).
  
  Drive forward while the bright light is visible, when it isn't stop, spin until it is visible.
  
  The color sensor has an ambient light setting, use that.
  
  There are a number of line-following algorithms that can be modified to handle moving toward a point of light.
  
  
  ---
  
  