Recent content by john green

  1. J

    Response to pin inputs

    (apologies for not replying sooner - I tried to change my email address and managed to lock myself out of the site...) Thanks to you both for the further suggestions which I do appreciate for my further understanding. The following is the basis of what I have used and which with some testing...
  2. J

    Response to pin inputs

    Thank you for that suggestion Oracle. I will record that information for future use. For the present project, (stopping a incoming water supply and sounding an alarm in the event of either of two pumps failing but with some easily adjustable parameters) the code as discussed above is perfectly...
  3. J

    Response to pin inputs

    Thank you Aries. It's been quite a while since I last did this and it seems the brain is getting a bit rusty! I had too many 'if's ie: 'If pinC.0 = 1 and if PinC.1 = 1 and if pinC.2 = 0 then...' The 'goto' is to then get to different routines depending on the above test of inputs. Now it works...
  4. J

    Response to pin inputs

    I have frequently read pin values using ADC and then created outputs depending on the resulting values. Is there a more direct way such as in effect being able to say 'If pinC.0 = 1 and if PinC.1 = 1 and pinC.2 = 0 then goto...'? or similar combinations of multiple pin inputs? I'm worried...
  5. J

    error with 50 Hz as a clock time base

    Once again, my thanks to you both. Since asking the original question I think I have doubled my knowledge on coding for picaxe! I had better see what else I can find to challenge you with - but not for a few days...
  6. J

    error with 50 Hz as a clock time base

    Again my thanks for all your input. From AllyCats earlier suggestion of not using the opamp or comparator, I rebuilt the circuit using a voltage divider and resistor before seeing Buzby's similar suggestion. This now works as I had intended and for all the argument or discussion about the long...
  7. J

    error with 50 Hz as a clock time base

    Thank you all for the further responses. My curiosity is primarily to understand why the expected code is not working as it should and as of now, I am still far from sure but I'm working on it... @Buzby The interrupt procedure in my code is just to allow fast forwarding the clock to a desired...
  8. J

    error with 50 Hz as a clock time base

    Thanks for that rq. The output on the scope is as perfect as I would ever expect from any opamp and the error I think too consistent to be caused by that. I cannot see it likely that the op amp would only occasionally - but regularly! - send an erroneous output. Having looked at it very closely...
  9. J

    error with 50 Hz as a clock time base

    Following through with my enquiry of a few days ago about using RTC's I thought it would be interesting to try and use 50Hz as a time source. As a test I have tried to achieve getting 30 second pulses to drive a vintage slave clock and now also a also a mechanical counter to confirm that the...
  10. J

    Communications between devices...

    AllyCat, I promise I am not in anyway gloating at your misunderstanding given that in respect of this subject, you are unquestionably one of the experts and I, in reality fast approaching the biblical three score and ten, have pangs of childlike anxiety in the face of my own ignorance. The...
  11. J

    Communications between devices...

    "Why do you suggest the PIC620A which isn't a PICaxe and doesn't appear remotely suitable for devising your own display?" I beg to differ :) I only suggest that as it's what I have from previous projects (though it is PIC16C620A with the added 16!) and was most certainly purchased from the...
  12. J

    Communications between devices...

    Many thanks to you all for those very instructive responses. It was finding a couple of DS1302 modules in my possession that inspired the ideas that are now developing far faster than is my understanding of the required coding but it certainly seems very clear that using this particular device...
  13. J

    Communications between devices...

    I have used picaxe for some years for managed to create many successful and effective projects but so far have avoided using any serial data functions other than setting up a digital display exactly as explained in one of the manuals and managing to make this present the correct information but...
  14. J

    Has an input arrived anytime during the a time period?

    Many thanks to both of you. I am a little surprised that there is not an alternative but I can work with that. And yes, I do need to refine the details to ensure reliability which invariably follows getting the basics up and running.
  15. J

    Has an input arrived anytime during the a time period?

    To troubleshoot a problem, I wish to remotely determine and indicate whether an object moves more than a small distance left to right or visa versa. Using optical sensors for example, I can easily achieve digital outputs (similar to a shaft encoder) that will give high outputs in one order or...
Top