Can basic stamp do this with pir and ping
j4nk3r
Posts: 6
i want to program on basic stamp with 2 pir and 1 ping, but i do not know what type basic stamp must i use ( Basic stamp 2, SX,P or other).
this below is algoritm
1.read pir1 (pir1 is ON for first time.in this part , pir2, and ping is OFF)
2.if pir1 have value 1 then read ping ( if this part is true , pir2 and pir1 is oFF and ping is ON)
3.if ping have value 200 then read pir2 ( if this part is true pir2 is ON then ping is OFF and pir1 is OFF)
4.if pir2 have value 1 then read pir1 ( if this part is true , pir2 is OFF and pir1 is ON, ping is· OFF)
Please help me how to program on basic stamp ?·and what type of basic stamp ?
Thanks
·
this below is algoritm
1.read pir1 (pir1 is ON for first time.in this part , pir2, and ping is OFF)
2.if pir1 have value 1 then read ping ( if this part is true , pir2 and pir1 is oFF and ping is ON)
3.if ping have value 200 then read pir2 ( if this part is true pir2 is ON then ping is OFF and pir1 is OFF)
4.if pir2 have value 1 then read pir1 ( if this part is true , pir2 is OFF and pir1 is ON, ping is· OFF)
Please help me how to program on basic stamp ?·and what type of basic stamp ?
Thanks
·
Comments
Have a look at the datasheet for the PING sensor.· It shows a lot of information regarding its performance characteristics, how to connect it, and sample code.·
http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/CategoryID/51/List/0/Level/a/ProductID/92/Default.aspx?SortField=ProductName%2cProductName