|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Can I implement Scaling factor in PWM?
Because the motors are not running the same speed as each other.
|
|
#2
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
It's better to try to find the source of the problem, if you can, and fix it. What symptoms are you observing that leads to your conclusion that the motors are not running at the same speed? Have you calibrated all of the motor controllers in situ? What kind of drivetrain? (e.g. 4 wheel skidsteer, 6 wheel drop center, mecanum/omni, chains/belts/straight-off-the-gearbox-output-shaft, etc). What kind of operator interface? (e.g. Arcade, Tank, etc)? Have you noticed that some of the motors are getting noticeably hotter than others? What are the DS diagnostics telling you about your joystick values and your PWM commands? Last edited by Ether : 01-02-2014 at 19:49. |
|
#3
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Yes for my drivetrain.
The problem is the resistance for each motor is different (I assume) because it's a custom built chassis and it isn't machined by a master machinist in the business for 101 years, it's drilled by 16-18 year old students. That's not exactly something we can fix. What do you mean by situ? We're using mecanum drive. Sometimes Yes. Not sure about what you mean by that last question. |
|
#4
|
|||||
|
|||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
![]() What symptoms are you observing that leads to your conclusion that the motors are not running at the same speed? Quote:
Quote:
What kind of operator interface? 3-axis joystick? Two 2-axis joysticks? Something else? Quote:
Are you using the same model motor controller for all 4 motors? Quote:
|
|
#5
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
When we put it on blocks, creeping the robot forward not all the motors run the same speed. At full throttle and full reverse it all goes relatively the same.
Using 4 Jaguars straight of the gearbox output shaft. We're using a Logitech Xtreme 3D joystick with twist. The test was made using a Logitech Attack 3. We are using Black Jaguars for all of them, and only one of them gets a little more hot. It's not that much of a difference. I haven't been able to touch it since then since we're building on the chassis at this point in time. I'll update you on that when everything's mounted. |
|
#6
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
Quote:
Quote:
|
|
#7
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
My team encounters this problem on every robot we make. We usually blame gearboxes and chains and forget a mechanical fix for it. The best way to augment the drive control is to place a gyro on the robot. While this is not a direct fix for the problem it treats the symptoms. The gyro detects the direction the robot is moving, compares it to the command from the joystick, and corrects the difference. The mecanum drive block has a place for a gyro input. All you have to do is pop the gyro on the bot (dead center) and connect it to the block.
|
|
#8
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
We're going with CAN mode (which I'm not too terribly sure how to set up) on the Jags so we can implement encoders for Auton mode, and we tried implementing a gyro today but it didn't work out so well. It's wired up but I'm not sure how to code it. The mecanum drive block has a Gyro input but I don't know what to put into it. We have driven it on ground and it's great except for X-axis strafing. Dexterium, would you mind if you posted an example of plugging the gyro into the block? Do you have to initialize the gyro in begin.vi? |
|
#9
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
|
|
#10
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Strafing along the X the robot ends up rotating (before we used the Extreme 3D stick) because of what I can only assume is some motors are running way faster than the others. Again, this only happens during creep strafing. Full speed strafe is not a problem, but we would like low speed strafing for autonomous.
Thanks for all the help you provided so far by the way, my team and I appreciate it! |
|
#11
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
1) You used to have the problem when you were using the Extreme 3D joystick, but you aren't having the problem now What diameter mec wheels are you using? And are they VEX or AM? Have you tried temporarily disabling rotation and forward/reverse in your code (simply by multiplying those axes by zero) and then running the robot to see how well the strafe behaves? Check all the rollers on each wheel. Do they all spin freely? Or are some "dragging" somewhat? Do all the rollers have the same amount of axial free play, or is there a lot of variation? Some of the models of affordable mec wheels used in FRC robotics can display the symptoms you are describing if they are not meticulously assembled and adjusted. If your attempts to locate and correct the root cause of the problem are not successful, a gyro can be used to help minimize rotation of the robot (when you don't want rotation). |
|
#12
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Oh no we're having this problem with both joysticks but I wanted to rule out twisting the joystick while strafing as a factor. We removed both y and rotational axis to see if it would happen and it did.
We are using 6 inch andyMark wheels (big metal ones). We are implementing a gyro and shaft encoders to solve the problem. I just don't know where to plug the gyro in from teleop.vi. |
|
#13
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
Quote:
Also, how difficult would it be to swap the hot motor with one on the other side, and see if the problem follows the motor or stays on the same side? Quote:
If you want to use the gyro to help minimize rotation while strafing, that can be done. I could post some C pseudo-code if that would be helpful - or maybe a LabVIEW guru could post a LabVIEW picture. Last edited by Ether : 03-02-2014 at 10:54. |
|
#14
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Some rollers drag and some have free play or a combination of both.
What I meant for the gyro was that I wanted the robot to have field centric control, not to solve my problem. That's what the shaft encoders are for (hopefully). We only want slow speed strafing for auton mode anyways. Like I said, the gearboxes are extremely hard to take off and swapping motors takes away a lot of time that can be used doing something else. |
|
#15
|
||||
|
||||
|
Re: Can I implement Scaling factor in PWM?
Quote:
Quote:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|