Recent content by nanogear

  1. N

    How to exit loop when touch sensor "pressed" for two seconds??

    In this subrutine: 08M2 subturnoff: low B.2 pause 2000 high B.2 , B.0 time = 0 do touch16 [TOUCHCONFIG], C.4,w1 loop until w1 > 3600 goto main How can I make that the picaxe exit loop until w1 >...
  2. N

    Touch sensor interrupts when pressed for 2 seconds

    Hello, I have this code: #PICAXE 08M2 symbol TOUCHCONFIG = %00001001 ;time = 0 main: ;pause 100 touch16 [TOUCHCONFIG], C.4,w0 if w0 > 3600 and time = 2 then goto subrutine else goto main endif return subrutine: low B.2...
  3. N

    Touch sensor and interrupt with a picaxe 08M2

    Hello and thank you in advance... Well, I have a code that activate and deactivate two relays. This code is a state machine running depending on the values of a certain sensor. All automatically without human intervention. I am trying to use a touch sensor that, when pressed and released...
  4. N

    Help to improve and make it stable this code

    Here is the video but this is strange... I tried to show you when the code crash or when not doing what I want without success. So, the video show the debug, the circuit and the oscilloscope doing all good.
  5. N

    Help to improve and make it stable this code

    Hello, And thank you in advance to all. This code works fine but in some cases fail. An expert who know how to improve some details like add some pauses or something to make it stable that want to help me?. I am learning a lot but I know that there are people who knows the pros and cons or...
  6. N

    How to define a timer or a time counter?

    Hello, Imagine that I have a light sensor connected to a 08M2 and change the state of a pin dependent of the condicional of b0 defined by the sensor. main: readadc C.1,b0 debug b0 pause 500 if b0 > 20 then sub1 ; if b0 >...
Top