|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
How do you set a speed limit on the servo
hey guys , we are pretty new to this and we are trying to gear down one of our servos . We are not pretty sure how to do that , and i have been trying to use Robogui to do it but it doesn't seem to do anything or i guess i am not doing the right thing
what is the code to gear down the servo , we 've been looking around and we don't know what the maximum number is and the lowest number etc... if you guys are able to help that will be great. |
|
#2
|
||||
|
||||
|
Re: How do you set a speed limit on the servo
Quote:
There are still two primary ways I can think of off the top of my head to slow down servo travel: 1) GEAR IT DOWN (for real) on the servo output with gears! For every 2:1 geardown, you get 1/2 the speed. The disadvantage is that you also reduce the total end to end travel by the same amount.2) "Walk" the servo slowly in software, by gradually incrementing and sending a new "target position value" over MANY loops. Example: Assume the servo is at position 100 now (range is 0-255) and wish to end up at position 200. If you increment the output position value by ONE each loop it will take you 100 loops, or roughly 2.5 seconds to get there. If you wish faster travel simply increment by a larger amount per loop. For slower travel, take several loops to increment the output by one with an additional "factor counter" variable. Fractional increments can also be done this way... For example: For every three loops, increment the desired target position by two. In all cases, once done you keep resending the final target position value for each loop thereafter. Does this make sense to you? - Keith |
|
#3
|
|||
|
|||
|
Fares,
Do you mean servos or the EduRobot motors? |
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
hey guys thanks for the input , well what i am getting from u is that there is no easy way of coding the speed of the motors. Am i right? i have been trying to reduce the speed , there is no way to gear it down , and i don't think i can reduce the speed of the relays can i ? i am talking about the EDU motors , we are not sure what to do as the servo we have is just too fast and uncontrollable
|
|
#6
|
|||
|
|||
|
Quote:
<edit>It is okay to plug the motors into the relay outputs but you will only get the maximum speed like you described</edit> Last edited by sanddrag : 01-01-2003 at 00:09. |
|
#7
|
||||
|
||||
|
Yep, it is PWM...
Quote:
Yes, a standard model radio control system's CARRIER ENCODING uses PPM, but that is NOT true of the servos themselves. In fact, we do not use PPM at ALL in this contest because the Ewave radios used here are packet radios, not standard radio control model radios. A servo uses PWM, or Pulse WIDTH Modulation, where "how WIDE the pulse is" carries the information. A positive going 5V pulse WIDTH represents where you wish the servo to end up. A 1ms pulse represents full one way, and a 2ms pulse means full the other way. A 1.5ms pulse represents the center position. The decoder in a standard radio control receiver converts the transmitted PPM signals into PWM for the servo, often with a very cheap and simple SIPO shift register chip. The Robot Controller uses a dedicated PIC micro (which we can't see) to decode packet data, which are then shipped into STAMP variables for us by the SERIN command. Quote:
You are right that you MAY plug the EduRobot multi-speed motors into the Relay Outputs as well, only getting full on one way or the other. IFI did a special additional circuit in the multi-speed motors to emulate a Spike. It automatically recognizes WHICH kind of signal it's getting (PWM/Victor, or Voltage/Spike) and "does the right thing". VERY cute... You can't do that with a servo you modified yourself. They'd only respond to the PWM signals, and might burn out if attached to the Relay Output connector. Similarly (in reverse) if you made a Spike emulator circuit for a gearmotor.BTW, that is also why they have four pins on their motor connectors instead of three. To emulate a Spike, you need FOUR wires (logic/motor power, forward, reverse, and ground). See the Edubot documentation (EDU_Robot_Controller_Reference_Guide.pdf) on the IFI site for more information. - Keith Last edited by kmcclary : 01-01-2003 at 15:08. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Automatic Transmission" | Madison | Technical Discussion | 70 | 24-11-2003 09:03 |
| speed controllers & circuit breakers | deuceswild | Electrical | 2 | 15-01-2003 14:46 |
| Power, speed, and torque... AGH | Gui Cavalcanti | Technical Discussion | 5 | 10-11-2002 19:02 |
| Calibrating speed controllers and joysticks | thedillybar | Technical Discussion | 4 | 11-02-2002 13:24 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |