Go to Post There is something to be learned (sometimes hard to find) from everyone you meet. - wireties [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 01-02-2005, 18:50
Team 668 Team 668 is offline
Registered User
#0668 (The Apes of Wrath)
 
Join Date: Jul 2004
Location: San Jose, CA
Posts: 14
Team 668 is an unknown quantity at this point
How to make a max speed

we want to make a motor on our robot have a max speed so it doesnt just shoot to fastest speed. what is the programing code. we are planning to hook it up to a pwm and use the p2_wheel to control it. thx for input.
  #2   Spotlight this post!  
Unread 01-02-2005, 20:13
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: How to make a max speed

If you want to measure the max speed in feet/s or m/s, you will need a way to measure the robot's speed. Trial and error - use the code to assign one value to the speed controllers, and measure the actual speed. Then limit the speed controller to the closest value that you want. If you want some sort of more advanced, much more reliable, and all-around better solution, experiment with some sort of encoder - either the hall effect sensors or maybe an optical encoder to read actual speed off the drive system.
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
  #3   Spotlight this post!  
Unread 02-02-2005, 17:44
Team 668 Team 668 is offline
Registered User
#0668 (The Apes of Wrath)
 
Join Date: Jul 2004
Location: San Jose, CA
Posts: 14
Team 668 is an unknown quantity at this point
Re: How to make a max speed

Quote:
Originally Posted by steven114
Then limit the speed controller to the closest value that you want.
how would i limit the speed controller to the speed i want. what is the code for that.
  #4   Spotlight this post!  
Unread 02-02-2005, 17:54
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: How to make a max speed

if (yourpwm > p2_wheel) yourpwm = p2_wheel;

Watch out, because our wheels go from 64-250, they don't actually hit 0
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
not quite sure...speed controller...spike. tophq Programming 8 26-03-2004 13:43
Segway max speed? Morgoth Dean Kamen's Inventions 2 15-04-2003 20:11
Power, speed, and torque... AGH Gui Cavalcanti Technical Discussion 5 10-11-2002 19:02
Ahhhh! I've had it with 3dstudio max! AnnyRob 3D Animation and Competition 6 29-01-2002 11:23
Autodesk Inventor -> 3ds Max (File Format) Adrian Wong Inventor 1 22-01-2002 23:06


All times are GMT -5. The time now is 17:15.

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