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...
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...
I am using a BCX38C to control the Reed Relay. When the pin on the Picaxe 20m2 is low is there any current draw from the picaxe circuit? I tied a 10k resistor to ground to make sure when the pin goes low the transistor should close all the way. I need all the battery life I can save so I dont...
I am trying to understand how to use the TIME variable on the Picaxe 14M2 and 20M2 chips. As I understand it it works as a true second counter that I can reset at will. So will something like this work??
EnableTime
if PirInput = 1 then
pause 29
if PIRInput = 0...
The Picaxe Manual #2 is not real clear as to what pins a SETINT can be done on a 08M2 chip.....So I will ask you PROs....What pins on the Picaxe 08M2 chip can I do a SETINT on??? Thanks in advance for all your help....Jim
I am trying to set a interrupt on pin # c.4 on a Picaxe 20M2 chip .... I want it to only check pin c.4 and I want the interrupt to occur only when pin c.4 goes High. The correct binary code is SETINT %00010000, %00010000 Is this correct? and a Interrupt can be set up on c.4 can't it...
I am reading the manual on the 14M2 Chip and it says a interrupt can be set on inputs 1,2,and 3. Does that mean c1, b1 or what??? Really confused because I am new at this. Thanks in advance for any help