Recent content by Hairy Animal

  1. H

    Multi-tasking dual pump controller

    Hi Hippy, you're absolutely right that it's the code execution time that's confusing the issue, but decreasing the loop_ms time makes it worse as the execution time is a bigger percentage of the total time. I've increased loop_ms to 100ms and found that instead of 60 seconds I was getting 72...
  2. H

    Multi-tasking dual pump controller

    Many thanks Hippy, I've edited the code as suggested but now instead of a 60 second delay, it's about twice as long at 130 seconds, and the 3 minute delay is approximately 6½ minutes. I haven't tried the 10 minute delay as I didn't want to wait for nearly 20 minutes. So something's still not...
  3. H

    Multi-tasking dual pump controller

    One month on, I've managed to get my PC working again since it destroyed itself after an operating system update, and have sorted out hardware issues with the PicAxe control board, which works nicely now. I've taken your nice code Hippy and adapted it to my hardware, I believe without changing...
  4. H

    8 Digit Display with 74 HC595 (Ebay)

    Some time ago, Hippy and others were very helpful in writing some very elegant code for the very cheap but similar MAX7219 displays I was trying to use, see "Pixel scrolling of a text message on 8x8 LED matrix displays with a MAX7219". They don't need continuous refreshing and the PicAxe is fast...
  5. H

    Multi-tasking dual pump controller

    That's really helpful. Thanks very much Aries and Hippy, I'll try that once I've sorted out why the hardware is doing strange things.
  6. H

    Multi-tasking dual pump controller

    Thinking further about this myself, I've added six second delays in tasks 1 and 2, and suspended task 0 when it's finished the initialisation. Hopefully it might work so I'll give it a go.
  7. H

    Multi-tasking dual pump controller

    Hi, I'm trying to make a (relatively) simple dual pump controller which essentially has two water sensors and two pumps each pumping water from different areas. I want each pump to start independently only after its sensor has gone high (sensed water) for at least a second, and continue...
  8. H

    Simple(?) 08M2 input problem

    Thanks very much Alan. I especially like the 3-level approach, it's very elegant. I've done something similar in the past when I had three float switches with on/off positions but didn't want to tie up three input pins, but by means of varying sized resistors converted the various water levels...
  9. H

    Simple(?) 08M2 input problem

    DOH! Yes of course it does - many thanks for that and the helpful code and apologies to 'Technical' if that's what you were saying but I didn't understand. What a great forum this is. Thanks everyone.
  10. H

    Simple(?) 08M2 input problem

    Thanks also. A quick and easy sanity (and hardware) check which does indeed prevent the 08M2 booting when the switch is held in the 'up' direction. So it does confirm that the hardware is working as designed. I can't see any confusion with the SEROUT or SERTXD. Obviously I can't use SERTXD...
  11. H

    Simple(?) 08M2 input problem

    Thanks for your reply. It is exactly what I intended. With the other direction of the switch, it repeatedly shows 'D' while the switch is held in that direction and is blanked as soon as I release it, but nothing happens in the 'up' direction.
  12. H

    Simple(?) 08M2 input problem

    Hello ever helpful experts. I'm totally baffled by what should be a really simple circuit/software using a centre-off toggle switch to select up in one direction and down in the other. Basically, the 'Down' direction of the switch works fine but not the 'Up', using the serial-in pin, C.5. This...
  13. H

    Problem using AXE133 spare outputs

    I'm not sure why I missed this previous note of yours Alan - I'd have sorted the problem a little sooner if I had - but I'm most grateful to both of you for your time spent helping with this.
  14. H

    Problem using AXE133 spare outputs

    Note to Rev Ed people - maybe the documentation for AXE131 and AXE133 should be updated as the commands shown on, for instance, p.4 of AXE131.pdf don't work as published?
  15. H

    Problem using AXE133 spare outputs

    GENIUS! Thanks Neil, it now works perfectly using your code slightly modified: main: do serout c.0,N2400,(255) serout c.0,N2400,(%100) ;Turn on LED pause 100 serout c.0,N2400,(254,128,"LED on") pause 5000 serout c.0,N2400,(255) serout c.0,N2400,(%000) ;Turn...
Top