View unanswered posts | View active topics It is currently Thu Sep 18, 2014 1:39 am






Reply to topic  [ 4 posts ] 
(simple) Coding for my Robotic Arm Base 
Author Message
Expert

Joined: Wed Jun 30, 2010 7:15 am
Posts: 181
Post (simple) Coding for my Robotic Arm Base
This is the coding that powers my Robotic Arm Base
Code:
task main () {

  //variables 
  int speed= 0;
  int counter;
  int WaitingTime = 150;

  wait10Msec(500); //start doing stuff five seconds after program start
  while (true) { //loop until the mars floods
    for (counter=0; counter < 99; counter++) //slowly increase speed
    {
      speed++;
      motor[motorA] = speed;
      motor[motorC] = speed;
      wait1Msec(WaitingTime);
    }
   
    //stay on maximum speed for five seconds
    motor[motorA] = 100;
    motor[motorC] = 100;
    wait10Msec(500);

    for (counter=0; counter < 99; counter++) //slowly decrease speed
    {
      speed--;
      motor[motorA] = speed;
      motor[motorC] = speed;
      wait1Msec(WaitingTime);
    }
  }
}


Wanna know more about my robotic arm base? Check out the following post(s):
Robotic Arm Base
Robotic Arm Base Turning (video)

_________________
leonoverweel.com


Sat Oct 16, 2010 3:22 pm
Profile WWW
Rookie
User avatar

Joined: Sun Jan 02, 2011 1:57 am
Posts: 31
Post Re: (simple) Coding for my Robotic Arm Base
pretty cool! how many kits went into that? i find the number of gears found in the nxt kit to be limiting... i would get nothing done if it wasnt for my RCX kit with all of its gears....

_________________
Karan Hiremath
FTC Team 110- MFS Foxes
Co-Captain
Head Programmer
Builder
Electrical
Service Coordinator


Sun Jan 02, 2011 8:03 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3221
Location: Rotterdam, The Netherlands
Post Re: (simple) Coding for my Robotic Arm Base
I tend to supplement my NXTs with normal Technic sets. The alternative is to buy the parts you need from Bricklink.

- Xander

_________________
| 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 03, 2011 2:22 am
Profile WWW
Expert

Joined: Wed Jun 30, 2010 7:15 am
Posts: 181
Post Re: (simple) Coding for my Robotic Arm Base
Thank you! Yeah... I got most of these parts from the pneumatic truck (the black/ red one) and the yellow bulldozer.+

DiMastero

_________________
leonoverweel.com


Thu Jan 06, 2011 5:19 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.