element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
  • About Us
  • 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
IoT: In the Cloud
  • Challenges & Projects
  • Project14
  • IoT: In the Cloud
  • More
  • Cancel
IoT: In the Cloud
Blog Proximity Sensor: Hidden IR Detection using Arduino
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join IoT: In the Cloud to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: nikhilstephen
  • Date Created: 19 Mar 2019 8:26 PM Date Created
  • Views 3828 views
  • Likes 9 likes
  • Comments 11 comments
  • pyroelectric
  • embedded microcontroller
  • arduino project
  • pyroelectric sensors
  • sensors
  • iotcloudch
  • proximity sensors
  • proximity detector
  • electronics
  • kemet
  • ultasonic sensors
Related
Recommended

Proximity Sensor: Hidden IR Detection using Arduino

nikhilstephen
nikhilstephen
19 Mar 2019

image

Our Pyroelectric sensors are an interesting device that allows you to detect the presence of a person while hiding the sensor from view. This property works well when you want to create an otherwise static poster into an animated one. For simplicity, we used an LED, a microcontroller Arduino, and our SS-430 IR Pyroelectric Sensor.

Let me set the environment. Here at KAIC, our application intelligence lab, located in KEMET tower (check it out here), we wanted to highlight a message within a poster with in an interesting creative way. We had our new SS-430 sensor laying around, so we decided to add it to the back of one of our informative posters, which is made of foam core board material.

Simplicity

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

 

 

 

We attached the sensor to the back of the poster, added a microcontroller (Arduino) to read the sensor and drive an LED. This setup allowed us to detect when someone placed their hand in front of the poster and we would light up the switch. The set up works well to work as a switch. But to understand how this circuit works, let me start by explaining how our infrared sensor works.

Let’s Get Technical…

KEMET’s Pyroelectric Infrared (IR) Sensors use the pyroelectric effect of ceramic by absorbing infrared rays emitted from the human body. Different from your grandpa’s infrared sensor, where you need to have a dedicated emitter IR LED illuminating an area. When an object comes into the proximity, the IR bounces back to detect the object.

The SS-430 detects the presence of a person differently by identifying a base IR signature of the environment. When this signature changes, it generates a signal as following:

 

image

 

Note how when the hand approaches the embedded sensor, the signal from the sensor is 2 square waves of 200 msec each. When the IR presence is removed from the viewing area, then a second set of square waves can be detected.

The Connections

Knowing the behavior of the sensor, for this quick project we had the following connections:

  • We connected power from the Arduino 5V, ground the sensor’s 5V, and ground.
  • We also connected the Signal ground from the sensor to the Arduino’s A1 pin.
  • Finally, added a green LED via a 500 ohm resistor

image

 

 

Arduino Code

 

int Pyro = A1;
unsigned long PyroRead = 0;
unsigned long IR_threshold = 198000; // Note: SS-430 has two pulses of 200msec per detection.
// IR_threshold is in microsec (usec), therefore 198msec threshold
int LED = 7;
int Detected = LOW;
int IR_sensed = 0;
void setup() {
pinMode (7, OUTPUT); //LED Connected to Pin 7
pinMode (A1,INPUT); // IR Sensor connected to A1
} void loop() {
while ((IR_sensed < 2)){ //Break after 2 good triggers
PyroRead = pulseIn(A1, HIGH); //Measure trigger point
if(PyroRead > IR_threshold){ //Make sure trigger is over 198msec)
IR_sensed++; //Mark as a good trigger
}
}
if (Detected == HIGH){ // Turn LED OFF if it was previous ON
Detected = LOW;
digitalWrite(7, LOW);
}
else {
Detected = HIGH; // Turn LED ON if it was previous OFF
digitalWrite(7, HIGH);
}
PyroRead = 0; // Reset readings
IR_sensed = 0;
delay(1000); // Accept triggers after a second

How it works

As soon as the program starts, it will scan the A1 pin, looking to measure a pulse. We are expecting two pulses of 200 msec each when a person has been detected. We measure the pulse and determine if it is an OK pulse by counting for two pulses per triggering event. Once a trigger has been found, the LED is turned ON or OFF based on its prior status. We end by waiting for one second before a second trigger can be processed.

Conclusion

Working with KEMET’s Infrared Sensor is easy  and works well when embedded into a device. You can place discrete sensors that do not break the industrial design of a product, by having a window or filter.

For more information on the sensor:

  • Datasheet
  • Embedded using this sensor
  • For more information check out this Webinar
  • Sign in to reply

Top Comments

  • fmilburn
    fmilburn over 6 years ago +3
    Interesting... A couple of things drawn from the datasheet: maximum current 800 uA, input voltage range 3.5 to 5.5 V warm up time is 30 seconds max. One of the benefits is stated to be "Excellent radio…
  • nikhilstephen
    nikhilstephen over 6 years ago in reply to dubbie +3
    Happy to help. please check out our article that talk all about proximity sensor. https://ec.kemet.com/make-sense-of-kemets-proximity-sensor
  • shabaz
    shabaz over 6 years ago +2
    Hi Nick, Nice write-up. Very interesting sensor!
Parents
  • dubbie
    dubbie over 6 years ago

    Nick,

     

    Very interesting. I like it's use to make an interactive poster. I have looked at these pyroelectric sensors for a while thinking they are good but not sure what to do with one. I like the array pyroelectric sensors so that you can get more information about what has been detected. I'm thinking of some sort of cat detector.

     

    I tried making an interactive poster one, using Bluetooth and a set of headphones that the person would need to put on. I obtained all the parts, but never managed to get anything working. Your approach looks much simpler and easier to implement.

     

    Dubbie

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

    Nick,

     

    Very interesting. I like it's use to make an interactive poster. I have looked at these pyroelectric sensors for a while thinking they are good but not sure what to do with one. I like the array pyroelectric sensors so that you can get more information about what has been detected. I'm thinking of some sort of cat detector.

     

    I tried making an interactive poster one, using Bluetooth and a set of headphones that the person would need to put on. I obtained all the parts, but never managed to get anything working. Your approach looks much simpler and easier to implement.

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • nikhilstephen
    nikhilstephen over 6 years ago in reply to dubbie

    Happy to help. please check out our article that talk all about proximity sensor.

    https://ec.kemet.com/make-sense-of-kemets-proximity-sensor

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago in reply to nikhilstephen

    Nick,

     

    I looked up your link. These sensors look interesting, but do seem a bit expensive when compared to others. The grid array ones (GRID EYE)  are not much more expensive.

     

    Dubbie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • nikhilstephen
    nikhilstephen over 6 years ago in reply to dubbie

    Our sensors are very unique compared to others. They operate based on the pyroelectric effect of ceramic, meaning they only turn on when the sensor is heated or cooled (infrared energy from human body). They are also very flexible aesthetically, they pretty much become invisible in application. We also offer these sensors in a module solution which includes a circuit board, sensor and a microcomputer. The driving is already being done for you which makes our proximity sensor plug and sense.

    Here's more information.

    https://search.kemet.com/component-edge/#/browsing/technology?id=903

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago in reply to nikhilstephen

    Nick,

     

    Yes, I did see that they have the capability to blend into the product which is nice. I didn't see any development boards on the Farnell web site, maybe I didn't look properly.

     

    Dubbie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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