ROBOTC.net forums
http://www.robotc.net/forums/

If you are good a programing please help!!!
http://www.robotc.net/forums/viewtopic.php?f=11&t=8455
Page 1 of 1

Author:  fangdang13 [ Wed Apr 09, 2014 12:53 pm ]
Post subject:  If you are good a programing please help!!!

Ok so i am building a marble sorter and our basic design is a light sensor (digital1) that reads weather the marble is black or clear then sorts it accordingly into one of 2 cups. The light sensor is on ramp in which the marble slides down and is stopped by a wheel (motor port 3) so it can be read. once the light sensor reads the number the wheel turns and allows only that ONE marble to pass through it. the rest of the marbles are fed one by one in this fashion. As this is happening the two cups that are below it are attached on a pate across from each other which turns by a motor in the center (motor port 4). The motor has an encoder (in11) that the drive shaft passes through so that it knows how how far to turn to catch the marble. when the marble rolls down (say it is a clear one) the cups turn to allow it to fall in the left cup. If the marble is black, the cups turn and the right cup catch it, then they return to there starting positions. The problem i am having is to get the motor that controls the cups to listen to the encoder and only turn a specified about when the light sensor reads the the marble. the whole process works in a this happens then this happens then this happens then it resets and does the whole thing again forever. The wheel is connected to a motor and it should turn to allow only one marble through at a time so the light sensor has a chance can read it.
I know this is really confusing but if you have any questions either post them or text me at :713 825 5818 you can also call between 2:10 & 3:00.
What i am asking is for someone who knows there good at programing to post how to do this (like post the code not just say how to do it). Thank you soooo much !!!! :D :D :D

Author:  CARBOT [ Wed Apr 09, 2014 9:10 pm ]
Post subject:  Re: If you are good a programing please help!!!

You will want to start by making a flow chart so you understand the process. Next write it in pseudocode, finally write and debug the RobotC code. If you need help getting started post a picture of the machine with a flow chart.

Author:  Kevin Selavko [ Wed Apr 09, 2014 11:21 pm ]
Post subject:  Re: If you are good a programing please help!!!

Is this a personal project or a school project?

Author:  mightor [ Thu Apr 10, 2014 5:47 am ]
Post subject:  Re: If you are good a programing please help!!!

It sounds very school project-y :)

= Xander

Author:  Kevin Selavko [ Thu Apr 10, 2014 12:09 pm ]
Post subject:  Re: If you are good a programing please help!!!

I assumed haha, but its somthing that I might have found fun to do myself, so Im asking.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/