Project showcase
Snap Circuits® - Snapino IFTTT

Snap Circuits® - Snapino IFTTT © GPL3+

Trigger a motion event using your Snapino and IFTTT.

  • 1,831 views
  • 0 comments
  • 8 respects

Components and supplies

Apps and online services

About this project

Follow the Snap Circuits platform!

Overview

What Are Snap Circuits?

Snap Circuits makes learning electronics easy and fun! Learn how to integrate Snap Circuits with your hardware. Fun for Kids!

Introductory Project

If you have not completed the introductory project, please see Snap Circuits - Introduction. This project also contains a complete index of Snap Circuit projects.

Let's Get Started

Project Objective

This experiment will demonstrate connecting the Snapino to a IFTTT Maker Webhook using the Arduino WiFi 101 Shield and the Snap Circuits Motion Detector to trigger events.

Building the Circuit

The minimum set requirement for this project is SC-300, Snap Motion and the Snapino. Build the following circuit by following the directions in the PDF file:

Scroll down to see and download the PDF file containing complete build instructions (the PDF file can also be found in the GitHub repository).

Completed Circuit

IFTTT

IFFFT is a web site that allows you to configure triggers and action events that can be tied to IoT devices as well as many other services such as Twitter and Facebook. It stands for "If this then that".

We will use it in this project to trigger an action from the motion detector. See the attachment at the end of the project that describes how to setup your account and create the triggers and actions for this project.

In the instructions document for setting up IFTTT, there are instructions on how to setup SMS in case you do not have a LIFX bulb or some other service to trigger an action on. Here is a screen shot of the SMS text messages sent from IFTTT.

How this Works

The Circuit

The motion detector component U7 can detect motion when powered with 5V. The middle snap on the U7 component will have an output of HIGH when motion is detected and LOW when there is no motion. The Snapino monitors the output of the motion detector on pin 9.

The LED D1 is connected to pin 3 through the current limiting resistor R1 to ground. When pin 3 is HIGH, the LED will turn on. When pin 3 is LOW the LED will turn off.

The Software

The sketch will initialize pin 9 for INPUT and pin 3 for OUTPUT. It also initializes the Wi-Fi network. When motion is detected, the LED is turned on and a "motion" event is triggered on IFTTT. When pin 9 goes LOW (no motion), the LED is turned off and the "nomotion" event is sent to IFTTT.

Code

Source Code for all Snap Circuit Projects
This is the GitHub repository for all of the source code, documents and files presented in the Snap Circuit projects.

Schematics

Circuit Instructions
IFTTT Instructions

Comments

Similar projects you might like

Snap Circuits® - Snapino Capacitance Meter

Project showcase by Daniel Porrey

  • 1,040 views
  • 2 comments
  • 5 respects

Snap Circuits® - Light Controlled Launcher

Project tutorial by Daniel Porrey

  • 1,363 views
  • 1 comment
  • 4 respects

Snap Circuits® - Push Button Monitor

Project tutorial by Daniel Porrey

  • 1,169 views
  • 0 comments
  • 8 respects

Snap Circuits® - Button Controlled Launcher

Project tutorial by Daniel Porrey

  • 3,177 views
  • 0 comments
  • 11 respects

Snap Circuits® - Count Down Launcher

Project tutorial by Daniel Porrey

  • 2,209 views
  • 2 comments
  • 11 respects

Snap Circuits® - Push Button LED

Project tutorial by Daniel Porrey

  • 2,131 views
  • 0 comments
  • 10 respects
Add projectSign up / Login