Shop OBEX P1 Docs P2 Docs Learn Events
polling 2 banks of photodiodes with high resolution — Parallax Forums

polling 2 banks of photodiodes with high resolution

sniffersniffer Posts: 1
edited 2009-05-15 02:09 in BASIC Stamp
Hi,

I am using a basic stamp 2p24 with a professional development board. I am designing a system with 2 banks of photodiodes (3 diodes / bank) to track motion of objects through both banks. My goal is that all 3 diodes in bank A will be polled (either simultaneously or in succession) and then a 100 milliseconds (approximately) later bank B diodes will be polled. After each poll the state of the diode banks will be consolidated and stored. For instance, if bank A's diodes read [noparse][[/noparse]0 0 1] bank A = 1. yet if bank A reads [noparse][[/noparse]0 0 0] bank A = 0. In this case any interruption in either bank will be tracked.

Can anyone point me to the best source for similar code? a wiring schematic with a similar board would be helpful too. I have experience wiring and coding for past Boe Bot projects but that has been years!

Thank you!
Sign In or Register to comment.