NuMaker-IoT-M2354

Prebuilt APP Demo

NuMaker-IoT-M2354 setup

1. Hardware Setup
  (1) Open the virtual COM ( VCOM ) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to ON.
   

  (2) Connect the ICE USB connector to the PC USB port through USB cable.
   

NuMaker-IoT-M2354-3

  (3) Turn on the Wi-Fi power by changing WiFi Switch NO. 1 to ON.
    NuMaker-IoT-M2354-4
  (4) Find the “Nu-Link2 Virtual COM Port” on the Device Manger.
   

2. Open the terminal window on PC. When terminal showing “Input WiFi SSID/PASSWD(Y/N))”, enter Y/y then input your Wi-Fi SSID and Password.
  NuMaker-IoT-M2354-5
3. After connecting to the Wi-Fi successfully, it starts getting environmental data from BME680 and displaying on the LCD panel. The data is also sent to the AWS cloud thru MQTT.
  NuMaker-IoT-M2354-6

APP setup

We use Android app to demonstrate the steps and it also applies to iOS.

1.  Search “NuCloudConnector” in the google play and install it. 
  NuMaker-IoT-M2354-App-1NuMaker-IoT-M2354-App-2Android NuMaker-IoT-M2354-App-3iOS
2. Open NuCloudConnector and enter into the settings screen.
  NuMaker-IoT-M2354-App-4
3. Fill the setting of AWS as below:
  AWS Host Region: US East(Ohio) for Android/ USEast2 for iOS
  AWS Cognito Identity Pool ID: us-east-2:f7c9d0c0-2d71-4395-902d-6e0679af3d09
  AWS IoT Endpoint: a1fljoeglhtf61-ats.iot.us-east-2.amazonaws.com
  AWS IoT Thing Name: Nuvoton-Mbed-D001
  NuMaker-IoT-M2354-App-5
4. Back to the main screen and chose AWS. The temperature data sensing from NuMaker-IoT-2354 is displaying on the app simultaneously.
  NuMaker-IoT-M2354-App-6
   
 
 

Burn Firmware

For easy verification of AWS IoT connection on NuMaker platforms, we provided prebuilt bin file with AWS certificate & key and you could drag & drop this bin file into your NuMaker board on hand.

The prebuilt image could be download from the link below:

https://github.com/OpenNuvoton/M2354BSP/tree/master/SampleCode/NuMakerIoT/mbedOS6_AWS_IoT

A simple firmware burning method is that you can drag and drop the binary image file to NuMicro

MCU virtual disk to burn firmware.
1. Connect the ICE USB connector to the PC USB port through USB cable.
2. The window manager will show a ‘NuMicro MCU’ and you could use this virtual disk to burn firmware.
  NuMaker-IoT-M2354-App-7
3. Drag and drop the prebuilt binary image file into the NuMicro MCU virtual disk to burn firmware as below.
  NuMaker-IoT-M2354-App-8

Build from Source

1. Download and install the Mbed Studio: https://os.mbed.com/studio/
2. System requirements.
  - Linux (Ubuntu 18.04) (64 bit)
  - Mac 10.11 or higher (64 bit)
  - Windows 10 (64 bit)
3. Create or sing up the Mbed Account
  NuMaker-IoT-M2354-App-9
4. Open Mbed studio and choose “import program” from URL: https://github.com/OpenNuvoton/NuMaker-mbed-OS-6-AWS-IoT
  NuMaker-IoT-M2354-App-10
5. Select target as NU_IOT_M2354 and build profile as Develop. Press the blue icon to build program.
  NuMaker-IoT-M2354-App-11
6. After building process is finished, the bin file will be created in the BUILD folder.
 

NuMaker-IoT-M2354-App-12

NuMaker-IoT-M2354-App-13

Note: To run the example and connect to the cloud, you need to register one AWS account to access and manage AWS IoT Service for your device to connect with.

Please refer the README on https://github.com/OpenNuvoton/NuMaker-mbed-OS-6-AWS-IoT