Hi everyone first post. I very recently delved into the world of picaxe. I am building profmasons 08m datalogger and have a couple questions/ problems.
First off i built the regulated supply put it into a project enclosure. Than i built the circuit on a proto board from rev ed but when i test the switches
using this program
main:
if pin3 = 1 then goto LEDON
if pin4 = 1 then goto LEDON
low 2
goto main
LEDON:
high 2
goto main
The LED stays lit. But if i run my hands on the bottom of the board i can get the led to go out and press the buttons and it lights up.
I switched out switchs to ones with a higher open restsiance same thing. I than put it on a bread board to see if it still happens and took the switches out of the equation and touched two wires together from +5v thru a 1k ohm resistor and than into pins 3 and 4 same problem.
next problem i have is when i downloaded a chip with actual data logger program:
symbol samples = 50 ‘The number of samples to take (<=200)
symbol adc = 1
symbol counter = b2
symbol led = 2
symbol interval = 100 ‘time between taking samples in ms
main:
if pin3 = 1 then takedata
if pin4 = 1 then readdata
goto main
readdata:
for counter = 1 to samples
read b2,b0 ‘read the data
sertxd (#b0,”,” ’send the dataout to the terminal
next counter
goto main
takedata:
high led
for counter = 1 to samples
readadc10 adc,w0
pause interval
write b2,b0 ‘write the data to eeprom
next counter
low led
goto main
i get an error in the sertxd line and have not found anywhere in the manual or online that explains it..
thanks in advance
paul
First off i built the regulated supply put it into a project enclosure. Than i built the circuit on a proto board from rev ed but when i test the switches
using this program
main:
if pin3 = 1 then goto LEDON
if pin4 = 1 then goto LEDON
low 2
goto main
LEDON:
high 2
goto main
The LED stays lit. But if i run my hands on the bottom of the board i can get the led to go out and press the buttons and it lights up.
I switched out switchs to ones with a higher open restsiance same thing. I than put it on a bread board to see if it still happens and took the switches out of the equation and touched two wires together from +5v thru a 1k ohm resistor and than into pins 3 and 4 same problem.
next problem i have is when i downloaded a chip with actual data logger program:
symbol samples = 50 ‘The number of samples to take (<=200)
symbol adc = 1
symbol counter = b2
symbol led = 2
symbol interval = 100 ‘time between taking samples in ms
main:
if pin3 = 1 then takedata
if pin4 = 1 then readdata
goto main
readdata:
for counter = 1 to samples
read b2,b0 ‘read the data
sertxd (#b0,”,” ’send the dataout to the terminal
next counter
goto main
takedata:
high led
for counter = 1 to samples
readadc10 adc,w0
pause interval
write b2,b0 ‘write the data to eeprom
next counter
low led
goto main
i get an error in the sertxd line and have not found anywhere in the manual or online that explains it..
thanks in advance
paul