Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
PIR sensor code to the Javelin — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
General Discussion
PIR sensor code to the Javelin
vic-solar
Posts:
7
2008-02-15 23:05
edited 2008-02-16 17:40
in
General Discussion
I was just wondering if there is out there such a code, I want to read an input from the PIR Sensor.
thanks!!!
Comments
Peter Verkaik
Posts:
3,956
2008-02-16 10:06
edited 2008-02-16 10:06
If this is the PIR you are referencing:
http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/CategoryID/13/List/0/Level/a/ProductID/83/Default.aspx?SortField=ProductName%2cProductName
then just use CPU.readPin() because the PIR outputs a digital signal. Something
is either detected or it is not.
regards peter
vic-solar
Posts:
7
2008-02-16 17:40
edited 2008-02-16 17:40
yes!!
Peter that is the sensor i was talking about!!!
I'm going to write a little function with your advice and see if I can make it work!!
thanks a lot!!!
victor
Sign In
or
Register
to comment.
Comments
http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/CategoryID/13/List/0/Level/a/ProductID/83/Default.aspx?SortField=ProductName%2cProductName
then just use CPU.readPin() because the PIR outputs a digital signal. Something
is either detected or it is not.
regards peter
Peter that is the sensor i was talking about!!!
I'm going to write a little function with your advice and see if I can make it work!!
thanks a lot!!!
victor