Project question
tbenner
Posts: 2
I'm thinking of building a project where I can detect an led light which is moving about in an area around 9 by 9cm. I'm thinking of using an array of 16x16 photo detectors to do this, which would be connected to a Basic Stamp 2p40 module. From what I've read, the 2p40 module has 32 I/O pins, which I'd be using 16 for output and 16 for input. I just want to be sure all 32 I/O pins can be used(there isn't any gotchas somewhere). I would rather use a Basic Stamp as opposed to an Arduino, since I have not used an Arduino before and this needs to get built fairly quickly.
Also what external circuitry would be needed to power up and run the 2p40? Does Parallax have a schematic drawing of what I would need? I guess I would use the professional development board if I wanted to prototype the 2p40?
Thanks
[Tim]
Also what external circuitry would be needed to power up and run the 2p40? Does Parallax have a schematic drawing of what I would need? I guess I would use the professional development board if I wanted to prototype the 2p40?
Thanks
[Tim]
Comments
More commonly, people use something like the 74HC595 and 74HC165 for I/O expanders (output and input respectively). These can be cascaded and should be more than fast enough for your project. You'd have two 74HC595s for 16 outputs and two 74HC165s for 16 inputs. You could use a BS2p24, use 3 I/O pins for the 74HC595s and 3 I/O pins for the 74HC165s (serial clock, serial data, and latch clock). There's plenty of sample code in the StampWorks Manual.
Thanks for the info, this is helpful.
Ideally it would be nice to have a sheet of material which is sensitive to IR light. This material would have a voltage output for the two axes. The voltage would go from say 0 to 5V on each axis, depending on where the light struck the material. Given that we have touch sensitive tablets today and such, I would think something like this would be possible, but have not found anything.
Anyone else ever heard of something like this?
[Tim]