FactoryScientist

Created Date: 2018-07-09/ updated date: 2018-08-17
    • Medium img 2743
    Owner & Collaborators
    License
    By
    FactoryScientist by take is licensed under the Creative Commons - Attribution license.
    Summary
    set up factory IoT device using WIO node.

    Materials

      Tools

        Blueprints

          Making

          • Preparation

            0
            Thumb take
            Hardware
            1. Wio node
            2. Grove sensor(analog)
            3. USB-mini USB cable
            4. FTDI adapter(3.3v)

            Cloud
            1. Azure Iot hub
            2. Microsoft Power BI
            • Set Up Arduino for ESP8266

              0
              Thumb take
              1. Open Arduino IDE(require over v1.8)
              2. set ESP8266 board manager URL for Preference
                "​http://arduino.esp8266.com/stable/package_esp8266com_index.json "
                You can add this URL with "," as separator.
              Small           2018 07 10   0.58.04
              • Add board pack on the Board list

                0
                Select Generic ESP 8266 Module
                Small           2018 07 10   1.08.51
              • Import "ESP8266 Community"

                0
                Thumb take
                Select "ESP8266 Community v2.4.0-rc2".
                Different version will not work.
                Small           2018 07 10   1.10.14
              • Select Generic ESP 8266 Module

                0
                Select Generic ESP 8266 Module
                Small           2018 07 10   1.03.51
              • Set parameter

                0
                Thumb take

                Small           2018 07 10   1.12.54
            • Install Azure Iot hub library for ESP8266

              0
              Thumb take
              Download ZIP file from here
              https://github.com/wamisnet/Azure-iothub-mqtt-esp8266
              • Include library from Arduino IDE

                0
                Thumb take
                select Sketch->Include Library->Add .ZIP Library...
                Small           2018 07 10   1.40.40
              • Annotation without title

                0
                Thumb take
                Select file you downloaded.
                Small           2018 07 10   1.42.46
            • compile source code and upload

              0
              Thumb take
              Download sample code and open it on Arduino IDE.
              sample code
              • connect the WIO node to PC

                0
                Thumb take
                Connect the WIO node "port0" to PC using FTDI adapter.

                ※Need to connect mini-USB cable for supply power!
                Small img 2743
              • Make a cable for connecting WIO node

                0
                Thumb take
                Cut GROVE connector and connect to FTDI adapter
                Small img 2754 1
              • Upload Arduino code

                0
                Thumb take
                Press "upload" button on Arduino IDE.
                Before pushing the button, keep pressing FUNC button on WIO node, and press RESET button once. After releasing the RESET button, release the FUNC button.
                Now, the board is running on the upload mode.

                While the upload mode, press "upload" button on Arduino IDE.
                Small img 2756
            • SetUp Azure

              0
              Thumb take

              • Down load Device Explorer

                0
                Thumb take
                Down load "SetupDeviceExplorer.msi" and install on your window10 machine.
                https://github.com/Azure/azure-iot-sdk-csharp/releases

                DeviceExplorer is a software that manages iot devices running under AZURE.
                Small           2018 07 10   3.17.48
              • Setup your IoT Hub service on AZURE

                0
                Thumb take
                Make IoT Hub service using Azure web App.
                https://portal.azure.com/#create/hub
                Small           2018 07 10   3.23.07
              • Annotation without title

                0
                Thumb take
                Get connection string from "Shared access keys".
                Memo the key on text editor. You will use the key later.
                Small           2018 07 10   3.29.56
              • Annotation without title

                0
                Thumb take
                Open Device Explorer on Windows10 machine.
                Paste access key you took.
                At last, press "Update" button.
                Small           2018 07 10   3.39.32
              • Create new device

                0
                Thumb take
                Create->enter "Device ID"
                Then, get Primary Key.
                Small           2018 07 10   3.46.43
              • Annotation without title

                0
                Thumb take
                On the list, click the right button.
                And select "Copy connection string for selected device".

                You use the connection string later. So please paste on any Text software.
                Small           2018 07 10   3.54.22
              • Put connection key to your code

                0
                Thumb take
                Insert SSID, PASS, CONNECTION CODE into your code
                After changing the 3 place, upload the code to wio node.

                Don't forget to push FUNC button and RST button before uploading.
                Small           2018 07 10   4.01.26
            Add Card Order

            References

              Usages

                Convert State

                 to Annotation.

                Select the numebr of the state to annotate.

                OK
                cancel
                Loading

                facebook

                , data-width="400", data-show-faces="true" data-send="true"
                , data-width="400", data-order-by="reverse_time"