Go to Post The real question is not whether any teams have had metal in a speed controller, it's whether any teams haven't. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 20-12-2004, 15:14
doyler doyler is offline
Rookie / Programmer
#0900 (Infinity)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Durham
Posts: 87
doyler is an unknown quantity at this point
Re: Rookie help

the gyro has a pwm, and my only job is to make the sensors move or something

sensors go to pwm out? if so, the black is on top right
the gyro goes to analog in with the black on botton?

if all this is correct thank you and i will probably have questions later about what all these do and what / how to code
__________________
  #2   Spotlight this post!  
Unread 20-12-2004, 15:21
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Rookie help

Quote:
Originally Posted by doyler
sensors go to pwm out? if so, the black is on top right
the gyro goes to analog in with the black on botton?

if all this is correct thank you and i will probably have questions later about what all these do and what / how to code
Yes, black on the outside, or the pin furthest from the controller, of each connector.
The gyro is a sensor and the servos are specialized motors.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 20-12-2004, 15:30
doyler doyler is offline
Rookie / Programmer
#0900 (Infinity)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Durham
Posts: 87
doyler is an unknown quantity at this point
Re: Rookie help

um, i have 4 pwm out pins, but only three holes, does the closest one not matter for these servos?
__________________
  #4   Spotlight this post!  
Unread 20-12-2004, 15:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Rookie help

Quote:
Originally Posted by doyler
um, i have 4 pwm out pins, but only three holes, does the closest one not matter for these servos?
Leave the inside pin unconnected. It's a duplicate power pin.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 20-12-2004, 15:41
doyler doyler is offline
Rookie / Programmer
#0900 (Infinity)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Durham
Posts: 87
doyler is an unknown quantity at this point
Re: Rookie help

I can use any 2 pwm out pins right
And I just put the gyro in the first digital in spot
__________________
  #6   Spotlight this post!  
Unread 20-12-2004, 15:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Rookie help

Quote:
Originally Posted by doyler
I can use any 2 pwm out pins right
And I just put the gyro in the first digital in spot
Yes, any pwms will do for the servos.

If you are starting with the default EDU code, that arranges for the first two inputs to be analog, so either 1 or 2 will work.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #7   Spotlight this post!  
Unread 20-12-2004, 15:49
doyler doyler is offline
Rookie / Programmer
#0900 (Infinity)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Durham
Posts: 87
doyler is an unknown quantity at this point
Re: Rookie help

Will the default EDU code have stuff that i can just upload and make it work, just to learn the workings?
__________________
  #8   Spotlight this post!  
Unread 20-12-2004, 15:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Rookie help

Quote:
Originally Posted by doyler
Will the default EDU code have stuff that i can just upload and make it work, just to learn the workings?
Yes. Start with that. Also get the EDU documentation from the innovationfirst.com website:
http://innovationfirst.com/FIRSTRobo...04-Jan-14a.pdf
http://innovationfirst.com/FIRSTRobo...10-15-2003.pdf
http://innovationfirst.com/FIRSTRobo...t_02-16-04.zip
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 20-12-2004, 16:01
doyler doyler is offline
Rookie / Programmer
#0900 (Infinity)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Durham
Posts: 87
doyler is an unknown quantity at this point
Re: Rookie help

And I just use MPLAB IDE to mess with it right?

Also, what kind of code am i looking for just to make these things move for starters

What code(s) will I have to upload as well?
__________________

Last edited by doyler : 20-12-2004 at 16:16.
  #10   Spotlight this post!  
Unread 20-12-2004, 16:17
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Rookie help

Quote:
Originally Posted by doyler
And I just use MPLAB IDE to mess with it

Also, what kind of code am i looking for just to make these things move for starters
Yes, learn to use MPLAB.
How about putting something like this where it says "/* Add your own code here. */" in the file "user_routines.c" in the routine "Process_Data_From_Master_uP"
Code:
static unsigned char servo1=0; //Put these two lines right before the "Getdata" call
static unsigned char counter=0; // ditto
 
//Put these lines after "Add your own code"
 
if (counter < 20) // about half a second in the slow loop
counter++;
else
{
counter = 0;
 
if (servo1 < 255)
	servo1++; // servo1 will slowly step through each of it’s positions
else
	servo1 = 0; // servo1 will quickly reset to the zero position
}
pwm03 = servo1;
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-12-2004 at 15:03. Reason: explicit type unsigned
  #11   Spotlight this post!  
Unread 20-12-2004, 16:21
doyler doyler is offline
Rookie / Programmer
#0900 (Infinity)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Durham
Posts: 87
doyler is an unknown quantity at this point
Re: Rookie help

Thank you, i will fiddle and learn from that code (is user routines akin to autonomous cause i dont know how im gonna make them move if it isnt)

1 more question (i hope) how and what do i upload to my controller now?
__________________

Last edited by doyler : 20-12-2004 at 16:34.
  #12   Spotlight this post!  
Unread 20-12-2004, 16:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Rookie help

Quote:
Originally Posted by doyler
Thank you, i will fiddle and learn from that

1 more question (i hope) how and what do i upload to my controller now?
Here are the basic steps:
  1. You’ll need to install MPLAB, IFI_Loader, and the mcc18 compiler on your computer.
  2. Download the default EDU code from http://innovationfirst.com/FIRSTRobo...umentation.htm (this will have a default.hex file that can be downloaded into the controller without having to edit anything with MPLAB) Save the original .zip file so you can restore the default code if some edit goes terribly wrong.
To edit the default code:
  1. Start MPLAB
  2. Select File -> Open Workspace…
  3. Browse to the EDU default code folder
  4. Open Default.mcw
  5. Make your code changes
  6. Use the “Build All” icon or select Project -> Build All (this will create a .hex file)
Start IFI_Loader
  1. Browse to the default code folder
  2. Select “Default.hex”
  3. Connect the serial cable from your computer to the EDU controller
  4. Turn on the EDU controller
  5. Press the “Prog” button until the program light turns orange
  6. Click on “Download” in IFI_Loader
Your program will start running.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-12-2004 at 08:29. Reason: Added innovationfirst link and clarified notes for later readers
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
Rookie 2005 Nats Qualification? Alexander McGee Championship Event 2 27-10-2004 10:14
Senior Project 05: Mini competition to help fundraise for local rookie teams Alex Cormier Fundraising 0 07-10-2004 15:58
Rookie Regionals rachakate Regional Competitions 5 24-03-2004 00:01
I want to have a rookie nationals! Tton Championship Event 5 23-04-2003 14:46


All times are GMT -5. The time now is 02:29.

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