element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Photonics
  • Challenges & Projects
  • Project14
  • Photonics
  • More
  • Cancel
Photonics
Blog IR Break Beam IFTTT Sensor
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Photonics to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: carmelito
  • Date Created: 4 Apr 2020 10:38 PM Date Created
  • Views 3692 views
  • Likes 10 likes
  • Comments 3 comments
  • photonicsch
  • esp8266
  • ifttt
Related
Recommended

IR Break Beam IFTTT Sensor

carmelito
carmelito
4 Apr 2020

If you are into home automation or just starting with home automation, then this is a simple project to undertake. Basically as part of this project I am putting together IR break Beam IFTTT node, which send a message to the IFTTT cloud based on which you can trigger events, like send you a text message, email , turning on the lights in your home etc, when the IR beam is broken. In my case, I am using  Adafruit Feather HUZZAH which uses the ESP8266, which I think is most famous WiFi thing in the world today. Hoping this will spark some idea’s, and please leave a comment below, if you an interesting use-case.

image

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

The circuit is simple, the IR break beam sensor receiver the one with the three wires is connected to the pin#4 of the ESP8266 feather. And if you wondering how I got the transmitter and receiver to point to each other, I just hot glued them to the end of the bread board.

image

The best part about the Adafruit Feather HUZZAH in addition to its WiFi capability, is that you can use a Lipo battery and it has a built in battery charging circuit, which means you can use the sensor node when you are out an about.In the picture above, I am using a OLED feather wing, which is not really required. I am using one because I have one handy and it help debugging , if you plan on doing something a little more complex,in the field.

 

Here is the link and some more info on the IR break beam sensor’s I am using. The sensor is maded of an emitter side that sends out a beam of human-invisible IR light, then a receiver across the way which is sensitive to that same light. When something passes between the two, and it’s not transparent to IR, then the 'beam is broken' and the receiver will let you know

Compared to PIR sensors, break beams are faster and allow better control of where you want to detect the motion. Compared to Sonar modules, they're less expensive. However, you do need both emitter and receiver on opposite sides of the area you want to monitor.

The IR beam break sensor that I am using in my project are 3mm IR version.  It works up to 25cm / 10". You can power it from 3.3V or 5V, but 5V will get you better range and is what we suggest. The receiver is open collector transistor output which means that you do need a pull up resistor if you want to read a digital signal off the signal wire. Most microcontrollers have the ability to turn on a built in pull up resistor. And you will need an Arduino IDE, with the esp8266 package installed, to upload the code. Check out this learning guide .

 

As part of the code above, a IFTTT webhook is invoked, which acts as the IF part of the applet and for the else/THEN part you can either trigger a text message, email or even switch on the lights if you have a Phillips Hue setup at home, you have a lot of option on the THEN side-

image

 

Here is are screenshots of the notifications received, from IFTTT

 

image

  • Sign in to reply

Top Comments

  • genebren
    genebren over 5 years ago +2
    Cool little project! Thanks for sharing.
  • Fred27
    Fred27 over 5 years ago +2
    Do you know if the beam break sensor modulates the IR it sends? That tends to make it far less susceptible to interference from sunlight, etc. I don't see it mentioned in the Adafruit documentation. It…
  • carmelito
    carmelito over 5 years ago in reply to Fred27 +1
    Thanks for the comment Fred, I will research this over the weekend.. -Carmelito
Parents
  • genebren
    genebren over 5 years ago

    Cool little project!  Thanks for sharing.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • genebren
    genebren over 5 years ago

    Cool little project!  Thanks for sharing.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube