View unanswered posts | View active topics It is currently Wed Jun 01, 2016 4:19 am






This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Question About Cable Winding Mechanism 
Author Message
Rookie

Joined: Sun Jan 17, 2016 12:20 am
Posts: 5
Post Question About Cable Winding Mechanism
we have the project that is due next week Friday
Cable Winding Mechanism
A telecommunications contractor need you team design a device that can accurately wind up a specific length of cable.
The device must be able to wind a specific length consistently. The device must also be able to be started and stopped(emergency) by using a switch.

what I think is:
I want to start the motor when I press bumb1
the motor will go -63 and 63 depends the value of SONAR<30 and SONAR>=30
If the length is 60, then will go up by auto. And if the length is 20, then it will go down by auto.
The bumb2 will stop the Motor no matter when the length is at
when I press the bumb2 again the motor will start again
*We have thing that is on the rope, so the Sonar will knows how far is it. But it has +-2cm
*We have to stop the motor first before we change the direction

this is what I wrote:
Code:
   while(1==1)
   {
      if(SensorValue(bump1)==1   &&   SensorValue(SONAR)<30)
      {
         stopMotor(Motor);
         wait(0.2);
         startMotor(Motor, -63);
      }
      if (SensorValue(bump1)==1 && SensorValue(SONAR)>=30)
      {
         stopMotor(Motor);
         wait(0.2);
         startMotor(Motor, 63);
      }
      while(SensorValue(SONAR)>=60)
      {
         stopMotor(Motor);
         wait(0.2);
         startMotor(Motor,63);
      }
      while(SensorValue(SONAR)<=20)
      {
         stopMotor(Motor);
         wait(0.2);
         startMotor(Motor,-63);
      }
      if(SensorValue(bump2)==1)
      {
         stopMotor(Motor);
      }
   }

is this right?


Sun Jan 17, 2016 12:41 am
Profile
Moderator
Moderator

Joined: Tue May 19, 2015 3:07 pm
Posts: 91
Post Re: Question About Cable Winding Mechanism
I believe this is a duplicate of a post in the cortex section and it is being addressed there.


Thu Jan 21, 2016 10:35 am
Profile
Rookie

Joined: Sun Jan 17, 2016 12:20 am
Posts: 5
Post Re: Question About Cable Winding Mechanism
I am apologize for that because I didn't know where can I post the thread here


Fri Jan 22, 2016 12:37 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Question About Cable Winding Mechanism
Topic locked to prevent additional comments

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Jan 25, 2016 10:09 am
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.