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

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

***Want to learn more? Check out our courses!***

***Get your Free Trial of Altium PCB design Software***

***Get the code, transcript, challenges, etc for this lesson on our website***

***We designed this circuit board for beginners!***

FOLLOW US ELSEWHERE
---------------------------------------------------
________________________________

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 YouTube 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...

***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.***
Рекомендации по теме
Комментарии
Автор

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

darshan
Автор

😮 This video is going to help me on my API Project 🎉 Chat GTP.😊

ronsaerialvideos
Автор

GREAT tutorial! please add arduino data to internet publication!

nektarioskourakis
Автор

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.

The_Allstar
Автор

this is awesome
excited for 2nd part

markadyash
Автор

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.

stevenlightfoot
Автор

Please do you have more videos on using arduino and processing ???

emekanwoye
Автор

which component are using for internet ?

lokeshkumar
Автор

Ah! the video ended! where is the rest!?

MrLaxr-opbe
Автор

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

yogeshwaranp
Автор

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?

ilkeryetistirici
Автор

I want to control a servo through my phone. Is it possible without Blynk app? Anyone?.
because the new blynk app is very bad.

shashwat_dubey_
Автор

يتعذر التعليق على هذا الفيديو لا أعلم .

adilabusafa
visit shbcf.ru