|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
Re: How to make a max speed
Quote:
|
|
#4
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |