Git Product home page Git Product logo

mkr1000-arduino-iot-cloud's Introduction

simplinnovation

MKR1000 & Arduino IoT Cloud (Beta)

Video 1: MKR1000 & Arduino IoT Cloud, uploaded on Feb 18, 2019

Video Lintang MKR1000 IoT Cloud

Video 2: Arduino MKR1000, IoT Cloud & Its Cloud Remote App, uploaded on Oct 5, 2020

Video Lintang MKR1000 IoT Cloud

Hardware

  • In this tutorial I'll use Arduino MKR 1000. You can use any Arduino boards that are compatible with the Arduino IoT Cloud, for example:
    • MKR WiFi 1010
    • MKR 1000
    • MKR NB 1500
    • MKR GSM 1400
    • MKR WAN 1300
    • Nano 33 IoT
    • Portenta H7
  • 1x LED light
  • 1x Potentiometer
  • 1x DHT11 sensor
  • 1x Breadboard
  • Some jumper wires

Tutorial

  1. Connect all parts to Arduino MKR1000 as the following diagram:

    schema

  2. Signup/login to arduino.cc then go to Arduino IoT Cloud page (create.arduino.cc/iot).

  3. Go to Devices menu to configure your IoT device. First click Add Device button then you will be noticed to download & install Arduino Create Agent. After that you will be asked to connect your IoT device to your computer. Arduino Create Agent will scan your device then inform you about your IoT device type & connected port. Simply click Configure button, wait till finish & your device is ready to go.

    device

  4. Go to Things menu to create your Thing (project) with all respected Properties (sensor/actuator). In this tutorial I create a Thing called Simplinnovation with 3 properties: led, pot and temp.

    thing

  5. Click Edit Sketch button to code your IoT device using Arduino Web Editor. On Secret tab, insert SSID (WiFi name) & its password, that will be used by your IoT device to connect to the internet. Then write these lines on .ino file tab:

    editor

    #include "thingProperties.h"
    #include "DHT.h"
    
    #define DHTPIN 5
    #define LEDPIN 4
    #define DHTTYPE DHT11
    DHT dht(DHTPIN, DHTTYPE);
    
    void setup() {
        setDebugMessageLevel(2);
        Serial.begin(9600);
        delay(1500); 
        initProperties();
        ArduinoCloud.begin(ArduinoIoTPreferredConnection);
        led = false;
        dht.begin();
    }
    
    void loop() {
        ArduinoCloud.update();
        pot = analogRead(A0);
        temp = dht.readTemperature();
    }
    
    void onLedChange() {
        digitalWrite(LEDPIN, led);
    }
    

    Verify & upload the sketch to your device.

  6. After done uploading, on Arduino Web Editor click Go To IoT Cloud button to create a dashboard. Click Dashboard menu then create your own dashboard to monitor & control your device through the internet. In this tutorial, I create a switch widget to control LED & 2 value widgets to monitor my DHT11 & potentiometer value. To actvate your dashboard, click Use Dashboard button.

    dashboard

  7. Now you can control & monitor your device via Arduino IoT Cloud Dashboard. You can also use its IoT Cloud Remote App to control & monitor your device on smartphone. Download it from Google Play Store (Android) or Apple App Store (iOS). Enjoy!

๐Ÿ” Lintang Wisesa


lintang ymail lintang facebook lintang twitter lintang youtube lintang linkedin lintang github lintang hackster lintang bio

mkr1000-arduino-iot-cloud's People

Contributors

lintangwisesa avatar

Watchers

 avatar  avatar

Forkers

file-campuran

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.