Shop OBEX P1 Docs P2 Docs Learn Events
Can basic stamp do this with pir and ping — Parallax Forums

Can basic stamp do this with pir and ping

j4nk3rj4nk3r Posts: 6
edited 2007-12-11 14:03 in BASIC Stamp
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
·

Comments

Sign In or Register to comment.