been there done that
enough that I look that 1st. thing LOL
Type: Posts; User: grounded; Keyword(s):
been there done that
enough that I look that 1st. thing LOL
on the 12f629
should it be GPIO.0 not PORTA.0
WILL PORTA WORK
this is something I did for the grand kids one day (just grab the file had not recheck
to make sure it still works)
thought it mite help you it uses a A/D to drive a servo
remember I'm not a pro....
forgive just trying to understand what your doing here.
instead of using the LDR as a A/D input (which the 29 does not have)
when the amount of light causes the voltage to over come the the pull...
Were I'm from a "mader" is ripe when red but still firm
but we do eat them fried when still green :)
I been using 20pf ceramic load caps with 4 mhz 20pf crystal I have read here and other places that 18-22pf will work OK in most cases.
My ? is with all the different "types" of caps is the ceramic...
not sure if this is what your looking for but is what I do with my camera
ON INTERRUPT GoTo TAKEPIC 'ON PIR TRIP WAKE UP
INTCON=$90 'ENABLE .2 INTERUPT
I dropped the PBP LanC read/write in to some of my generic PBP camera code
because I was able to read/ write with 1 pin like I do with the assembly code
I could just drop the PBP version in the...
Larry 676 does not have hs_osc so it would not compile thanks for trying
BUT:
I'm up and running (cross fingers)
remember I said something about adjusting to midpoint of the bit
well I did...
Larry no the cam did not turn off, it just "did nothing"
But I really be leave the problem is in the tight time this needs and my 4mhz
maybe my problem with using PBP code. I no were near smart...
Sorry but I'm just not having any luck with this.
look this over and see if I missed anything.
hardwire:
1k resistor from portc.5 to Lanc line
1k resistor from portc.4 to Lanc line
Lanc...
Yep
that about how I run mine
power up pic & camera it take a 10 sec. test movie then powerdown
until INTERRUPT from PIR
change 470 res. to 1k on each pin .no pull down res.
I will try to...
OK
just let me know when and were you post the corrected code and I will try to test for you
Thanks for working and sharing this.
My Lanc controller programed in assembly and using 1 pin to read...
Right
and I not sure but:
should line 58 be pauseus 208
and should there not be
pauseus 104 between line 141 and 142
48 Command_byte2: 'tell camera that a command is to follow special...
Sorry no luck
I even tried it with my hc42
the only thing different is I'm using a 16f676 XT_OSC @ 4
were you @ 10
right now I'm trying to keep all my camera in the woods. I ran and got a...
I have spent a few hours on this and the only way that I can even get it to work sometimes is: read and write with the same pin
This is the way my Lanc controllers that I build work programmed in...
very interested in this
pm sent
Works for me
but like HenrikOlsson said make sure you have 12f675 selected
16f628 is the default on mine
'****************************************************************
'* Name :...
maybe this will help
http://www.picbasic.co.uk/forum/showthread.php?t=543
I use a lot of PIR's with my motion activated camera's they put out a high 5volts when tripped I add a pull down resister and treat it a like a reg. input
if pir= 1 then do what ever
hope this...
I have a set that had about the same problem
I cheated and changed the power switch out for one that is double throw
one set of contacts controls the power the other open the circuit going to the...
thanks for the link
you second post answered my ?
I had seen code that had it and some that did not and now I know you just don't have to.
thanks
yep I just found out too, was going to edit my last post but NO EDIT
most of my programming is done with 12f629/75 , and 16f630/76
I have read that it is a good practices to added this define when using OSC
DEFINE OSCCAL_1K 1
my ? is do I still need to add
DEFINE...
thanks Darrel
not the one I was looking for but got me thinking that the kids mite enjoy seeing something doing something over looking at a LCD.
maybe a TV remote operating a servo motor.
most...