Connecting the Arduino microcontroller to the internet

How to connect the Arduino MKR1010 microcontroller to the internet.
1 / 28
suivant
Slide 1: Diapositive
ComputingFurther Education (Key Stage 5)

Cette leçon contient 28 diapositives, avec quiz interactifs et diapositives de texte.

time-iconLa durée de la leçon est: 60 min

Éléments de cette leçon

How to connect the Arduino MKR1010 microcontroller to the internet.

Slide 1 - Diapositive

Objectives for this week
  1. Recap on last week's lesson on liquid level sensing
  2. Use the Arduino MKR1010 microcontroller to create a Wi-Fi connection to a Wi-Fi network by developing a program that uses the microcontroller and security credentials.
  3. Ascertain information from the microcontroller regarding the established Wi-Fi connection.

Slide 2 - Diapositive

The liquid level sensor
Last week we seen that we could take our basic knowledge from the blink LED program and apply that knowledge to create an advanced program using a liquid level sensor to sense the water level in a cup.
This was very useful and over the next number of weeks we will fully realise how useful this will become.

Slide 3 - Diapositive

Review of last Lesson:
What type of sensor is
the liquid level sensor?

Slide 4 - Carte mentale

Review of last Lesson:
What are the range of
values that can be read
by the Arduino?

Slide 5 - Carte mentale

Review of last Lesson:
What command is used
to read values from the
liquid level sensor?

Slide 6 - Carte mentale

What is Wi-Fi?

Slide 7 - Carte mentale

What is Wi-Fi?
Wi-Fi is a collection of wireless network protocols that are based on the IEEE 802.11 standard. 
It typically uses the 2.4 GHz and 5 GHz radio bands and is a technology that is best suited for shorter distances.

Simply explained, Wi-Fi is used to transfer data from one device to another, for example from your computer to your router.

Slide 8 - Diapositive

What is Wi-Fi?
The goal with this lesson is to be able to connect our MKR WiFi 1010 board to a Wi-Fi network and confirm the connection by printing relevant information regarding the connection using the serial monitor.

Slide 9 - Diapositive

Arduino IDE
As with the previous two weeks we will now open the Arduino IDE however, this week we have a number of steps to follow before we can use the new MKR1010 unit.
We will now go through these steps which will involve installing the drivers for the MKR board also installing additional code libraries to help make our code simpler to create.

Slide 10 - Diapositive

STOP!!
Arduino boards are electronic devices!

Before we begin, please ensure you do not have any drinks or fluids on your desk as this poses a health and safety risk.

So, if you have any on your desk, please remove them now.

Slide 11 - Diapositive

Arduino MKR1010 Wi-Fi board

Slide 12 - Diapositive

Installing Arduino MKR drivers

Slide 13 - Diapositive

Installing Arduino MKR drivers

Slide 14 - Diapositive

Installing Arduino MKR drivers

Slide 15 - Diapositive

Installing Arduino MKR drivers

Slide 16 - Diapositive

Installing Arduino MKR drivers

Slide 17 - Diapositive

Installing Arduino MKR drivers

Slide 18 - Diapositive

Installing libraries

Slide 19 - Diapositive

Installing libraries

Slide 20 - Diapositive

Building our code - Declarations
Recall that we must declare our prototypes before our setup()




SSID: TP-LINK_389735
Password: 22361776

Slide 21 - Diapositive

Recap of today's lesson:
What radio frequencies
does Wi-Fi operate
within?

Slide 22 - Carte mentale

Recap of today's lesson:
How does the Arduino
Communicate with the
computer/outside world?

Slide 23 - Carte mentale

Recap of today's lesson:
What one thing did you learn today that you most enjoyed?

Slide 24 - Carte mentale

Objectives for this week
  1. Recap on last week's lesson on liquid level sensing
  2. Use the Arduino MKR1010 microcontroller to create a Wi-Fi connection to a Wi-Fi network by developing a program that uses the microcontroller and security credentials.
  3. Ascertain information from the microcontroller regarding the established Wi-Fi connection.

Slide 25 - Diapositive

For next week
Research the libraries used in today's code example:

SPI
WiFiNINA

We will discuss this at the start of next weeks class.

Slide 26 - Diapositive

Next week:
Next week we will be putting together all of our learning this far in terms of:
Lighting LED's,
Liquid level sensor,
Connecting to Wi-FI
Our goal will be to integrate all our code to read data from the sensor and send this to the cloud where it can be monitored.

Slide 27 - Diapositive

Feedback please:
Please take a few minutes to provide feedback on today's lesson.

Slide 28 - Diapositive