Apologies if this is off-topic; I'm not sure where else to ask.

I've tried working through Adafruit's lovely tutorial, but it appears that the component I'm working with (EKMC1603112) is not set up the same way as Adafruit's. (I had no idea there could be such variance.)

I currently have the PIR signal (OUT on page 5 of the datasheet) wired to GPIO1 (BCM 18) on the Pi and VDD (5V) and GND wired to their respective pins. (I can take a picture if necessary, but there is another component wired up that will make the circuit slightly confusing.)

I'm using the following code, modeled after the Adafruit tutorial, assuming red is VDD, black is GND, and yellow is signal.

import RPi.GPIO as io
import time
io.setup(18, io.IN)
while True:

When I run this code, RPi.GPIO.input is returning True regardless of whether or not motion is (supposedly) being detected. What am I doing wrong?

I have it set up exactly as Adafruit does, less the component wired from BCM23 to GND.


closed as too broad by goldilocks May 17 '15 at 7:53

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Is it feasible that the component is DOA? – Sean Allred Jan 13 '14 at 19:18
  • Very nice formatting, with a picture to sport! – syb0rg Jan 14 '14 at 0:16
  • 1
    @syb0rg XD Thanks? I've had a bit of practice ;) Just thought I'd branch out and try something <del>useful</del>new. – Sean Allred Jan 14 '14 at 0:21
  • I'm not sure if you've noticed, but I've been going through a lot of posts lately and editing them to improve their format. It's nice to have a little break with this one. – syb0rg Jan 14 '14 at 0:30
  • @syb0rg Ha! I know the feeling. Sometimes I wonder if newcomers realize SE uses markdown. – Sean Allred Jan 14 '14 at 0:33

Browse other questions tagged or ask your own question.