Go to advanced search

by alcaron
Sun Dec 23, 2012 8:26 pm
Forum: Automation, sensing and robotics
Topic: ePIR always shows True. [Solved]
Replies: 5
Views: 1306

Re: ePIR always shows True.

Ok, I figured it out. First, the code (as that was the real problem). from time import sleep import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(25, GPIO.OUT) GPIO.setup(24, GPIO.IN) GPIO.output(25, True) sleep(3) while 1: input_value = GPIO.input(24) print(input_value) sleep(1) GPIO.cleanup()...
by alcaron
Sun Dec 23, 2012 4:57 pm
Forum: Automation, sensing and robotics
Topic: ePIR always shows True. [Solved]
Replies: 5
Views: 1306

Re: ePIR always shows True.

Thanks when I try to hook it up in serial I will bear that in mind! I do think I'm going to try a bit longer to get it to work in HWI over the GPIO, partially because, well, I want to figure out how to work with GPIO, but also because it just seems more suitable for what I'm using it for.

Thanks!
by alcaron
Sun Dec 23, 2012 4:41 pm
Forum: Automation, sensing and robotics
Topic: ePIR always shows True. [Solved]
Replies: 5
Views: 1306

Re: ePIR always shows True.

Also, am I wrong to think that just running a lead from the 0.0v pin on the Rpi would set it to 0v? This is a terrible time for my stupid multimeter to flake out. But they make no mention of pin 4 being driven at all so again, hooking it up to nothing should be the same as setting it to ground yeah?...
by alcaron
Sun Dec 23, 2012 4:39 pm
Forum: Automation, sensing and robotics
Topic: ePIR always shows True. [Solved]
Replies: 5
Views: 1306

Re: ePIR always shows True.

Hardware Interface Mode Selection The Hardware Interface Mode is selected when TXD/SNS is between 0 V and 1.8 V during power ON or when exiting SLEEP Mode. TXD/SNS is set to ground so, that should be setting it to HWI correct? I have not tried connecting in serial, they described it as more advance...
by alcaron
Sun Dec 23, 2012 2:18 am
Forum: Automation, sensing and robotics
Topic: ePIR always shows True. [Solved]
Replies: 5
Views: 1306

ePIR always shows True. [Solved]

Ok, so this is my very first Rpi project, I'm trying to hook up a ePIR from sparkfun. Pins 1,3,4 and 8 are all GND. Pins 2,6 are 3.3v. Pin 5 is GPIO18. Pin 7 is GPIO17. http://www.sparkfun.com/datasheets/Sensors/Proximity/SEN-09587-PS0284.pdf I was trying to adapt this: http://ninjablocks.com/groups...

Go to advanced search