BS2 Sample Code for Ping/IR Sensors...
ppillard
Posts: 22
Hi. Brace yourselves: Noob here .
Been dabbling into the BS2 pool and having a great time with it. Really enjoying the "What's a Microcontroller?" Tutorials. Already built a pretty cool automated filtration system managed by a basic stamp to integrate into my alternative fueled truck.
I'm looking into proximity detection now for collision avoidance, and it looks like the dual Ping/IR sensors are gonna be my ticket, however there is no sample code attached to the product sheet (http://www.parallax.com/product/725-28998) like with previous parallax products I have purchased. What am I missing?
Thanks for any help.
Been dabbling into the BS2 pool and having a great time with it. Really enjoying the "What's a Microcontroller?" Tutorials. Already built a pretty cool automated filtration system managed by a basic stamp to integrate into my alternative fueled truck.
I'm looking into proximity detection now for collision avoidance, and it looks like the dual Ping/IR sensors are gonna be my ticket, however there is no sample code attached to the product sheet (http://www.parallax.com/product/725-28998) like with previous parallax products I have purchased. What am I missing?
Thanks for any help.
Comments
This dual sensor also doesn't have the ability to scan like the PING with its servo bracket. You have to build your own or turn the entire robot to scan the environment if you want to do that and the existing Roaming with PING software would need some changes for that.
I would start with Roaming with PING and just use the PING for now. Do get the IR sensor working either with RCTIME or an external ADC, but as a separate test program. Work that in with your roaming program later after that's working with the PING.
Experiment with each of the sensors separately.
The MCP3202 is a nice analog to digital converter with sample code on the product page as well. If you want to try using RCTIME, Look at the webpage whose link I provided in Post #2. There's a lot of other great stuff for the BS2 on that webpage as well. Look under RCtime command.
I can't believe I missed that. I'm an idiot. Thank you, Mike, for your great information and even better patience. Have a great night. I'm diving in.