Light Tracker Project: Seeking Algorithm Help

AI Thread Summary
A light tracker project is being developed using a photo transistor and PIC 16F877 microcontroller, but an efficient algorithm is needed. A suggested method involves using two phototransistors on a turntable with a shield between them, wired in a Wheatstone Bridge to control a motor based on light intensity. To prevent excessive motor activity, the system could accept a range of brightness as acceptable or take readings at intervals. A challenge arises when both sensors detect equal light intensity, prompting a need for a strategy to determine the next direction to rotate. Implementing additional sensors can help manage motor direction and prevent wire twisting during operation.
hisham.i
Messages
176
Reaction score
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
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.
 
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?
 
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?
 
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
 
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.
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top