Connect Arduino to internet over USB (with Processing) - Simple Space Weather meter example (Part 1)

  Переглядів 24,233

Programming Electronics Academy

Programming Electronics Academy

2 роки тому

🤩 Check out this Free Arduino Course 👇
bit.ly/get_Arduino_skills
**Want to learn more? Check out our courses!**
bit.ly/3raTA4M
**Get your Free Trial of Altium PCB design Software**
www.altium.com/yt/programming...
**Get the code, transcript, challenges, etc for this lesson on our website**
bit.ly/3KPfYbZ
**We designed this circuit board for beginners!**
Kit-On-A-Shield: amzn.to/3lfWClU
FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: / programmingelectronics...
Twitter: / progelecacademy
Website: www.programmingelectronics.com/
________________________________
Have you ever wanted to connect your Arduino to the internet? Your first thought was probably like okay, I guess I'll need some type of Wi-Fi shield or a Wi-Fi enabled board in order to connect to the internet. But what if you're building something that's more of a desktop project? That is you fully anticipate that it's gonna be sitting right next to your computer. And if you want this thing to have internet access, like does it really have to connect over Wi-Fi? So then your next thought might be well, if it's not gonna be Wi-Fi, I probably need to get an Ethernet shield or something like that so I can connect my Arduino directly into the Ethernet. But there is another option that doesn't require Wi-Fi or Ethernet. It's just connecting your Arduino via USB to your computer, assuming that your computer's connected to the internet. What you're able to do is use the Arduino Serial library to communicate with an application on your computer that manages your internet requests. So if you go this route, all you need is an Arduino board and a USB cable, and you can connect to the internet. No other hardware needed. All you have to do is install some open source software called Processing and write a small program to grab the information that you want from the internet. Now, what we're gonna do in this lesson is walk through that process from start to finish. So by the time you're done here, you will be able to get information from the internet down to your Arduino board over a USB connection to your computer. Now, to demonstrate getting some information off the internet, we need some type of example. So what I've set up and what we'll demonstrate in this lesson is grabbing some space weather forecast information from the NOAA website, that's the National Oceanic and Atmospheric Administration website. So our program is gonna grab some information, it's gonna be called the Planetary K-index. It's a measure of the magnitude of geomagnetic storms. It's just a number, it's a number from zero to nine. We're gonna grab the current forecasted number from the internet, and then we're gonna pass that number down to our Arduino board and then our Arduino is gonna light up a number of LEDs based on that number. So if the forecast, if the KP forecast is five, then we're gonna light up five LEDs. If it's eight, we'll light up eight LEDs. I think you get the idea. So by the time we're done here, we're gonna have a super simple space weather forecast widget sitting next to your computer. All right, let's get started. Subscribe to our UKposts channel to get more videos like this. Before we start, just a big shout out to Altium for sponsoring this video. Huge thanks. You can check the description to get a free trial of the Altium software. All right, so this is what we're gonna do. We want a computer program on our computer to grab specific data from the internet and then pass that data over the USB cable to our attached Arduino board. And then we want our Arduino board to be running a program that keeps an eye out for incoming serial data.
CONTINUED...
bit.ly/3KPfYbZ
**About Us:**
This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
**We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

КОМЕНТАРІ: 36
@darshan9106
@darshan9106 2 роки тому
this is honestly insane, Its been abouit 2 weeks since ive started working on the arduino and your tutorials have been very clear and comprehensive. Thank you for this work, If i could i would pay you in gold nuggets
@programmingelectronics
@programmingelectronics 2 роки тому
Thanks so much - I really appreciate that note!
@The_Allstar
@The_Allstar 2 роки тому
Really nice video. I really appreciate your content! I was wondering if you could make a video about simultaneously reading and writing a modified PWM signal. My use case would be set new endpoints for RC Servos that would normally be connected to a RC receiver.
@programmingelectronics
@programmingelectronics 2 роки тому
Thanks for the note! Sounds like a cool application - I'll see what we can come up with! Something along these lines I am thinking: www.benripley.com/diy/arduino/three-ways-to-read-a-pwm-signal-with-arduino/
@markadyash
@markadyash 2 роки тому
this is awesome excited for 2nd part
@programmingelectronics
@programmingelectronics 2 роки тому
Thanks so much! Here is a link to part 2: ukposts.info/have/v-deo/gJWKh3uNZHiH2nk.html
@anokhautomation4453
@anokhautomation4453 2 роки тому
Very interesting.expecting the second part soon.thanks for sharing.👍
@programmingelectronics
@programmingelectronics 2 роки тому
Thanks! Here is the link to part 2: ukposts.info/have/v-deo/gJWKh3uNZHiH2nk.html
@nektarioskourakis8331
@nektarioskourakis8331 2 роки тому
GREAT tutorial! please add arduino data to internet publication!
@programmingelectronics
@programmingelectronics 2 роки тому
Thanks for the note! We should be able to do a demo of a POST request as well.
@TOMTOM-nh3nl
@TOMTOM-nh3nl 2 роки тому
Thank You
@programmingelectronics
@programmingelectronics 2 роки тому
Thanks a ton for watching!
@jameskidd7906
@jameskidd7906 2 роки тому
nice project
@programmingelectronics
@programmingelectronics 2 роки тому
Thanks!
@stevenlightfoot6479
@stevenlightfoot6479 10 місяців тому
This is excellent, I really value this.. Its is pretty much what I need to do, with the exception that I need to get World Time (rather than space weather) in DateTime format and send this string to Arduino via USB. I think I have the Arduino side down, but its not clear how to transmit strings to serial in Processing, and how to parse the API data that I get. I find Processing rather cryptic. Do you have any quick tips, to receive and transmit data more complex than one char? Otherwise I will have to teach myself some Processing language. Thanks for any help.
@programmingelectronics
@programmingelectronics 10 місяців тому
Hi Steven, yes, definitely ways to do this, and it gets a lot easier when your using a WiFi enabled board which can talk directly to a web service, and not use Processing as an intermediary. I will note that Processing is a pretty fabulous language to learn (some amazing graphics have come out of it!) - it's based on Java, and isn't too far a cry from what you learn with Arduino. A great book for learning processing is called Learning Processing learningprocessing.com/ by Dan Shiffman, and it is a real jewel as far as programming books guy... but I digress :)
@stevenlightfoot6479
@stevenlightfoot6479 10 місяців тому
@@programmingelectronics Thanks, very much appreciated. Yes, I see that Processing has many similarities to Arduino CPP. I am already making headway with the reference guide. I will look at the book you suggest. Love your stuff.
@MrLaxr-op4be
@MrLaxr-op4be 2 роки тому
Ah! the video ended! where is the rest!?
@programmingelectronics
@programmingelectronics 2 роки тому
Coming soon in Part 2 - sorry about that!!
@MrLaxr-op4be
@MrLaxr-op4be 2 роки тому
@@programmingelectronics I was in trouble with a project of mine. Your video shone some light on it. Thanks. Really appreciate your work. ❣️
@emekanwoye4951
@emekanwoye4951 2 роки тому
Please do you have more videos on using arduino and processing ???
@programmingelectronics
@programmingelectronics 2 роки тому
We have part 2: ukposts.info/have/v-deo/gJWKh3uNZHiH2nk.html
@ilkeryetistirici7512
@ilkeryetistirici7512 2 роки тому
Hi, I'm using arduino uno and mega. Trying to create a serial communication between them and also I want to send data(numbers) from uno to mega for the telemetry. But it just sending numbers between 0-255. I want to send high numbers (7-8 digit) and receive it on mega. Could you help me about it please?
@programmingelectronics
@programmingelectronics 2 роки тому
Sounds like a cool project! Have you check out the Serial.parseInt() function? We have a video on it here: ukposts.info/have/v-deo/pJObgIube3hitqc.html Maybe that could help?
@ilkeryetistirici7512
@ilkeryetistirici7512 2 роки тому
@@programmingelectronics Thank you for reply. I've solved the problem thanks to this video. Now it works. Thank you!
@47lokeshkumar74
@47lokeshkumar74 2 роки тому
which component are using for internet ?
@programmingelectronics
@programmingelectronics 2 роки тому
Great question! What this demonstrates is using your computers internet connection through a USB cable attached to your Arduino board.
@47lokeshkumar74
@47lokeshkumar74 2 роки тому
What the component name which attached for internet. Thanka
@programmingelectronics
@programmingelectronics 2 роки тому
@@47lokeshkumar74 As long as your computer has internet access, there is no additional component attached for internet. Your Arduino needs to stay connected to your computer via USB however.
@47lokeshkumar74
@47lokeshkumar74 2 роки тому
I think there should embedded ethernet chip are there. Which can be controlled through arduino
@yogeshwaranp3893
@yogeshwaranp3893 Рік тому
Hii I have a similar idea, what i want to do is, to send internet data from esp01 wifi module to our Computer through USB port(Simply say USB wifi adaptor) Please make an tutorial video to create a wifi adaptor using esp module
@programmingelectronics
@programmingelectronics Рік тому
Thanks for the recommendation!
@yogeshwaranp3893
@yogeshwaranp3893 Рік тому
@@programmingelectronicsthanks for accepting my request. I am eagerly waiting for your video (⁠•⁠‿⁠•⁠)
@shashwat_dubey_
@shashwat_dubey_ 2 роки тому
I want to control a servo through my phone. Is it possible without Blynk app? Anyone?. because the new blynk app is very bad.
@programmingelectronics
@programmingelectronics 2 роки тому
Yes, for sure! I'll see what we can work up for you.
@adilabusafa
@adilabusafa 2 роки тому
يتعذر التعليق على هذا الفيديو لا أعلم .
Connect Arduino to internet over USB (with Processing) - Simple Space Weather meter example (Part 2)
24:59
Using Arrays with For Loops
17:24
Programming Electronics Academy
Переглядів 29 тис.
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Переглядів 25 млн
Program the ATTINY85 with Arduino 1.8.18 (2022)
7:35
DIY TECH BROS
Переглядів 68 тис.
Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
1:25:31
Programming Electronics Academy
Переглядів 2,3 млн
#22 Using an SD card to log data - and how to improve the reliability!
24:20
ESP8266 WiFi Range Test 2.4GHz Arduino
6:46
RadioСhannel with Alex (in english)
Переглядів 7 тис.
How to Organize Code
14:37
Programming Electronics Academy
Переглядів 58 тис.
Connect your Arduino with the Internet: Introduction to LoRaWAN
5:09
Milchtütenente
Переглядів 4,9 тис.
Arduino Interrupts Tutorial
9:30
educ8s.tv
Переглядів 292 тис.
Arduino Processing Serial Communication with Processing 3
7:12
Maker 101
Переглядів 80 тис.
#420 ATmega4808, The New Arduino Chip?
9:13
Andreas Spiess
Переглядів 124 тис.