Search results

  1. C

    Parallel Tasks

    After tinkering with Picaxe Touch for a while, I found that TTP223 was a much more reliable touch switch, and cheap and simple too.
  2. C

    Best way to generate an accurate 1Hz signal?

    I was going to suggest MSF clock (see post 36 here and hardware) but stumbled on this - simpler and cheaper. That one's in Canada, expensive postage to UK but I'm sure similar things exist elsewhere.
  3. C

    Another problem with a new installation

    That's the magic potion that I needed. Thanks for all the tips. I think the touchpad has to go; there's a wireless mouse nearby...
  4. C

    Another problem with a new installation

    New computer with a super sensitive touchpad that I haven't yet completely mastered. Somehow, I have messed up the two panes on the left side of the window, "Workspace Explorer" and "Simulation". I can put them both side by side, full height, at the left side or floating anywhere but that...
  5. C

    PICAXE-08M2 DAC sample rate

    DAC 100 only exists when the #DEFINE DAC 100 ... line is used. Check it in the simulator.
  6. C

    PICAXE-08M2 DAC sample rate

    It's easiest understood IMHO starting at the bottom: The line DAC 100 in the DO...LOOP is replaced by DAC 50 DAC 50 because of the #Define DAC 100 line. Then those DAC 50s are in turn replaced by DAC10 DAC10 DAC10 DAC10 DAC10 twice because of the #Define DAC50 ... line. Then each DAC 10 is...
  7. C

    Syntax error

    Your lines symbol DISTANCE_THRESHOLD = 2 symbol ALL_SENSORS_PICKING_UP_OBJECT = 1 defin the names DISTANCE_THRESHOLD and ALL_SENSORS_PICKING_UP_OBJECT as constants that have the values 2 and1 throughout the program. Putting a ; in makes the line a comment. To set the name as a variable, use...
  8. C

    Simulating macros

    When stepping through a program with Macros, the simulator goes directly from the line with a Macro name on to the next line in sequence, not displaying progress through the Macro line by line. Is there a way to alter this behaviour?
  9. C

    Install trouble PE6 on new windows 11

    Did it for me on hardware, thanks!
  10. C

    Install trouble PE6 on new windows 11

    When I run the installer, it pauses to ask permission to install .NET (which I think is there already) then after clicking OK, the wizard comes back to say it was interrupted and is stopping. What should I do to get it to continue?
  11. C

    PIR sensor

    This PIR runs on anything 3-15V and gives high/low output that can be connected direct to a picaxe input if the supply voltage is kept suitably low.
  12. C

    syntax error

    Surely it's meant to be "sertxd"? But fixing that raises "If without endif" error on the next line. Putting endif where that big space is can fix that; is that where it belongs?
  13. C

    Testing variables for ~ equal

    Many thanks for that. My rudimentary tests show that it works exactly as I specified. Here's a version that would be easily adapted for other criteria: SYMBOL test = b1 SYMBOL oldmn = w1 SYMBOL newmn = w2 SYMBOL diff = 4 SYMBOL diff2 = 2*diff SYMBOL rollo = 1440 oldmn = 0 newmn = 1438...
  14. C

    Testing variables for ~ equal

    Is there a neat way to test if 2 variables are different by less than a small amount? For my application I need to be able to test across a rollover as well. The application is an MSF clock. This normally returns time in hours and minutes. I convert that to total minutes, a word variable mn in...
  15. C

    Inputs over 5V

    I had thought the minimum voltage for Vih was more than 2V (should have looked it up!). The 'actual 12V' can be 10-15V so I can happily arrange the pin voltage to be 3.3-5V or a bit less for safety with a voltage divider. Thanks.
  16. C

    Inputs over 5V

    I'm planning a monitor/alarm module for a diesel engine with nominal 12V alternator and lead-acid battery. Some digital inputs to a 14M2 will be at the alternator/battery voltage which could conceivably be between 10 or 11 and 15V. Is this from post 4 in this thread be the sort of circuit that...
  17. C

    Reliability of Piranha RGB leds

    They were new when they were installed. Now over 10 years old. There's no active cooling but nothing nearby to heat them either. I was aiming for 15-20mA in each LED. It's not practical to measure current in each LED but they all appear to be similar brightness when working correctly. Derek
  18. C

    Reliability of Piranha RGB leds

    Since 2010, I have built several Mood lights using up to 32 Piranha RGB leds. Intensity of R, G and B is regulated using PWM at 250Hz or 1kHz using either 3 08Ms or in later versions a 14M2. A power MOSFET drives each colour. Recently, two of these lights have developed an intermittent flicker...
  19. C

    Picaxe communication

    Not quite but I easily achieved 5m using straight 3 core cable. https://picaxeforum.co.uk/threads/utilities-for-mobile-homes-boats-etc.32477/ If longer cable struggles with the data, reducing the baud rate should help. Derek
  20. C

    Interrupt not working

    Agreed. Another pet hate of mine that I encounter from time to time is to describe the same thing with different names at different places in the text. It's a fine linguistic device in literature but in technical work, it just serves to confuse the non-expert, that's me! Any technical authors...
Top