View unanswered posts | View active topics It is currently Sun Feb 07, 2016 2:51 am

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Ultrasonic Sensor Questions
Author Message
Rookie

Joined: Tue Jun 12, 2012 3:06 am
Posts: 1
Ultrasonic Sensor Questions
Hi Forums!

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 4760 times ] PlayingBoard.png [ 57.29 KiB | Viewed 4760 times ]
Tue Jun 12, 2012 3:38 am
Moderator

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 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
Novice

Joined: Tue Aug 11, 2009 11:49 pm
Posts: 61
Location: Tasmania, the Land Down Under, the Land Downunder!
Re: Ultrasonic Sensor Questions
If you mean using multiple US Sensors: http://www.rjmcnamara.com/2012/07/robot ... 4x-sonars/

_________________
regards

Ray (Sparra) Mc

My Blog: www.LegoMindstormsRobots.com
Lot's of Robotic Projects with FREE Code and Instructions....

Wed Jul 25, 2012 12:00 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 3 posts ]

#### 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

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    2014 Robotics Academy Summer of Learning    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge