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 & Tria 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum PIR Sensor ultra sensitive
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 20 replies
  • Subscribers 297 subscribers
  • Views 2065 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

PIR Sensor ultra sensitive

tonyd512
tonyd512 11 months ago

Hello,

New to Element 14

Needing a PIR sensor (or something more appropriate) sensitive enough to detect box elder bugs. They are about 1/4 inch long. Sensor needs to have short range maybe 3-4 ft or so.

ideally it would trigger a smart phone on a tripod aimed at the target area. These bugs crawl quite slowly mostly but do fly as well.

Need a little guidance choosing an appropriate sensor for the project. This will be indoors.

Tony D

  • Sign in to reply
  • Cancel

Top Replies

  • kmikemoo
    kmikemoo 11 months ago +2
    While electronics would be cool, if you can't localize the point of entry based on sightings, I would go with a simpler approach. They could also be "replicating" inside. You might be able to secure…
  • shabaz
    shabaz 11 months ago +1
    What's the actual goal? What is the use-case? By 'trigger a smart phone aimed at the target area' do you mean to trigger a smart phone camera? Or something else? If all you wish to do is to take photos…
  • shabaz
    shabaz 11 months ago in reply to tonyd512 +1
    There are some interesting solutions described here: https://stackoverflow.com/questions/189943/how-can-i-quantify-difference-between-two-images There's a simple one mentioned there which is to just…
Parents
  • beacon_dave
    0 beacon_dave 11 months ago

    If they are localised to the one area and slow-moving, then I would start with Shabaz's suggestion of a simple camera with intervalometer.

    Initially set it to take an image every minute or so and leave it running for a day. Review the captured images by using a photo viewer app that allows you to quickly flick through a folder of images until you find any activity. Or you can turn the image sequence into a video and watch the video which will then playback at the frame rate you encoded at, typically around 30fps.

    If you don't want to tie up an existing camera all day, then perhaps look at a cheap 'nature cam' which usually have intervalometer features.

    You can then reposition the camera as necessary and then reduce the time interval to get more detail.

    The issue you may have is that they may enter the room elsewhere then quickly fly to the location you are seeing them in before they start crawling slowly.

    Comparing file sizes may not work for you here depending on how the light varies, the file compression being used and how much of the image changes. I have successfully used it in the past for detecting the likes of sunrise and sunset though.

    You might have more success with the likes of OpenCV for this.

       Images Comparison with Opencv and Python
       https://www.youtube.com/playlist?list=PL6Yc5OUgcoTlQuAdhtnByty15Ea9-cQly

    If it is to be a longer term project then perhaps a R Pi with camera running OpenCV to automate the process. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • beacon_dave
    0 beacon_dave 11 months ago

    If they are localised to the one area and slow-moving, then I would start with Shabaz's suggestion of a simple camera with intervalometer.

    Initially set it to take an image every minute or so and leave it running for a day. Review the captured images by using a photo viewer app that allows you to quickly flick through a folder of images until you find any activity. Or you can turn the image sequence into a video and watch the video which will then playback at the frame rate you encoded at, typically around 30fps.

    If you don't want to tie up an existing camera all day, then perhaps look at a cheap 'nature cam' which usually have intervalometer features.

    You can then reposition the camera as necessary and then reduce the time interval to get more detail.

    The issue you may have is that they may enter the room elsewhere then quickly fly to the location you are seeing them in before they start crawling slowly.

    Comparing file sizes may not work for you here depending on how the light varies, the file compression being used and how much of the image changes. I have successfully used it in the past for detecting the likes of sunrise and sunset though.

    You might have more success with the likes of OpenCV for this.

       Images Comparison with Opencv and Python
       https://www.youtube.com/playlist?list=PL6Yc5OUgcoTlQuAdhtnByty15Ea9-cQly

    If it is to be a longer term project then perhaps a R Pi with camera running OpenCV to automate the process. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • tonyd512
    0 tonyd512 11 months ago in reply to beacon_dave

    This is a long term project as I have been at it for 2 seasons now (about a year) I will try these image comparison suggestions and see how it works. Since this will be over 24 hr observation period lighting will vary from day to night. I'm guessing I will have to have bright lights on the area to minimize ambient variations.......

    I will post my results after I learn and  experiment with the software solutions. I conclude from all this feedback that a PIR sensor is not practical for this application.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave 11 months ago in reply to tonyd512

    For a longer term bug hunt solution you could perhaps consider adding a pan-tilt hat into the equation. That way you can run multiple interval captures in parallel, potentially covering a larger area.

    A camera slider might be another option for this type of surveillance as you can run the camera parallel to a wall.

    https://shop.pimoroni.com/products/pan-tilt-hat

    https://www.adafruit.com/product/3353

    https://www.waveshare.com/pan-tilt-hat.htm

    https://www.arducam.com/product/arducam-pan-tilt-platform-for-raspberry-pi-camera-2-dof-bracket-kit-with-digital-servos-and-ptz-control-broad-b0283/

    Lighting will indeed affect this, both in colour temperature and intensity. If you are using automatic iris on a camera then your depth of field will also reduce in lower levels of light potentially causing issues as well. If you are comparing between successive images though then it can be less of an issue as less variation between captures. Also some pre-processing can be done before the comparison and thresholds can be adjusted.

    You could perhaps attach a LED illuminator to the camera so as you are only illuminating the area being captured and keep it at a consistent level. 

    Ultrasonic sensors might be worth a look though as often insects can make a lot of noise at specific frequencies.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • BigG
    0 BigG 11 months ago in reply to beacon_dave
    beacon_dave said:
    Ultrasonic sensors might be worth a look though as often insects can make a lot of noise at specific frequencies.

    You may be on to something. I know Ultrasonic transducers/emitters are claimed to be able to repel rodents and insects etc. Maybe it could work in this scenario.

    Came across this blog that provides one persons experiences (with ants).

    https://www.tomsguide.com/news/i-used-an-ultrasonic-pest-repeller-against-an-ant-invasion-heres-what-happened

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