nkBotMan wrote: »
I was on youtube the other day and found some BOE Bots roaming, using the ping dar for object avoidance. I was wondering if anyone would have some source code to point me in the right direction on how to go about doing that.
Thanks in advance,
- I know that the variables could be more user friendly?
- I know that "Stamps In Class" is probably not the right forum (put in Propeller Forum?)... and maybe add to OBX as an example of "POLAR to CARTISIAN" and "USE OF SCALING (with explanation)?
- Also know that the "scaling" could use more explanation?
Provide feedback if you think the above recommendations need to be addressed or if you think something else needs to be addressed.· Thanks.
Get a prop proto board and try this program.· Prop is a lot faster.
Working CCNA certification.· Wish I had more time for Prop projects.· Merry Christmas.
Try the "Roaming with the PING)))" zip file on the Ping))) sensor product page.
You might also like the "Scan and Go To Closest Object" chapter of the Stamps in Class Mini Projects book. The book and code are both posted for free download.
I need help. When I run TestPingDirection.bs2, my ping servo goes in circles when its supposed to go only 0 degrees and then 180 degrees. Changing the LimitLeft and LimitRight values does not stop it from going in circles. Any solutions?
P.S. For the TestPingDirections.bs2, changing the counter values in the FOR...NEXT statements helped but there's no was to express that in PING)))DAR.bs2
Another approach would be to place a cup, a box and a third object in known (X,Y) positions of a Cartesian coordinate system, make the BOE bot measure the distances to the objects and then calculate its own x,y position using resection.
The biggest problem would be to identify each object.