#48 Wireless 433Mhz Rain Receiver with MP3 player and LCD

Sdílet
Vložit
  • čas přidán 11. 08. 2016
  • Oh no! It's raining and the washing (or cat) is still out! It's VERY easy to create a wireless rain sensor that communicates via a 433Mhz (or 315Mhz) wireless link giving you that all important heads-up that the weather has changed.
    This is the receiver part of the project (still on breadboard as the custom case has not yet arrived) that receives via a 433Mhz link the temperature, the humidity, whether it's raining (and the level of rain falling) and the light level too just for good measure. Oh, and it has a capacitive touch sensor just for good measure. Well, why not?
    If you haven't seen video #46 which describes the transmitter part (and before that video #44 which describes the thought processes that went on before building either component) I invite you to watch them now!
    I'm moving all my code and links to GitHub so here is where you can find everything for this project:
    github.com/RalphBacon/Wireles...
    If you like this video please give it a thumbs up, share and if not already subscribed please do so :)
    And my channel is here:
    -----------------------------------------------------------------
    / ralphbacon
    ------------------------------------------------------------------
    How can I remember this? Memory tip: "See" Ralph Bacon, geddit?
  • Věda a technologie

Komentáře • 22

  • @juanherrero911
    @juanherrero911 Před 7 lety +3

    Excellent project Ralph. I'm working my way gradually through most of your videos, which are not only very informative, but very well produced.

    • @RalphBacon
      @RalphBacon  Před 7 lety

      +Juan Herrero
      Very nice of you to say so, Juan, y muchas gracias. If you have any questions regarding the code (sketches) or hardware feel free to put a question in the video comments and I'll do my best to answer.

  • @maxximumb
    @maxximumb Před 8 lety

    Thanks for another informative video.

    • @RalphBacon
      @RalphBacon  Před 8 lety

      Hi Maxx, I'm glad you found it informative. What I've discovered is that real projects (as opposed to breadboard quick knock ups) take forever because not only am I actually building something for my own use but have to stop and film various stages. But if you (and others) like this one then I'm encouraged to continue doing it, so thanks for posting.

  • @julianblow4739
    @julianblow4739 Před 6 lety

    You know why I love arduino? I'm watching your video on a rain receiver to help me make a halloween prop animatronic crow. I want to start making an automated herb garden, maybe add email notifications to it too

    • @RalphBacon
      @RalphBacon  Před 6 lety

      And good luck with your project, Julian. Don't forget to watch other videos that describe other ways to send data, such as the nRF24L01+ (limited to 32-bytes chunks but very reliable). Whichever way you go, the best of luck. Thanks for posting.

  • @neilnagel9857
    @neilnagel9857 Před 4 lety

    Hi Ralph, excellent video and great project. Just a couple of questions about your code. The way of turning your debug routine on and off is excellent. However, when I pasted your template on lines 124 through 135 and included the define "isDebug true" on line 28 into my project, my compiler for my nano didn't like it - wouldn't compile. I looked all through the rest of the code but didn't see anything else that referred to the debug routine. Is it part of the libraries that you had included in your sketch that I'm not using in mine?The other question I have is you and other experienced programmers use defines for your variables. I think I read somewhere that it's not a good idea to use defines. Could you explain why you use them?I'm working my way through all your videos. I started at your first one and am up to about #50. Through the 1.5 years I've been hooked with the Arduino bug, I've read countless tutorials and seen 100's of videos. Ralph yours are the best. I've read a lot of your blog and comments on your videos and it appears my thoughts are shared by everyone viewing them. Thanks.

    • @RalphBacon
      @RalphBacon  Před 4 lety

      Thanks you for your kind words about my videos and blog, Neil. It's always good to get confirmation that what I'm doing is a Good Thing and I'm not wasting my time!
      I don't know why the Arduino IDE would object to a #define (note the # at the start of the word). And there is no equals sign after either. Or semicolon afterwards. So it's just:
      #define isDebug true
      Used in a gazillion places in all C/C++ code. It's a Good Thing to do as it stops what are known as 'magic numbers' or 'magic strings'. For example, the following, totally imaginary line:
      getCoordinates(81,6,"F146a");
      means what? That's right, absolutely nothing. What if you had that call 50 times in your code? And now you wanted to change the first value from 81 to 79. Yes, 49 edits later you have a bug in your code as you missed one.
      Now this:
      getCoordinates(leftPos, rightPos, msgString);
      is so much more meaningful without having to decipher those magic values. And there is only one place to amend it!
      The compiler makes a note of all #define values and substitutes them exactly as found wherever it finds that value. Pure text substitution. Then it starts the compilation process. So the resultant code is no bigger or better than without the #defines but it makes it _much_ easier to read, debug and maintain.
      In a commercial environment, no hard-coded values are allowed.
      Great question, I hope this explanation helps, Neil, great to hear from you.

    • @Roy_Tellason
      @Roy_Tellason Před 4 lety

      @@RalphBacon I've seen other code where, for example, a particular pin was defined by using an int. This is not good because it ends up in the runtime code. Using a #define on the other hand, you're telling the compiler what you want in there, and no code space is used up to do that.

  • @pintokitkat
    @pintokitkat Před 7 lety

    working my way through the videos, I love them. your house sounds like mine - full of 'really useful' gadgets. One little criticism, though, if you insist on putting the comment, like and subscribe sting on the end, don't say it all at the end of every video as well. my suggestion would be to bin the sting. DRY. DRY. DRY. (irony)

    • @RalphBacon
      @RalphBacon  Před 7 lety

      Sting, Andy? Just an invitation, surely? There's no pressure! But the "yellow" bit at the end of every video is obviously a standard piece (changed recently, actually, just to update it) and CZcams actively encourages this! A "call to action" as they grandly call it. The question is, were you called to action or just irritated by it? Seriously, if it's that annoying then I really ought to rethink it. CZcams doesn't know everything. PS love the "DRY" irony!

    • @pintokitkat
      @pintokitkat Před 7 lety +1

      Sorry, no offence meant. A 'sting is what we used to call little bits of video we always patched onto the beginning or end of main videos when that's what I did for a living. It's probably just a personal thing, but I'd prefer your call to action to be delivered by you as a personal, natural end to your videos rather than the vivid yellow splat.
      I love the fact that Benny (Top Cat homage?) helps with the Arduino stuff and that you build a lot of it for his benefit. Gromit has always been my hero.
      I'm about a quarter of the way through your vids at the moment - sort of bingeing on them. Brilliant. Keep up the good work.

    • @RalphBacon
      @RalphBacon  Před 7 lety

      None taken, Andy! I understand now what you mean - it's just CZcams is quite pushy about "generating a brand" which includes a trailer, although I occasionally do end up repeating it in the main video too (oops, not DRY at all). Depending on which order you're watching the videos you'll see the trailer change at around the #70 mark I'm guessing. Anyway, great to have you along, and do enjoy the rest of the videos!

  • @stmohir
    @stmohir Před 7 lety

    Hello,
    Thank you for your great videos, i enjoy them and learn a lot,
    2 questions:
    1. Why do you need to add the
    2. in the onlinetonegenerator.com/ there is no save button, how did you save them?
    Thanks Again

    • @RalphBacon
      @RalphBacon  Před 7 lety

      Hi Mohir, glad you like my videos. To answer your questions:
      1. I include the in some of my sketches because I use a different IDE (editor) that does not include it automatically. If you use the standard Arduino IDE it hides this from you but includes it. If I did not include it in my editor (Eclipse with Arduino plug-in for those interested) I would not be able to use the Arduino-specific commands and constants such as "INPUT_PULLUP" and "OUTPUT" as well as functions like min(a,b).
      If you want to see this file (it's just a C++ header file) look in
      C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h
      (assuming you're using Windows. I've no idea where Mac users put stuff, sorry).
      2.No save button on that web page? What's that big blue button right under the tone box? Next to the big red button that says STOP? I guess you must have missed it! I would say it's easy to miss, but, well, I'd be lying :)
      Anyway, that's a great question about the header (I'm surprised others haven't asked it) and I hope my answer helps you and others understand why I do it. BTW if you include that library more than once no harm will result as it knows it has already been included so won't repeat the inclusion.
      Thanks for posting Mohir, hope to see you here again. As they say, Don't be a stranger!

    • @stmohir
      @stmohir Před 7 lety

      Thank you for your reply,
      There is indeed a big blue button on the tone generator page, and i didn't miss it ;)
      but not on the voice generator, and i saw on the video you used the voice generator

    • @RalphBacon
      @RalphBacon  Před 7 lety +1

      Oh, THAT page , oops.
      Frankly I cheated. I wasn't after hi-fi so I just recorded it from my bluetooth speaker held close to the microphone I use to record my videos.
      The other way to do it would be to install an audio capture program onto your PC so that everything your sound card generated would be recorded into a file. Such programs are quite easily found and cheap (or even free perhaps for short clips). I was just after a quick result so my method was sub-optimal (but actually works very well!).
      So after all that it was ANOTHER good question you raised, so thanks for that, others will see my clunky workaround but also see my alternative method so they may benefit too. Thanks for posting, appreciated :)

    • @stmohir
      @stmohir Před 7 lety +1

      :)

  • @bastamanibrahim5478
    @bastamanibrahim5478 Před 3 lety

    Lost time to hearing the long talking...there is no circuit, no drawing...no added value !