Thanks for the help Hippy. I appreciate it. So where I use w5 for the "Trailmode Timer" and w13 for the "Walktest Timer" you are saying I should name them as well instead of just using w5 and w13? Also do I need to use the w1, w2, w3, for my larger timers that use larger #s or is it ok to use...
My question is after you name the pins on the picaxe chip does it matter what order you list the variables? can you list the word variables before the bit and byte variables? I generally list all my bits then my bytes and then my word variables. A friend sent me the code below and I seen...
I am using a board I have designed for a trail camera. It has a PIR motion sensor that goes "high" when motion is sensed. Can that be on a General Input pin or does it need to be on a ADC input pin? Chip being used is a 14M2 Picaxe. Thanks in advance for your replies...
I am new to this and don't understand how the sertxd works. I just have figured out the basic stuff you see above...Maybe you guys can teach me how that works....Thanks for all your help.
ok...so I updated the code as you guys suggested and it work on simulation but when I load it on the chip and put it on the board it doesn't work in the project....I am at wits end. Any suggestions???
Basically the TIME is needed for refreshing the flash on the camera. If no critter walks in front of the sensor for and hour if its dark outside it will turn on the camera for a few seconds to refresh the flash capacitor inside the camera. Hope this makes sense. I am new to all this and...
Here is the complete code:
#Picaxe 18M2
Symbol DIP3 = pinB.0
Symbol DIP2 = pinB.1
Symbol DIP1 = pinB.2
Symbol DayLens = B.3
Symbol CamSht = B.4
Symbol CamPwr = B.5
Symbol Acc3 = B.6
Symbol NotUsed = B.7
Symbol CDSPwr = C.0
Symbol CDSRead = C.1
Symbol PIRInput = pinC.2
Symbol NightLens = C.3...
It's in a loop on the whole code. I will post the code in a few. Its a program that runs a trail camera with a pir sensor. We have always just used the Inc command and timed it out with a Nap 3....I just thought the TIME is always running anyway so I wanted to use that instead.
Does the TIME function work in simulator mode? I am trying to use the Elapsed Time counter on a 14M2 and simply can not get it to work. Doing something like this:
W0 = TIME ' recalling the TIME to W0
If w0 >= 3600 Then ' if 60 minutes has passed then 60 sec x 60 min = 3600
High CamPwr...
I am running a 14M2 chip from a 9v battery through a LDO voltage regulator. The LDO puts out 5v at 120mA....
I am having problems with the chip constantly resetting. Can this be due to the 120mA output from the regulator? Or is it most likely in my program??
Can I do a Interrupt on a 18M2 chip? In Manual 2 it has a 18M2 diagram but it doesn't tell which pins...I want to interrupt on pin C.2 and I want it to interrupt when pin C.2 goes high and only when C.2 is high. Would the code be SetInt %100000000, %100000000 I am deriving this by using all...