Duct Tape and Bailing Wire.
You forgot Bubble Gum.![]()
Duct Tape and Bailing Wire.
You forgot Bubble Gum.![]()
Dave
Always wear safety glasses while programming.
Metric Crescent Wrenches are always good to have around too.
Dave
Always wear safety glasses while programming.
A little friendly chat is never a bad idea. After all it was me who asked for a description, remember?
Re "Cool idea": Well I don't know what you mean, maybe because I am not the youngest. Please explain.
I just added the ldr and unfortunately the +5V->LDR->IO-Pin-idea does not work. The voltage levels are not within the specified High/Low-Levels of the PIC. I found that Light means 1kOhms and None means from 8-16kOhms.
So I added a resistor of 4.7kOhms:
+5V->LDR->IO-Pin->4.7kOhms->Mass. Now there are voltage levels of about 3.2 and 2.3 Volts, which is still not within the specification.
Now I am planning to use the integrated Comparator but I do not know how, yet. What are the fuses?
On a 16f628 I guess it is CMCON=%11001010 for the PIN on RA2 but what about VREF. How to activate that in the high range?
Try the RCTIME code I posted. It should work since it sounds like the resistance values for your ldr are bascally the same a the CDS Cell I am using. I have no resistor though, just connected directly between the pin and 5V.
"cool" is a slang term that sort of means "neat" or "interesting". Again, sorry about that. I'm not used to being on a forum that has so much input from different countries. It is really "cool"! ;-)
Gary
I succeeded simply by using a check whether the PIN is High or Low - without the comparator.
I am using BluTak to connect the ldr to the led and it works.......marvelously.
Silent movement of the servo coming closer to the button. Then the servo softly moves forward and as soon as the camera reacts it stops. No matter in which position the cam is, it always stops gently. Simply awesome. I am excited.
Last edited by Ted's; - 15th May 2008 at 07:11.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Dave
Always wear safety glasses while programming.
Bookmarks