Jump to content

davidb

Member
  • Content Count

    161
  • Joined

  • Last visited

Community Reputation

8 Neutral

Profile Information

  • Gender
    Male
  • Location
    Ribble Valley
  • Interests
    Help slow the spread of #COVID19 and identify at risk cases sooner by self-reporting your symptoms daily, even if you feel well 🙏. Download the app https://covid.joinzoe.com/

Previous Fields

  • Boat Name
    Gladiator
  • Boat Location
    Garstang, Lancs

Recent Profile Visitors

3985 profile views
  1. Sunday, 28th Feb 2021 picture. Still standing!
  2. I was just going to say that, but you beat me to it!
  3. I also have that one and still find it a bit heavy in places, but a useful reference book once you have got going. As was said before, you absolutely need to have the device working in front of you to learn anything. I have also got "Programming Interactivity" by Joshua Noble on loan from the library but it is far too advanced for me, and I don't think I have got anything from it yet, but will hang on to it for a while. If you have the internet freely available there is a series by Paul McWhorter on Youtube which is at the other end of the scale, ie very very slow, but he does a ve
  4. I have taken it out and it is 2 seconds on and 2 off which is what I should have said it was in my last. it was 2000 millis that made it 1 ssecond changes. now I need to adapt it to make a timedelay for my button
  5. const long interval = 4000; Is making it isophase = 1second off and 1 second on. but the serial monitor is stopped, I'll try taking out the (currentMillis < previousMillis) now, thanks
  6. there is a useful looking timeout sketch in the elapsedMillis library which looks promising, but way above my pay grade at present, I am getting there very slowly. I have cleared out all the delays and various other redundant bits from my code and pasted the present version below with Jes's code tagged on at the bottom. It all compiled fine and when I ran it, I could not do anything with the blink speed which seems to be roughly 4 per second. I can't see where the following is used, so no doubt it is part of the problem: " const long interval = 1000;
  7. Believe me, in December, when I started this caper, nor did I have any idea what was going on. I thought i would plug the thing into a PC, download someone's ready made code from t'internet, tweak it a bit, then off we go. A fortnight ago I was for giving up, and then I re read my code, realised that the relays needed a LOW to work them and how to sort the if ... else arguments a bit better and now I have a thing which is protecting the boiler from boiling and giving me alarms when I want them for a total investment of £25 or less. And its kept me off the streets. The first
  8. my goodness, there is some knowledge on here! I came to the right place
  9. So, I shall have a go at this for a start, am I correct in thinking that the processor runs through the whole program at it's best speed and each delay completely stops the process for that ampunt of time? The blinking alarm light is perhaps the main feature of the project because it gives a remote indication of the need to attend to stoking, but that could easily be replaced with a flasher unit (like in an old car indicator) unless a separate flashing loop could be run within the Arduino.
  10. you will enjoy it - the hours fly by, but you will have something to show at the end of it!
  11. You are are right there is nothing time-critical. in fact the delay for the button is going to be set to 20 minutes because it takes at least that long to regain it's heat. The overheat thermostat triggers the storing pump virtually immediately so that would have been an issue, but it definitely won't overheat when it is needing stoking.
  12. Thanks again, Perhaps I need to read up on interrupts before I pursue this further? I have no idea about them, but have an idea that they have something to do with computer keyboards? I have zero experience of programming since my ZX81 ! So I have a very long way to go, but it has been most satisfying to find that what I have done so far actually works, and works well. https://www.youtube.com/watch?v=aMato4olzi8&list=PLGs0VKk2DiYw-L-RibttcvK-WBZm8WLEP&index=28&t=802s "buttonNew = digitalRead(readBut); if (button
  13. Perhaps I out to upload the sketch somewhere rather than cluttering this forum with it? But I haven't a lot of time at the mo, so I shall do that tonight and reply to your questions. if (buttonOld ==0 && buttonNew==1); is part of a trial which I haven't finished yet. There is a version connected to the boiler which works properly without any working code for the button. Thanks for your very quick replies, here is the full sketch to be going on with: int myPin = A2; // INPUT Analogue Sensor int stoke = 2; // INPUT Stoking Temp Sensor (Bottom
  14. Hello, sorry to hi jack your thread, but I thought it might get attention from some - one who could help. I have programmed an Arduino UNO to control a farm outhouse boiler via relays ( which need to be set to LOW to energise) and it is working well apart from a problem with the alarm cancel button which has absolutely no effect. Can anyone here help me solve it it please, there is probably a simple answer and it will stop me going round in in circles like this code seems to be doing. I Have got a pull-down resistor on the button which solved an intermittent print problem on the ser
  15. Please let us know when you get a result.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.