Photo resistor/servo
froslie
Posts: 67
Please help!
I need to do something simple and do not have my resources (books) in town.
I would like to use four photoresistors I have to read light patterns on a tv and then use that information to control four servo motors.
can anyone tell me how to execute this.
thanks so much
I need to do something simple and do not have my resources (books) in town.
I would like to use four photoresistors I have to read light patterns on a tv and then use that information to control four servo motors.
can anyone tell me how to execute this.
thanks so much
Comments
It may help if I could just understand how to control a photo resistor - any information would be helpful.
You dont control it, you measure it.
There are various ways, usually a RC time (resistance/condensator/time) circuit to measure the delay a condensator takes to empty through the resistance with the basic stamp.
Google 'RC time', and also use the forum search engine to get infos on it.
I dont understand what you mean by : I have to read light patterns on a tv and then use that information to control four servo motors.
How are the patterns ? How do the servos shall react ?
++
Be patient! Sunday is a slow day
A CDS type photoresistor changes resistance with light. The easiest way to interface it with a Stamp is to use it in a "voltage divider". You should google for the definition, but basically you take another resistor, say a 10K, and connect it like my lame ascii art below.
VDD
CDS Cell
|
/\/\/\/\-- 10K
VSS
The point in the center is the divided voltage. This voltage will vary with the amount of light. Now to interface that voltage to the stamp, as was mentioned above, you can use the RCTIME command to measure it. Depending on what you need, that may work fine. If you need to measure very small changes in light intensity, you will want an ADC (analog to digital converter). I like the TLC2543.
Also as noted above, the more you tell us about what you want to do, the more we can help.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
As the stamp measures variation in light pattern created on the television monitor - it will change the speed or direction in a corresponding servo.
anyway, thank you, I will google the info- did not mean to seem impatient.
act like an antenna for picking up the static electricity which can damage your electronics in a hurry. You might
consider using a photo transistor rather than a photo resistor. You should also consider filtering the 60Hz/70Hz
produced by your tv/monitor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
dropped carrier ages ago, this one lasted 5 1/2 years.
Fascinating.
PE - Gonner teaches me a lessin, 'e is.
-Phil