Feature Feature

Project: Blink Led

Connection : USB - Serial
Need : Chrome Browser
Need : Arduino

Function A ) Send a command from web-interface to Arduino and activate a LED then Arduino return the status of LED to web-interface

Function B ) Activate LED blinking and adjust the frequency from web-interface and Arduino return blinking LED to web-interface

  • 1 - Steep register to www.dataino.it and login

  • 2 - Open create page

    Click Project -> New

Choose the type and give a name

When you click a new project, you are prompted to enter an IoT

  • 3 - Click the arrow and choose USB

    The configuration panel will open. Push the button again to hide the configuration panel.

  • Change data

    Choose the name of the IoT, and press Add.

Feature
Feature
Feature
Feature

Add gauges

  • 4 - Press gauge Button on the top left

    Will appear on the gauges panel, using the buttons at the top you can choose which of the gauge you want to add the dashboard. Push the button again to hide the gauge panel.

Add gauge

  • 5 - Add a push button

    Send value 1 to Arduino when pressed.

Feature
Feature

Add gauges

  • 6 - Add a red led

    Activate when recive value 1 from Arduino

Add gauges

  • 7 - Add a Switch button

    Send value 1 to Arduino when switched ON and send value 0 when switched OFF Activate /Deactivate LED blink.

Feature
Feature

Add gauges

  • 8 - Add a slider

    Gauge change the frequency of the blink, value from 10 to 1000 are send to Arduino.

Gauges position

  • 9 - Adjust the gauge position

    Gauges can be moved around the interface to your liking by dragging and drop.

  • 10 - Save project

Feature
Feature
Feature

Edit delete gauges

  • 11 - If something in a gauge must be changed or if the gauge should be deleted.

    Drag gauge over the button edit gauges and relase, the panel will open.

Get code

  • 12 - Activate code container

    Button on top right button, copy base code.

  • 13 - Save project

Feature
Feature

Arduino IDE

  • 14 - Paste code on Arduino IDE

  • 15 - Edit code

    Add this line in the definition

    long int SWtime = 1000;

    Add this line in the setup()

    pinMode(13, OUTPUT);

    Add this lines in loop() void

      //================================================
      // Activate-Blink
      //================================================
      if ( switch_k04 == 1 && (millis() > SWtime) ) {
        SWtime = millis() + slider_k05;
        led_k03 = not(led_k03);
        digitalWrite(13, led_k03);
        sendValue( LED_03, IOT );
      }

    Edit "Activate Led Variable" case

    When a variable is received ( push button BUTTTON_02 ), usually the value is only stored ( button_k02 = atoi(str); ) , but in this case is also stored the value in the variable led_k03 and send value to web interface and then sent on pin13.

    case BUTTTON_02: // Push (Activate Led)
        button_k02 = atoi(str);
        //******************************************************
        // Activate or deactivate LED_03
        //******************************************************
        // wait for positive front  (button_k02 go from 0 to 1 )
        if (button_k02 == 1) {
          led_k03 = not( led_k03 );
          digitalWrite(13, led_k03);
          sendValue( LED_03, IOT );
        }

  • 15 - Upload sketch

We Are Ready to Help You

Get the Best Solution for Your Fun