Light Tracker Project: Seeking Algorithm Help

In summary, the conversation discusses the use of a phototransistor and pic 16f877 micro controller in a light tracker project. The suggested method involves using two phototransistors on a turntable and wiring them in a Wheatsone Bridge to take the output to a comparator. The issue of what to do when both sensors detect the same light intensity is also addressed, with the suggestion of using a micro to check for a minimum light level and rotating the motor until the light source is found.
  • #1
hisham.i
176
2
Hi every body...
I have a light tracker project, so i will use a photo transistor and pic 16f877 micro controller..
but until now i don't have a complete algorithm and efficient one, of how such a tracker should work.
please send me a detailed algorithm of how such a tracker should work..
thank you
 
Engineering news on Phys.org
  • #2
One way of doing this is to have two phototransistors next to each other on a turntable rotated by a motor, and having a metal or other opaque shield between them.
You would probably need diffusers in front of each phototransistor. This would be plastic as you see in front of fluorescent lights, or it could be blocks of paraffin wax.

Then you would wire the the phototransistors in a Wheatsone Bridge and take the output to a comparator.
The output of this could switch a relay to turn on a motor to turn the turntable (carrying the light sensors) in the direction of the brighter phototransistor.

Instead of the comparator, you could use two A to D converters in a Micro.

To avoid the tracking becoming too active, you could accept an area of similar brightness as being "good enough" and let the motor rest if this happened.
Or you could just take a reading every 5 seconds or so and ignore the time in between.
The motor would last longer if you didn't have it hunting continuously.
 
  • #3
you are right..but the problem i faced with this method is the following:
when the light is behind the tracker and both sensors figure the same intensity of light what should it do? and how can the tracker know that it should rotate the next side?
 
  • #4
you are right..but the problem i faced with this method is the following:
when the light is behind the tracker and both sensors figure the same intensity of light what should it do? and how can the tracker know that it should rotate the next side?
 
  • #5
We kind of talked about this in this thread. Look for my post and you'll see a video link to a light tracker I made. It consists of 5 photoresistors (LDRs) that keep up with where the light it.

https://www.physicsforums.com/showthread.php?t=223686

-------------
Justin Coulston
TheModernEngineer.blogspot.com
 
  • #6
If you took the two outputs to a micro, you could check that at least one of them is getting a minimum light level. You will know how bright the light is supposed to be.

If both of them are comparatively in the dark, rotate the motor backwards and forwards until you find the light source or it is turned on.

You can't rotate the motor continuously in one direction or the wires will get twisted, so you need sensors to detect when the end of the travel has been reached.
 

What is the "Light Tracker Project"?

The "Light Tracker Project" is a scientific research project that aims to develop an algorithm for accurately tracking light sources in various environments.

Why is tracking light sources important?

Tracking light sources is important for a variety of applications, such as understanding animal behavior, tracking movement in sports, and improving lighting design in buildings.

What is the current progress of the project?

The project is currently in the data collection phase, where researchers are gathering data from various light sources and environments to use for developing and testing the algorithm.

What kind of algorithm is being developed?

The algorithm being developed is a computer vision algorithm that uses image processing techniques to detect and track light sources in a given environment.

How can I contribute to the "Light Tracker Project"?

There are several ways to contribute to the project, such as providing feedback on the algorithm, sharing data or resources, or collaborating with the research team. Please contact the project leader for more information on how to get involved.

Similar threads

Replies
19
Views
4K
  • Linear and Abstract Algebra
Replies
12
Views
940
  • Electrical Engineering
Replies
5
Views
1K
Replies
1
Views
1K
  • Electrical Engineering
Replies
26
Views
2K
  • Electrical Engineering
2
Replies
49
Views
5K
  • Electrical Engineering
Replies
6
Views
2K
  • Electrical Engineering
Replies
12
Views
14K
Replies
16
Views
1K
Replies
3
Views
1K
Back
Top