Im designing a program for my ROBOTC robot to play the mathematical game of Nim, which can be googled easily to find information on the game. I've got my robot assembled and playing board all ready to go (I will include pictures!) its just that I have a few concerns that I wanted to get cleared up so I can get a better understanding.

1. I've read and read on the ultrasonic sensor but for my playing board design and robot, I'm having trouble visualizing how the sensor remembers/stores the position of the playing piece/object, some of the ideas is having a playing piece acting as a "stop" piece, and the program/robot will count/record the number of stops occured before detecting the "stop" piece. Another idea I had is using colored pieces to act as live pieces and "stop" pieces. If someone could give me feedback on my methods, please do =D

2. Based on my playing board and robot, am I missing any necessary components needed? (Shaft encoders, more buttons, pentionometers?)

3. If Nim is the program im aiming for, during what appropriate time should the robot be doing the calculations, after all pieces are scan or do an entire scan, reverse back to start and then play the game?

Thank you very much everyone!

=D

Attachments:

Robot.png [ 64.34 KiB | Viewed 5336 times ]

PlayingBoard.png [ 57.29 KiB | Viewed 5336 times ]

Tue Jun 12, 2012 3:38 am

magicode

Moderator

Joined: Tue Sep 14, 2010 9:19 pmPosts: 496

Re: Ultrasonic Sensor Questions

Very cool project. Can you give a little more information about how your playing field and robot are set up (how are you manipulating objects, how is the robot sensing its way around the field...ect)? There's lots of ways to go about this, and more information will help choose the best path for your particular scenario. As for the ultrasonic sensor, all it does is give you the distance to an object. It does not store any information about the position. It is up to you to implement that behavior in your program if you want it.

_________________sudo rm -rf /

Sat Jun 16, 2012 1:45 am

sparramc

Novice

Joined: Tue Aug 11, 2009 11:49 pmPosts: 62Location: Tasmania, the Land Down Under, the Land Downunder!

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum