Hi,
I have several sharp 2D120X ir rangefinder modules. I want to multiplex an array of three of these so that I can rangefind using a Parallax Propeller microcontroller and an MCP3208 ADC. Each rangefinder uses the same ir frequency, so only one can be on at any given time when sampling. Each 2D120X has a Gnd, Vo and Vcc pin ie no ENABLE pin.
Since these devices are "always on", I thought I might be able to use several NPN transistors to power each ir rangefinder on in turn, in a round-robin fashion and read the Vo of each using the MCP3208 ADC.
Can I just connect the Vcc pin of the 2D120X to Vcc rail (3.3v), the GND pin to the NPN collector, the NPN emitter to GND rail and the NPN Base to a Propeller output pin? Perhaps a BC879?
Thanks
I have several sharp 2D120X ir rangefinder modules. I want to multiplex an array of three of these so that I can rangefind using a Parallax Propeller microcontroller and an MCP3208 ADC. Each rangefinder uses the same ir frequency, so only one can be on at any given time when sampling. Each 2D120X has a Gnd, Vo and Vcc pin ie no ENABLE pin.
Since these devices are "always on", I thought I might be able to use several NPN transistors to power each ir rangefinder on in turn, in a round-robin fashion and read the Vo of each using the MCP3208 ADC.
Can I just connect the Vcc pin of the 2D120X to Vcc rail (3.3v), the GND pin to the NPN collector, the NPN emitter to GND rail and the NPN Base to a Propeller output pin? Perhaps a BC879?
Thanks