ST Americas mbed Team


Information on how to use the STM32 Nucleo board with mbed

Connection from Ethernet to Cloud

Adding Connectivity from Wiznet W5500 Ethernet Module to the Cloud via AT&T M2X and passing Temp data to the Cloud

The Wiznet W5500 Shield is an 802.11 Ethernet module that will allow your device to connect to an Ethernet network and send Temperature data to the cloud using the AT&T M2X module. Make sure you have a logon to the AT&T M2X site - so to allow you use of the cloud and the API Key.

  • Connect the Wiznet W5500 shield board into your Nucleo board as shown in picture below.

/media/uploads/johnbloomfield/img_7618.jpg

  • Plug the STM32F401 Nucleo to your PC with a USB cable

The mbed page for this example is :

AT&T M2X & Wiznet_Temp sensor upload - Example

/media/uploads/johnbloomfield/slim_web_site.jpg

import this example program into your mbed compiler by clicking the “Import this program” button **

/media/uploads/johnbloomfield/slim_import.jpg

  • Click the “Import” button on the pop up window shown below
  • Open the "main.cpp file"
  • check for STM32F401 references

/media/uploads/johnbloomfield/slim_code_in_full.jpg

  • Compile and load the image onto the F401 Nucleo drive
  • Open a terminal window to display the status of your connection. For this example, set the terminal BAUD rate to 115200
  • Check your IP allocation and ping from the network to your Nucleo allocated IP address

/media/uploads/johnbloomfield/slim_tera_term_and_ping.jpg

Note

Additional information on how to set up a terminal window for console output can be found here: Creating Console Output

Once the BAUD rate is set, you may need to unplug then replug your Nucleo board and restart your terminal program with the correct BAUD rate settings. You can also reset your program by pushing the Black reset button on the Nucleo board.

Below is the data and screens you will see on your AT&T M2X account homescreen. Data & Keys below are examples and you have to import your own account details to allow access.

/media/uploads/johnbloomfield/att_screen_1.jpg /media/uploads/johnbloomfield/att_screen_2.jpg You will see via your AT&T M2X login that the Temperature data off the MEMs shield is collected periodically onto the cloud. This can be plotted a number of ways and frequencies to allow you to plot temp conditions or movement of devices from your IoT device on the ground.