In this instructable, we will build a motion detector and trigger IFTTT events from that device.

You may create IFTTT recipes for receiving email if someone is inside the house or switching a Belkin WeMo when you walk into a room.

As the motion detector cannot directly contact IFTTT, we will use Lithouse as the broker.

Step 1: DIY Motion Detector

You will need the following components:

  • LED, Breadboard and some Wires.

Please connect these components as shown in the image.

  • Mount the Ethernet Shield on Arduino.
  • Connect the 5V and GND pin of the PIR to the respective heads of the Arduino Ethernet Shield.
  • Connect the PIR’s output pin to the pin #2 of the Ethernet Shield.
  • Connect the negative (short) leg of the LED to GND of the Shield.
  • Connect the positive (long) leg of the LED to one of the end of the 330 Ohm resistor.
  • Connect the other end of the 330 Ohm resistor to the pin #7 of the Shield.
<p>(copy from another thread)</p><p>Thanks for the mention! We love being part of the Arduino community experiments. Feel free to grab yourself a free account with SMTP2GO - you can send 25 messages per hour and a total of 1000 per month. Paid plans offer more, of course! :)</p><p><a href="http://www.smtp2go.com" rel="nofollow">www.smtp2go.com</a></p>
<p>Looks like lithouse is no more :(</p>
<p>I suspect lithouse has folded. At least the web pages this Instructable links to don't have the content they used to.</p>
<p>I've been trying to figure this out for a while: is there a way to have a Lithouse channel change based on an IFTTT. For example: I send a text to IFTTT, and it sends a message to Lithouse so that I can turn on an LED connected to my Arduino? I'm looking at the LithouseEthernet example and it does what I want, but how do I change the value of that ledChannel through IFTTT? As far as I can tell, this only works right now to send info from the Arduino to IFTTT, not the other way around.</p>
At present, it only works one way i.e. from Lithouse to IFTTT. Two way communication is in our wish list.<br>
<p>For some reason, I'm having problems with my Arduino and Wiznet shield not getting connected to your API. Do you have any suggestions? I used the code in your example and the instructable above. The only thing I added was the device key from my own device in the list on developer.Lithouse.co What am I missing?</p>
<p>We haven't tested it in Wiznet. Do you have any log?</p>
<p>This is the shield I'm using: <a href="https://www.sparkfun.com/products/9026." rel="nofollow"> https://www.sparkfun.com/products/9026. </a> It's the Wiznet ethernet shield. I don't know if I'm being blocked by my router or maybe my ISP.</p><p>I can see values populate in the Serial Monitor</p><p>Connecting . . . to ethernet</p><p>Connecting . . . to lithouse</p><p>FSR Reading = 425</p><p>FSR Reading = 329</p><p>FSR Reading = 281</p><p>and so on.</p><p>I never see anything show up in lithouse.</p>
<p>same issue, it seems sending to lithouse just fine but it's never trigger.</p>
<p>I found the <br>device in our database. That means the device was created successful using the <br>Web UI. However, I could not find any write request from the device.</p><p>Perhaps you may <br>add some Serial.println inside the send() method in LithouseClient.cpp.</p>
<p>A more direct connection to IFTTT would be better. Lithouse should get their own channel on IFTTT and not rely on an email trigger.</p>
<p>Thanks for the feedback rmarler. </p><p>We just released Lithouse app in the App store (<a href="https://itunes.apple.com/app/id866665066" rel="nofollow">https://itunes.apple.com/app/id866665066</a>). It is a one stop place for controlling all your smart home devices. This version supports Philips Hue and Belkin WeMo switch.</p><p>Please download, use and let us know your feedback.</p>
<p>... And is there an Android app in the Google Play Store?</p>
<p>No, we do not have any app in the Google store.</p>
<p>as is done in this example for the program to send an email notification ?? because the current code is not necessary to use an ethernet shield .. could connect the LED directly to the arduino ..</p>
Lithouse has some nice examples, but sending and email trigger to ifttt via smtp2go or some other simple email sending service is not difficult at all.
Thanks for the smtp2go reference. But, as you pointed out, Lithouse is more than IFTTT integration. We provide remote read and write access to DIY devices.

About This Instructable




Bio: Control your home with ease
More by lithouse:Getting Started with Autodesk Fusion 360 Triggering IFTTT from Arduino using Lithouse 
Add instructable to: