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 Have a question about Sensors? Ask our expert Jane Awittor
  • 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
  • Replies 27 replies
  • Subscribers 318 subscribers
  • Views 2952 views
  • Users 0 members are here
  • power_integrity
  • solid_state_relays
  • experts
  • ask_an_expert
  • power
  • ask_the_expert
  • power_electronics
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'!

Have a question about Sensors? Ask our expert Jane Awittor

patkelly
patkelly over 13 years ago

Jane's Expertise:image Sensors.

 

About Jane:

Jane is a technical specialist for Panasonic, supporting a broad line of sensors such as pressure, passive infrared, active and infrared array sensors.  Whether it’s a new design or an upgrade to existing design, Jane has the technical expertise to support customers with their various sensor requests.

 

She is an electrical engineer with 5 years of experience specializing in Passive Infrared (PIR), Infrared Array and Pressure Sensors. Focused on technical sales support and interface to research and development teams in Japan. Developed proposals for new product enhancements, competitive product studies and SWOT analysis.

 

 

Read more about Jane

 

If you need help on anything about Electromechanical Signal, Power, and Solid State Relays, please post your question here!

 

If your not already, you'll need to login or register to ask your question - just click reply

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 12 years ago

    Hi Jane,

     

    I am hoping you can help me with a problem.  I am using an AMN31111 PIR sensor from Panasonic.  I have it connect to a 5V source, with the output connected to an LED (via a resistor) to light when the sensor detects movement.

     

    When I wire it up this way, the LED flashes in a repeating pattern over and over.  If I stand in front of the sensor, the LED does stay on (mostly), but still flickers a little. 

     

    I am wondering whether I have misunderstood the design of the sensor.  I was planning to wire it into a GPIO port of a raspberry pi (via a resistor to bring the voltage down to around 3V when high).  However, this repeating pattern of high/low has me stumped.  According to the data sheet, the sensor should only make the output go high on movement and should be open line when there is no detection of movement.

     

    I have tried repositioning the sensor pointing across the room, and even outdoors at night time with nothing in front of it of course.  It doesn't change the repeating pattern.

     

    Could you possibly advise of what I might have done incorrect?  I purchased two of these sensors and they both behave the same way.

     

    Thanks.

     

    Damien.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 12 years ago

    Hi Jane,

     

    I am hoping you can help me with a problem.  I am using an AMN31111 PIR sensor from Panasonic.  I have it connect to a 5V source, with the output connected to an LED (via a resistor) to light when the sensor detects movement.

     

    When I wire it up this way, the LED flashes in a repeating pattern over and over.  If I stand in front of the sensor, the LED does stay on (mostly), but still flickers a little. 

     

    I am wondering whether I have misunderstood the design of the sensor.  I was planning to wire it into a GPIO port of a raspberry pi (via a resistor to bring the voltage down to around 3V when high).  However, this repeating pattern of high/low has me stumped.  According to the data sheet, the sensor should only make the output go high on movement and should be open line when there is no detection of movement.

     

    I have tried repositioning the sensor pointing across the room, and even outdoors at night time with nothing in front of it of course.  It doesn't change the repeating pattern.

     

    Could you possibly advise of what I might have done incorrect?  I purchased two of these sensors and they both behave the same way.

     

    Thanks.

     

    Damien.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • michaelkellett
    michaelkellett over 12 years ago in reply to Former Member

    The sensor specification states that the maximum output current is 100uA so it isn't really capable of driving an LED - if your resistor is at least 60k the sensor would be OK but I'm not sure that you'll be able to see the LED at all. If you buffer the output with a mosfet or transistor for LED driving it would be better. You may also need a decoupling capacitor across the sensor power supply.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to michaelkellett

    Hi Michael,

     

    Thanks for your reply.

     

    The PIR is getting its power from the 5V0 pin of a raspberry pi, and grounding through the same device.  It is not otherwise attached to the rpi in any way. 

     

    I am using a 120 Ohm resister between the output of the AMN31111 to the LED.  The LED is quite visible.

     

    But I'm only using the LED to test that the PIR works as I envisaged it would.  The plan is to wire the output of the PIR to a GPIO pin on a Raspberry Pi.  But first, I am trying to understand why the PIR keeps flashing the LED when there is no motion in front of the sensor.  I have tried pointing it into the back yard at night time where I know there is nothing in front of it within its detection range, and yet it still flashes the LED in a repeating pattern as described in my original post.

     

    Any ideas?

     

    Thanks


    Damien.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • sidecircle
    sidecircle over 8 years ago in reply to Former Member

    Hi, In case you would stumble over the same problem and end up here after deep google searches typing "AMN31111 always high" like the above thread initiated by Damien: here's how I worked around the problem: The reason I got always 1 is that there's a need for a pull-down resistor which I hadn't, and you probably neither. One easy way (at least if you are on an arduino, or esp8266, is to use the analogue pin: as soon as I switched to the A1 pin on my esp8266, I could clearly distinguish a "preson in range" signal =1024 from a "no person in range" signal around 5 or more ... I guess the digital input translated the later one into high without the pull-down resistor.

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