hi I have been writing a program to push a button using the if pin to get the program to switch between a 1+15minutes (hour time )and a 2hour time the problem is that it works fine on the simulator but when transferred to 08m picaxe it does not run on the two hour section ? Another problem that I over come was by using a reduction drive small motor as at the start of running it does 2 little jumps on ,there is not enough energy to move the motor
Can any one come up with an answer page 25 section 3 of the manual is being used to use the switch ??
So to recap the 1.15min section is ok the 2hr ?? why ??
The 2hour section is a copy of the one hour section with just the next loop extended
Can any one come up with an answer page 25 section 3 of the manual is being used to use the switch ??
So to recap the 1.15min section is ok the 2hr ?? why ??
The 2hour section is a copy of the one hour section with just the next loop extended
Code:
main:' 1 June 2021 to turn on Clear click by press the button down
pause 2000
if pin3 =0 then one
if pin3 =1 then two
goto main
one: 'turn motor on first push button on
high 0 'turns 0 on
pause 770 'rotate motor
low 0 'turn off 0 and motor
for b4 = 1 to 75 ' start of next loop (75 is 1 hr 15 minutes)
wait 60 ' 60 seconds 1 minute
next b4 'next loop
pause 200
high 0 ' turn on 0 / turn motor on and push button
wait 1
pause 999 'rotation of motor to new position
low 0 'turn off 0
end
two: ' turn motor on push button on
high 0 'turns 0 on
pause 770 'rotate motor
low 0 'turn off 0 and motor
for b4 = 1 to 135 ' start of next loop (135 is 2 hr 15 minutes)
wait 60 ' 60 seconds 1 minute
next b4 'next loop
pause 200
high 0 ' turn on 0 / turn motor on and push button
wait 1
pause 999 'rotation of motor to new position
low 0 'turn off 0
end