View unanswered posts | View active topics It is currently Thu Dec 18, 2014 6:09 am






Reply to topic  [ 3 posts ] 
Frycooker 
Author Message
Expert
User avatar

Joined: Sat Sep 20, 2008 12:16 pm
Posts: 106
Location: Curently fighting aliens on P3X-828
Post Frycooker
I built and programed a robot called Frycooker.
Here is the code:
Code:
#pragma config(Hubs,  S1, HTServo,  none,     none,     none)
#pragma config(Motor,  motorA,          Rotate,        tmotorNormal, PIDControl)
#pragma config(Motor,  motorB,          Arm,           tmotorNormal, PIDControl, reversed)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
{
   motor[Arm] = 50;
   wait10Msec(25);
   motor[Arm] = 0;
   motor[Rotate] = 50;
   wait10Msec(25);
   motor[Rotate] = 0;
   motor[Arm] = - 50;
   wait10Msec(25);
   motor[Arm] = 0;
   ClearTimer(T1);
   while(time100[T1] < 4200)
   {
      nxtDisplayCenteredTextLine(2, "Cooking");
   }
   motor[Arm] = 50;
   wait10Msec(25);
   motor[Arm] = 0;
   motor[Rotate] = - 50;
   wait10Msec(25);
   motor[Rotate] = 0;
   motor[Arm] = - 50;
   wait10Msec(25);
   motor[Arm] = 0;
   ClearTimer(T1);
   while(time100[T1] < 600)
   {
      eraseDisplay();
   }
   motor[Arm] = 50;
   wait10Msec(25);
   motor[Arm] = 0;
   motor[Rotate] = 50;
   wait10Msec(25);
   motor[Rotate] = 0;
   motor[Arm] = - 50;
   wait10Msec(25);
   motor[Arm] = 0;
   ClearTimer(T1);
   while(time100[T1] < 1800)
   {
      nxtDisplayTextLine(2, "Cooking");
   }
   motor[Arm] = 50;
   wait10Msec(25);
   motor[Arm] = 0;
   while(true)
   {
     eraseDisplay();
      PlaySound(soundBeepBeep);
   }
}


There is only 1 problem: NXT motors are WEAK!!! The robot can't lift the fry basket!!!

_________________
:downloading:
Sorry, your program could not be downloaded. Please reboot your computer.
FTC Team #2959 Team Smash Bros CLICK HERE.(or click www)
Quote:
What the world needs is more geniuses with humility, there are so few of us left.

Agreed


Thu Sep 25, 2008 7:30 pm
Profile WWW
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post Re: Frycooker
Use gearing to reduce the motor speed and increase the "power" / torque. Reduce the motor speed by 5:1 or even higher.


Sat Sep 27, 2008 2:37 am
Profile
Expert
User avatar

Joined: Sat Sep 20, 2008 12:16 pm
Posts: 106
Location: Curently fighting aliens on P3X-828
Post Re: Frycooker
Thanks!

_________________
:downloading:
Sorry, your program could not be downloaded. Please reboot your computer.
FTC Team #2959 Team Smash Bros CLICK HERE.(or click www)
Quote:
What the world needs is more geniuses with humility, there are so few of us left.

Agreed


Sat Sep 27, 2008 3:40 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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.