Arduino Weather Station - Internet of Things and the Particle Photon
Vložit
- čas přidán 28. 11. 2015
- For me, discussing the weather is more than idle small talk. So when I got interested in web-enabled electronics (the Internet of Things), I knew immediately that my first project be related to the first thing I do when I log onto my computer at work each day: check the weather. This "weather station" simply pulls weather data from the internet and displays it using analog electrical panel meters.
The brains of the project is the Particle Photon which is pretty much a tiny Arduino with a wifi chip. The actual weather station is made of a scrap of walnut. The panel meters have custom faces that I designed in DraftSight, which is a free cad program. The weather data is provided by Forecast.io.
By the way, November is Men's health awareness month. Life expectancy for men is around 5 years shorter than for women, mainly due to the fact that we are more reckless with our physical and mental health. If you haven't been to the doctor for a while, schedule a physical this week. You could find something that saves your life. And if you feel that you might be suffering from depression or another mental health issue, I encourage you to tell a doctor (even just your family physician). A mood disorder isn't part of who you are, it's a disease just like the flu, and there are lot of treatment options available.
Errata: The barometer meter face shown in the video has a mistake. I accidentally shifted it up by 100 millibar. The scale should actually read 960-1060 millibar, which will cover normal atmospheric pressure in most places.
Watch this video and the entire Practical Engineering catalog ad-free on Nebula: go.nebula.tv/practical-engine...
I use all Patreon earning to improve the quality (and quantity!) of videos: / practicalengineering
Code: github.com/gradyh/Photon-Weat...
Music: Marxist Arrow - Twin Musicom
Thanks: My brother's company for printing the panel meters (www.illuminidol.com/) - Jak na to + styl
Ah! Very cool.
Also, HUGE props for stepping up and talking about depression and encouraging people to get help.
I was tempted to subscribe, then the video took a sudden turn and started talking about health issues. SUBSCRIBED! Because not only do you know what you're doing and you're sharing it (which is why I subscribed) but you're a nice guy too. Thank you!
"Scrap of walnut". Up there with, "scrap of mahogany" that I have heard other US-based youtube wood workers say. In Australia that scrap is around $50.
Phew! Just a bit jelly of your access to cheap tools and materials. Great vid, well executed project. Love the pic and message at the end -- good on you.
Thanks for sharing.
4:32 The wire core goes through the hole on the solder pad (or in this case tounge). Put the core through, bend it 180 desgrees so it loops back on itself, then solder. This is to reduce mechanical stress on the solder joint since solder degrades quickly under mechanical stress, it's not just pulling on it but also small vibrations from your table fan or transporting it in your car.
Sometimes you can see this clearly if you open up old electronic boxes from cars. If there's through hole components there's a good chance you'll see a circular crack going through the entire joint at about a half of the radius from center. Heavy components like coils with ferrite cores or large capacitors usually have additional material to support them mechanically such as a plastic brace or glue, because those are what you'd expect to break if you shake the board, but smaller components are sensitive too because over time stress fatigue in the solder start to have a significant impact. If there are large connectors on the boards they tend to rely on the board staying perfectly in place inside the casing as well, a dangerous assumption in an automotive environment.
This has caught many manufacturers off guard, even SAAB where for example the cruise control module on SAAB 9000 randomly stops working after 10-20 years because the components are all through-hole but only mechanically secured through the solder joints and the conformal coating (a layer of "paint" over the board to prevent shorts and mitigate moisture affecting the joints). If your car starts having problems with an electronic control box, take it apart because this might just be the issue.
thank you for the PSA on mental and physical health. I love your channel. it's places like this on you tube that have encouraged me to pursue science.
Very well done! Sleek, organized, and compact. I like to stick my head outside my car door window, while driving, to get a reading on the weather.
Very nice, Grady! I'm enjoying how you integrate your electronics learning into your recent projects.
This is awesome Grady! Thanks for showing us how to do this. I love learning about your projects and seeing the cool stuff you come up with.
Kind of stumbled upon your channel in the search for knowledge, and i was not disappointed!
You sir, are awesome!
I'm just browsing around to read about Photon (me being non-experienced with Internet-of-Things) and came along your video. Very, very nice combination of realistic application and explanation of how it works / how it is done.
Both the project and the Men's Health announcement were more than worth while. Congratulations on the weather station, and the mustache. - Annie
I am an EE and software developer and over the years I have worked with civil engineers who were better electrical engineers and software developers than some people educated in those areas. Being into technology as a hobby I love to see any engineer stretching their knowledge by delving into other disciplines and I think we need more of that. Too many engineers are narrow-focused. Your videos are fantastic :)
Lol. I used to work with this guy. Funny we have the same taste in media. Hope you are well man!! 😅
Saw this little snippet of gold on hackaday. Very nicely done and beaut video! Great work.
Where did you buy those slick-looking panel metres :) ?
You should come to Britain, you would fit right in! We love talking about the weather, we have so much of it: wet, windy, sunny, warm and cold, sometimes all in the same day! You can go for a walk in the countryside in the morning, it's sunny and windy and pretty cold; then you come back into the city and it's clouded over now but the wind has died down and it's warmer. Just an example but I agree, I find the weather fascinating!
As a web dev, web development as a hobby is how I got started - it's fun.
Just stumbled on your channel today searching Arduino. Great videos Grady! You did very nice work on this one. Keep posting videos of your projects.
I'm studying Meteorology, and been looking for a way to get a unique looking weather station. This hits all those buttons. Thanks for sharing.
Nice job Grady, I really like your style!
LOVE those galvanometer displays!!! For all the time and effort that was spent with the software, you probably could have built an analog sensor for each of the readouts--temperature, rain accumulation, etc. Who wants to spend time on software!?!
Another great video! enjoyed the purpose, the build and all the details! great!!
Very well done. I might give this a go when I get some free time next.
Great video and fantastic production value! I just subscribed and look forward to your future videos!
Love your dials
I really like the weather and talking about it too...This is really great...And I want one...
Excellent project and a great video as always! I really appreciate the end notice about health awareness (Movember & especially about mental problems). Also, there is nothing terrible about that moustache.
What a great video! Congrats for the project and the video
Came here from Tom Scott's channel. Will likely be watching every one of your videos by the end of the week.
I really like your design here. I was looking for a good microcontroller project to keep me busy over spring break. This might be it.
Hey, great video and loved the display of course!
I'm a web developer both professionally and as a hobbyist, and I've never been kicked by strangers. Though I have been learning web development since 2007 and programming is definitely a passion of mine, so it was not nearly as demoralizing for me. Anywho, great vid. I love the project.
I enjoyed your video. Thank you for posting it.
Awesome project. Thanks!
Cool project. Thanks for sharing !
Wait, I'd like more on this! I want to be able to track environmental data over time, myself. Can't say I trust some of the data collection protocol over the past 20yrs or so. I'd like to take my own accurate measurements. Thanks for your great videos!
You hit a grand slam referencing both physical and mental health care. Thanks for highlighting the need to change the suicide stats. It can be done.
excellent and instructive video.... thank you.
Fantastic video!
Awesome project.
Such a great idea for a UI :)
Great video, again! You deserve 100 times the number of subscribers you have! Cheers!
Hey got a quick question for U & seem to be very knowledgeable about such things, working on a similar project & need to know is does one have a pulse signal from the flow meter and can one able to convert that signal to a 4/20mA signal that will be converted to a 0 to 5 vdc input?
Whether U R able to answer my question or not the project is cool as all get out & thanks for sharing & best of luck in the future.
I love this project. :)
I really like Arduino/Pi projects, like your panel meter, that interface complex digital-domain data with deceptively simple analog displays. I've been thinking about gutting a cathedral radio and putting in a Pi that plays Pandora internet stations--keeping the tube amplifiers and such--but its on the list of a thousand other projects. Anyway, what a cool idea!
Ha im a professional web developer and i am floored by your engineering skills
truly one of the best channels on youtube.
also, speaking as a developer, i LOVED the analogy of web development to being kicked by strangers!...lol :-|
Very elegant design! Probably worth adding a couple of sensors to it to make it more standalone.
Now just add a pot to the board with which you can go up to a day forwards or backwards in the forecast, so you can see the current development of the weather!
Excelent job,, on the gizmo and the video. I'd subscribe just as a thank you.
AvE sent me.... and I'm glad he did!
I do web development as a day job, I can confirm it's like being kicked by strangers every day ;-). Loving the channel, wishing I'd become a civil engineer.
Every single video is more and more mind blowing!
Congratulations for the channel and the incredible art of expression you have.
It remembers me a good teacher i've had in primary, he was in love with science and knew how to spread his pation!
Hope you made more videos like this, and use more of photon boards for that ;)
What do you think about the new boards about the photon enterprise? Would this "magic mesh" be profitable for makers?
Where can I find this analogs panels ?
Great video.
Nerd! ;-)
(And if you sold these, I'd get in line to buy one! Beautifully done, sir.)
Holy crap that's cool, and those steam gauges are really slick looking
If I could wrap my head around any kind of software development at all I might actually be tempted to copy this, at the very least for the precipitation chance part (I'm a motorcyclist, that tends to be the most important part of the weather report to me)
I'm the same, not bad on computers but this is way above my knowledge, also 10gb wow.
For what it's worth it looked like most of what he had to install is stuff that's used for all sorts of projects like this. an IDE to code in, Python, etc. Didn't look like it was a bunch of single-use stuff that's just going to waste space on a HDD for a single project.
For these IOT projects you could also use an ESP32. They are around 10€ and have wifi and bluetooth moduls build onto them. They are compatible with the arduino IDE so you dont need extra development tools for programming
Sweet! I have been planing of doing something similar with my Raspberry Pi to measure temperature of my wine cabinet and alert if it gets too low but I have been too lazy :(
you can use solder paste for better and faster tin melting at the joint
That's a cool idea. Though if I'd make a weather station, I'd probably go all out and just use my own pressure sensors etcetera vs. relying on the cloud
This is so cool! Do you happen to have more details parts list. I am a beginner and I love to follow weather but would like to start to dabble in the Internet of things and tinkering in general.
Bullshit, webdevelopment is one of the best hobbies out there as it has endless applications.
Besides that, love your videos
Agree 100% with Matthew Cherrington.
man! this is amazing!
i really want to do that! but... I'm brazilian, I live in brasil, and most things are very expensive here! and this make the project really hard to do... =/
i'm sorry for bad english! ^^"
You made a really nice 'thing'. Good video too. I was interested to see the scale range you chose for barometric pressure (1060 - 1160 mB). Where I live in the UK - Worcester, I would expect a range of more like 960 - 1050 with typical readings of 990 - 1020 (altitude of ~200 ft). Just interested in your location/altitude.
I like your updated the barometer gauges and that's coming from an amateur radio operator
Can you please release the custom faceplate file for the arduino weather station
Analog pin should be a output voltage control output. pwm should only happen on D pin.
Brilliant video. And wonderful message at the end. Attention to physical and mental health shouldn't be relegated to one month a year.
Where did you get those instrumentation gauges? I've been looking for a while and have been forced to buy used ones on eBay.
+Shawn Pitman Thank you. I have some links and further details on instructables (www.instructables.com/id/Panel-Meter-Weather-Station-With-Photon/).
I was just thinking, a neat project would be to build an IoT rain gauge. The effect would be to have a rain gauge with a key pad. You type in a zip code, and it automatically fills the rain gauge to the last day's rainfall for that location. Might be a bit tricky to build, but it seems reasonably possible, and the "useless but neat" factor would be pretty high.
esp8266 is also good for that (eg. esp-12E)
Hi my friend. thank you so much for this video. Please name of software name use in video for design ?
I had stacks of hard wood rough cut. Bur without a jointer it was useless
nice! Seeing you are a civil engineer with a degree in water resources: Will you be at the AGU Fall Meeting? (If so, you should walk by during our poster session on novel and home made sensors in hydrology.)
did you get rid of the green lathe and what brand was the green lathe?
I love electronics more than the next guy because I went to college for it but doesn't this project sort of seem small compared to what apps can do?
I have a rain app that buzzes me when precip of any kind...even snow, is near. Cost nothing. Though I have to say if you are really into weather it probably will not be accurate enough for you.
I do really like talking about weather. I know a lot of the cloud names even 2-3 decades later from studying them like altocumulus and so forth.
Maybe what I am trying to say here is that you should google up a really good weather app and review it for all of us. Or try to modify an existing one to your likes or even program one. ( a lot of languages are much easier than they used to be )
You explain things well & you are a smart guy so I will probably subscribe because any content you put out is well thought out. Plus I love all the engineering sciences.
Is it possible to use a Wifi shield instead of the Particle photon?
Sorry to rezz this, Grady, but I'm wondering if you could post your .dwg files for the analog faces as well as a link to the meters you used? I just ordered my first Photon and...OMG. I'm in.
I mean I'll be honest I would have just used a bunch of sensors for temperature, humidity etc. It'd give you more location-specific data and I think it'd probably be simpler too.
What meters do you use?
Draftsight you said? I'm gonna have to check out out. That's by Dassault Systems, right?
Walnut looks a lot like oak except darker and less grain, otherwise is the hardness the same.?
internet of things= internet of dangerously insecure and poorly coded things
If someone hacks my weather station, all the power to them.
I don't mean just your thing I mean all IOT stuff especially that which companies sell
Its not hacking the the weather station that is the problem, its the using it as a tiny terminal to infiltrate other juicier targets inside your network. This is why I have setup an untrusted firewalled VLAN in my home network for IOT devices.
Then can use your weather station as a relay to hack into other targets
Well in this case its not that bad since the station is not acting as a server to the public. As long as the data it gets from its service isn't compromised, a bug in the software can't have serious consequences. So basically the security in this instance relies on the particle webservice and the weather service not getting hacked and the connections between them being secured by tls.
Most unsafe IOT equipment acts as a server and allows any device to connect to it. Examples are webservers on IP-cameras or terminal servers which give direct access to a terminal.
What will you do now that Apple has bought up Dark Sky API sometime last year and has been threatening to shut the service down for third-party usage sometime at the end of 2022?
Why would you not recommend IOT? I thought your project was great. I also think IOT is great too and worth the time it takes to learn it. Also the photon is a pretty awesome thing. I do recommend it for IOT.
Very nice looking! I'm going to ask a dumb question now. Can you explain how the PWM signal from the Particle is translated into needle movement? I thought the PWM signal would need to be converted into some type of analog signal. I feel like I'm missing some basic understanding of electricity here, like the math equivalent of not knowing 1 + 1 = 2. Thanks!
+Grady Hillhouse Awesome. Thank you so much and awesome video!
I realize this video is a bit older now, but if you could do it over again... would you still do it with the Particle Photon?
subscribing because engineer
3:15 wait, what? 1060 to 1160 millibars? around here the pressure never goes anywhere near that high, and i'm close to sea level. the highest i saw was about 1040.
Looks spiffy, but would have been better if it obtained the weather data from instruments located outside your home. Wunderground is about the best I've found for getting local conditions without an actual weather station in my backyard, but they keep changing their website in ways I hate and the site has become rather buggy. About half the time, it just doesn't work right.
Would be cool if you can share the diy labels for the analog gauges.. i would like to use the temperature one with my arduino and a 5V meter that look like yours :-P
+Moes Check the github link in the description. I have them uploaded there.
+Practical Engineering It looks like that link isn't working
Try it now.
+Practical Engineering
Sure is! Thank you so much!! Great project! I am trying to do something similar using these old Westinghouse gauges as the readouts.
www.ebay.co.uk/itm/NEW-WESTINGHOUSE-KA-241-A-C-AMPERES-GAUGE-/271819562590
Not sure if that is even possible, but it would sure be neat!
How is the web hook implemented? What do you do with that .json file?
+deathpony698 It get's uploaded to the Particle Cloud service. More details here: www.instructables.com/id/Panel-Meter-Weather-Station-With-Photon/
Hi, what microphone are you using?
If you hook up that nerd alert LED to a relay you can make the lights turn on automatically when you walk in the room. Thats what i did anyway.
Can you release the file for the custom faceplate
I wish you wouldve told us whats in it and how to build it
Will you sell these? I would really like to buy one.
I think you don't really 'send' an Event, anything you'd send would be either a request or to post a 'subscription' to an external event. When that event then is triggered it will notify all subscribers with the relevant info.
So no words were made up but perhaps a smidge improperly utilized :)
Grady,
Where did you purchase that nice Walnut?
+Grady Hillhouse
Thanks Grady,
I'm about an hour North of Houston but might make that trip the next time I have a business trip that way.
Wait. Was the 10 gigabytes hyperbole? I honestly couldn't tell. If not that's just crazy.
Can you do a more in-depth video
Very good project, but just if anyone wanted to recreate this it would be whole bunch easier with an ESP8266/NodeMCU with Espruino running on it
3:51 As an old computer programmer, that makes me VERY sad. Why not go directly to forecast.io?