Search results

  1. S

    multitasking

    yes increasing step value works, thank you
  2. S

    multitasking

    Yes the pin B.4 was the problem. I have excluded it from motor sequence and now motors and servo work at the same time, however servo sweeps slow, 4seconds from one end to the other. Changing value of pause to 2 makes sweep 2sec. Here is simplified code where motors just run forward without any...
  3. S

    multitasking

    Hi Hippy, here is my code according to your example: symbol varA = w0 Do For varA = 76 To 200 Servo b.4, varA gosub buggymove Next For varA = 200 To 76 Step -1 Servo b.4, varA gosub buggymove next Loop pause 20 return buggymove: low B.0,B.1 'motor forward...
  4. S

    multitasking

    I have seen an obstacle avoiding robots on youtube. Some are based on 28x1 chip. The servo keps going left and right while driving. How this can be achieved with flowchart commands? If not flowchart then can someone show me how to do it in basic please?
  5. S

    repeating procedure using inc Var

    my understanding was that a new loop is a new lop regardles of what happened in previous loop, but looks like that is not the case.
  6. S

    repeating procedure using inc Var

    Oh I understand now, adding expression box VarA=0 after wait10 thank you
  7. S

    repeating procedure using inc Var

    no because this is happening in simulation too with circuit off. Could be a software glitch or a permanent conflict with this particular code/flowchart?
  8. S

    repeating procedure using inc Var

    so when you simulate does it repeat procedure twice after each start or only on first start? and on second and each consecutive start does it go to "no" at compare?
  9. S

    repeating procedure using inc Var

    yes I drive two motors at the same time, the chip is pic16f886
  10. S

    repeating procedure using inc Var

    I don't get syntax error, it downloads Ok
  11. S

    multitasking

    I have a pic16f886 chip, is it possible to run 2 motors and play tones at the same time?
  12. S

    repeating procedure using inc Var

    when I have this flowchart open I click file and save as and this is what I have attached here. Here is a BASIC conversion: main: Cell_7_5: ; No setup required gosub prc_motor_runs_f_and_back inc varA if varA = 2 then goto Cell_7_9 (wait10) end if goto Cell_7_5...
  13. S

    repeating procedure using inc Var

    plf file is attached
  14. S

    repeating procedure using inc Var

    Hello, The program runs the procedure twice and goes to wait 10 and then start again, but this time it doesn't repeat the procedure anymore. It goes through the "no" line and back to start. It keeps going continuously disregarding the compare cell. I thought that new loop should repeat...
  15. S

    Control relay with distance IR sensor

    Sensor output is between 0.3-3V. I've read in some manual that the analogue input voltage range can be the PICAXE power supply range. Below is approximate schematic without power supply (to not complicate), it will be powered by 5V. Basically sensor output to one of picaxe inputs and...
  16. S

    Control relay with distance IR sensor

    Hi everyone. I'd like to switch relay on/of using Sharp IR proximity sensor GP2D120XJ00F ( 3 wires:Vcc,GND, Vo) and PIC 16F886 chip. Both sensor and relay are powered by 5V, relay current is 27mA. Sensor's output varies between 0.2V-2.9V. Are any resistor needed on PIC's input /output? Can I...
Top