Go to Post Dave Lavery just responded to one of my posts. I think that I might die. - Karibou [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2008, 15:08
program1's Avatar
program1 program1 is offline
Registered User
AKA: RJ
FRC #2441
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryknoll
Posts: 43
program1 will become famous soon enough
Arm movement

hi, im try to make a program for a arm with MPLAB, is there any guides or references that could help me make one?
__________________
ok, who ate my hot pocket?
  #2   Spotlight this post!  
Unread 27-01-2008, 20:38
eaglesfan10's Avatar
eaglesfan10 eaglesfan10 is offline
Registered User
FRC #1647 (Iron Devils)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2005
Location: New Jersey
Posts: 19
eaglesfan10 is an unknown quantity at this point
Re: Arm movement

How does the arm work? Does it use a motor? Pneumatics? What do you want it to do?
  #3   Spotlight this post!  
Unread 28-01-2008, 10:20
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Arm movement

the great thing, and the worst thing at the same time about MPLab is that you have to make everything yourself. Unlike easyC (i dont use it cuz it has the word 'easy'), MPLAB allwos almost more control (IMHO) because I have created everything, and i know it inside out. the problem is that i also have to figure everything out myself, or, with the other team members...

.....enough with the rant...you can control the rm however you want. you could use a Victor and have speed control, or you could use a spike with something likea globe motor or a solenoid and pneumatics
__________________


  #4   Spotlight this post!  
Unread 28-01-2008, 11:49
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 685
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: Arm movement

I struggled with mplab and robot programming many years ago, so I know what you're going thru. But you do have to have some more info for us to work with. Also knowing what level of programming smarts you have helps, so we don't talk over your head. Reading the material from the FAQs here helps too. We can't do all your homework!

Programming is the link between driver (or autonomous mode) and robot parts. And it doesn't matter if it is mplab or easy-c or Robo-COBOL (which does sound like a cool name to program robots): you have to know what you want -- in detail -- before you can program it.

How is the arm moving? What motors or pneumatics? Do you have limit switches so the arm itself or the motor doesn't go beyond it's range? (These are questions I give to the manufacturing crew to answer.) You will eventually need input/output plug numbers, but to start just what is driving the arm is needed.

How is the driver to move the arm? Joystick or one of it's buttons, or a separate control attached to the controller? Or is it automatic -- when the ball sits on the robot a limit switch is pressed and the arm is raised. (Just as an example.) It's somewhat easy to change which control later, but you need something to start with.

Most controls are written in an if statement. In pseudo-code:
Code:
if <joystick button 1 pressed>, then <drive motor b>, else <stop motor b>
Obviously, once you figure out which button and motor, fill in the blanks.

Adding a limit switch to stop automatically only adds another if inside this if:

Code:
if <joystick button 1 pressed>, then 
    if <limit switch 2 not pressed>, then 
        <drive motor b>
    else
        <stop motor b>
else
   <stop motor b>
Just go thru the different possibilities to make sure every possible combination is covered. (The above code is incomplete, but it'll give you a starting point.)

To have something continue after the button is released requires a variable set to say "if equal to 1 the button was already pressed - continue until limit switch pressed and then set variable to zero." (That last part is important!)

Write back when you get more info.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Movement Hunter1539 Rules/Strategy 4 09-01-2008 22:06
PWM translates to movement? Generalx5 Electrical 18 15-07-2007 23:23
The Rack movement G-Ball Rules/Strategy 5 03-02-2007 08:03
Mecanum Suspension Movement Rob2713g Technical Discussion 10 14-12-2006 19:22


All times are GMT -5. The time now is 23:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi