Hey Heckler, try http://www.redrok.com.htm They have a lot of different circuits that people have designed.. In fact one of our tech's who just graduated with his degree used one of them for his final project.
Hey Heckler, try http://www.redrok.com.htm They have a lot of different circuits that people have designed.. In fact one of our tech's who just graduated with his degree used one of them for his final project.
Dave Purola,
N8NTA
EN82fn
@Hank... I really want to keep the component count low and only need to do a comparative measurement between 2 or 4 different sensors. So I hope to be able to avoid using an amplifier, if possible.
@Dave... wow there is a lot on that website to take in... I'll look there for someting I can use. (your link seemed bad... I had to delete the .htm on the end)
Any others with ideas? please chime in.
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
To use an LED as light sensor you can use PBP's RCTIME or if you want to use the analog approach try connecting the anode to the input pin and the cathode directly to vss, the following code gives me 0 at dark and ~450 in the light:
(I'm using 5mm Ultra bright Blue LED)Code:Inicio: suma=0 for cont=1 to 10 adcin 3,dato suma=suma+dato pause 100 next cont suma=suma/10 serout transmitir,0,[#suma,10] goto inicio
Regards.
Last edited by ivanrosales; - 11th September 2011 at 01:06.
My English doesn't sucks, it's just fugly...
Anyway a simple LDR is by far more reliable and is as cheap as an LED, you can connect the LDR in series with a 1K resistor and use it as a voltage divider.
Regards.
My English doesn't sucks, it's just fugly...
Dwight:
Have you seen my design? Pictures, schematics, description, and code are posted in the WIKI under Projects - Solar - My Small Solar Tracker. Two posts appear, the second one has a PDF of the schematic. I have been using this tracker a lot, it is reliable and very accurate.
Thanks Ozark,
I may have seen the article but never did find the schematic... I went back to your original post after you mentioned it and found the .pdf. That is what I was looking for... how to hook up the led's and some sample code on reading the light values.
Is there a way to add the .pdf with the SCHEMATIC to the Wiki project page, you might also want to mention in the article where to find the schematic ?? I went back to the article and searched for the word "schematic" and could not see where to view the schematic. Then at the bottom of the page I found a link to the original thread and finally found the .pdf there.
How did you determine that it was necessary to add the capacitors in parallel to the LED's?
Thanks
@Ivanrosales... I know an LDR is probably a more standard way of measuring light... but I did not have one on hand and wanted to try using an LED as others have mentioned is possible. thanks for your help also
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Dwight:
I have a lot to learn regarding posting schematics. Sorry for the confusion.
As far as adding the capacitors - I'm sure they are not needed, the signal from the LED's is very stable, no noise or "jitter". Since a high speed response was not required here, I thought "what the heck", I'll just add them anyway. I did not test the circuit without the capacitors, but it would probably work just fine without them.
The change in signal level from the LED's is very smooth, kind of neat to see how the value changes as the shadow moves across the LED.
Ken
Moved from Schematics.
Robert
Bookmarks