Block description

• This block lets you create projects where the sensors on the GraspIO board can be used as Triggers to be used while creating applets on IFTTT.
• Similarly, the board’s peripherals and saved projects can be used as Actions while creating applets on IFTTT.

Accounts on IFTTT

To create applets on IFTTT, you'll need to use (or create)

  • IFTTT accounts for the services you intend to use on IFTTT. (ex- Amazon Alexa, Philips Hue, etc)
  • IFTTT account for GraspIO

To log in to your GraspIO account,you will need the password associated with your GraspIO Studio account.
In case you have created your GraspIO account on GraspIO Studio using your social accounts (Facebook or Gmail), (and thus, don't have a password specific to GraspIO), you will need to set a new password for your GraspIO account.

The steps for this are as shown below -

  1. Log out of GraspIO Studio.
  2. Select 'Connect with email' on the home screen.
    connect_with_email.jpeg
  3. Select the 'Log in now' option as shown below.
    login.jpg
  4. Select the 'Forgot password' option.
    forgot_pw.jpeg
  5. Enter your registered email ID where you will receive an authentication OTP.
    email.jpeg
  6. Enter the OTP received on your email.
    otp.jpeg
  7. Proceed to set a new password.
    password.jpeg

App interface and usage

Mode of operation

A project can use the board in either one of two states – Trigger and Action.

Trigger 1

The default mode of operation selected is Trigger.

Operation in Trigger mode

In this mode, trigger(s) can be created using the on-board and external sensors and their values.

Here, you can select the number of sensors to be monitored for the trigger.
Trigger 1

A maximum of 3 sensors can be used as triggers.
Trigger With 3 Sensors 1

After the number of sensors used as triggers is set, the input blocks must be dragged inside the block, and their parameters (operator, port, comparison value) set.
Trigger 3

Example: IFTTT block used as Trigger with 3 sensors being used as triggers with different trigger values. Any one of these can be used as a trigger in the IFTTT applet that you would create on IFTTT.
Trigger With 3 Sensors 2

Operation in Action mode

In this mode, once the block is set to Action, it is invoked by IFTTT in response to the trigger created in the applet.
No further action is required on the app.
Action 1

Guidelines

  1. After the board is configured as an Action or Trigger, you would need to create an applet on IFTTT that uses this Action/Trigger.
  2. One applet cannot use the same board as a Trigger and as an Action at the same time.
  3. When an IFTTT project is uploaded to the board, the board stays in a wait state either till the
  • Trigger is fired on the board, or
  • Action is run on the board externally by IFTTT

Steps to create an IFTTT applet that uses GraspIO

Using GraspIO as Trigger (If THIS)

Step 1: GraspIO Studio

  1. Create the trigger on GraspIO. In this example, the trigger is set to be fired when the value of the analog IR sensor connected to S1 is greater than 25.
    Applet 1

  2. Upload the code to your board named ‘Myboard’ in this example.

Step 2: IFTTTT

  1. For the This (Trigger) section, select GraspIO.
    Applet 2

  2. Choose the trigger type. (Select Trigger on Analog sensors as analog sensor is being monitored on the board)
    Applet Trigger 2

  3. Select the trigger fields
    (This list displays the triggers you created in your project)
    2
    (The selection corresponds to the trigger created on GraspIO Studio for board ‘MyBoard’ for the IR sensor connected to port S1 with the trigger condition Greater than 25)

  4. After the trigger is set, the Action needs to be set. You can use any of the generic services on IFTTT or Action on another GraspIO board.

Using GraspIO as Action (then THAT)

Step 1: On GraspIO Studio

Here, you can drag abd drop an IFTTT block in Action mode and upload the project.
No other action is to be taken on the app side.
Applet 5

Step 2: On IFTTTT

After selecting the GraspIO service, you can proceed to select the Action.
Applet 6

Here, you can select from the list of available actions.
Cloudio Proj

These actions let you –

  • run projects saved in your account
  • execute actions on the output peripherals connected to or on the board

Each action is described below.

Display text on OLED screen

Applet 8

Beep Buzzer

Applet 9

Control RGB LED

Applet 10

Speak the entered text

Applet 11

Control Servo Motor

Applet 12

Control Digital Output ports

Applet 13

Flash RGB LED

Applet 14

Capture a photo/GIF

Applet 16

Run a project

Applet 15

Examples

  1. Creating an applet using Cloudio as a Trigger
    Ex 1
    Trigger: Value of Light sensor connected to port S1 crosses 400 on Cloudio
    Action: Blink Hue lights

Step 1: Configure Cloudio as a Trigger and upload the project to the board
Ex Trigger

Step 2: Create the applet on IFTTT by

Selecting this Trigger from the GraspIO service on IFTTT and selecting the trigger.
Cloudio Trigger
Cloudio Trigger 2

Selecting Hue action from Hue service on IFTTT
Hue

  1. Creating an applet using Cloudio as an Action
    Ex 2

Trigger: You say 'Alexa trigger pet feeder project'
Action: Pet Feeder project runs on Cloudio

Step 1: Configure Cloudio as an Action and upload the project to the board
Ex Action

Note: Make sure you have a project titled Pet Feeder saved in your account.
Pet Feeder

Step 2: Create the applet on IFTTT by

Selecting Trigger from the Alexa service on IFTTT
Alexa

Alexa 2
Selecting Action from the GraspIO service on IFTTT
Cloudio Proj

Cloudio Proj 2