Sharp IR Sensor Tutorial for the Propeller Activity Board
ChrisL8
Posts: 129
Parallax has this really nifty dual sensor stand with a PING))) and a Sharp IR Sensor:
http://www.parallax.com/product/725-28998
And Parallax has lots of documentation on the PING))) Sensor usage, including a great tutorial for electronic neophytes like myself.
http://learn.parallax.com/activitybot/build-and-test-ping-sensor-circuit
But I don't find anything similar for the Sharp IR Sensor.
So is there a tutorial for using the Sharp IR sensor with the Propeller Activity Board?
Or can we make one here?
Or is the Sharp IR sensor not a good investment?
I haven't bought any yet, but I thought I'd try some of these combo units to help my robots avoid "silent" obstacles, but only if I think I can make them work with the Propeller Activity Board without too much fuss.
Thanks!
http://www.parallax.com/product/725-28998
And Parallax has lots of documentation on the PING))) Sensor usage, including a great tutorial for electronic neophytes like myself.
http://learn.parallax.com/activitybot/build-and-test-ping-sensor-circuit
But I don't find anything similar for the Sharp IR Sensor.
So is there a tutorial for using the Sharp IR sensor with the Propeller Activity Board?
Or can we make one here?
Or is the Sharp IR sensor not a good investment?
I haven't bought any yet, but I thought I'd try some of these combo units to help my robots avoid "silent" obstacles, but only if I think I can make them work with the Propeller Activity Board without too much fuss.
Thanks!
Comments
I love Parallax but I'm also sucker for cheap ebay sensors. Similar sensors are available on ebay for seemingly impossible prices.
Yes, the threads with you and erco finding cheap ebay sensors are what came up when I searched the forum for this topic. Considering how many such threads there are, I imagine you two as some sort of sensor hoarders.
I'll probably start with Parallax, because I appreciate the support and venture out once I am ready to start adding more and more sensors to my project.
Regarding the onboard ADC on the AB, it has 4 ports, so does that mean it can only read 4 IR sensors?
I've managed to collect an extremely large horde of sensors over the last six years. I'm sure my collection is small compared with many forum members.
I did the same thing. It's a good idea IMO since Parallax offers so much support on using their sensors. Once you've been doing this awhile it will be safer to try wild frontier of ebay.
I don't have an AB but that's the way I understand it. You could always add another ADC chip. The MCP3208 has 8 analog inputs and can be controlled with three I/O pins.
Like Duane said, a MCP3208 will give you another 8 channels of analog input. I2C interface, which is pretty easy.
There are I2C ADC chips but the MCP3208 is SPI. (But still ones and zeros used to communicate.)
IIRC The AB's ADC chip is also SPI. I think Parallax wanted the speed SPI can provide over I2C (which the PropBOE uses with its ADC chip).
I2C can be used with two pins but you have to send an address of the device with each request for data (or at least the first request). SPI requires at least one additional pin but this extra pin is used to identify it's the chip being accessed so it doesn't require an address. Because of this (not sending an address), SPI is generally faster than I2C.