Загрузка страницы

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

***Want to learn more? Check out our courses!***
https://bit.ly/3raTA4M

***Get your Free Trial of Altium PCB design Software***
https://www.altium.com/yt/programmingelectronicsacademy

***Get the code, transcript, challenges, etc for this lesson on our website***
https://bit.ly/3KPfYbZ

***We designed this circuit board for beginners!***
Kit-On-A-Shield: https://amzn.to/3lfWClU

FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: https://www.facebook.com/ProgrammingElectronicsAcademy/
Twitter: https://twitter.com/ProgElecAcademy
Website: https://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 YouTube channel to get more videos like this. 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...
https://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.***

Видео Connect Arduino to internet over USB (with Processing) - Simple Space Weather meter example (Part 2) канала Programming Electronics Academy
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
30 января 2022 г. 16:00:07
00:24:59
Яндекс.Метрика