|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Swerve Gear Box
Well, it seems like from looking through CD Media that most of the teams used bevel gears as opposed to helical or worm gears. Mechanically, it seems simple to produce. Is it harder than it looks to physically make? Programming an intuitive system is no problem. What was the biggest issues in controlling swerve for teams?
|
|
#2
|
|||||
|
|||||
|
Re: Swerve Gear Box
Bevel gears require extreme precision in three dimensions. Both the top and side must be precisely machined, and you must have some way to precisely locate the bevel gears on the shaft. Definitely a job for machine tools. As a mental exercise, picture the number of ways a bevel gear's alignment can be "off," versus spur gear alignment.
Selection of bevel gears is another hurdle. Choosing an appropriate pitch, pressure angle, size, etc. is critical for good performance. Again, I'll let those with experience with these things elaborate further. And even if you get it all right, bevel gears still create a noticeable drop in efficiency when compared to spur gears. Another argument for the self-contained approach. Last edited by Joe G. : 27-08-2011 at 17:09. |
|
#3
|
|||
|
|||
|
Re: Swerve Gear Box
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: Swerve Gear Box
Quote:
Additionally, the primary reason for using helical gears in a car is their noise level. Helical gears have quite similar efficiencies to spur gears, but run much quieter, due to the more gradual engagement of the teeth. Last edited by Joe G. : 27-08-2011 at 17:20. |
|
#5
|
||||
|
||||
|
Re: Swerve Gear Box
It's really really simple, unless you actually do it. |
|
#6
|
||||
|
||||
|
Re: Swerve Gear Box
especially if it is "unicorn drive". it can be made to work but trust me, it involves a LOT of code. (you would know...)
perhaps the worst part for ANY swerve is deciding how you want it to drive... hence why I am more of a fan of mecanum than swerve for competition bots that strafe... if I am going to write a lot of code, I'd rather it be on my manipulator/camera tracking than on my drive code. that is, unless you pull a 148 and have crab and no manipulator (tumbleweed, 2008), which in that situation was nothing but epic... for off season/fun, any swerve can be fun... or not fun... it depends on how you go about it. |
|
#7
|
|||
|
|||
|
Re: Swerve Gear Box
Quote:
PID loops are not hard. It is just all ratios, it just sounds hard. Sure, it is a lot of code, but it does not make it any harder. The hardest thing might just be incorporating a gyro scope, but that is not all that difficult unless there is a lot of inaccuracies in the readings. |
|
#8
|
||||
|
||||
|
Re: Swerve Gear Box
Quote:
Quote:
|
|
#9
|
||||
|
||||
|
Re: Swerve Gear Box
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: Swerve Gear Box
When designing something complex, it is very important to have faith that you can do it.
However, do not confuse faith in your ability to overcome challenging obstacles, with the difficulty of the obstacles themselves. Believe that you can do it, but believe that it will be hard, take a while, and throw unexpected challenges at you every step of the way. |
|
#11
|
|||
|
|||
|
Re: Swerve Gear Box
P= Error*Pconstant
I=((Previous Error*change in time + Error*change in time)/2)* Iconstant D=((Error-PreviousError)/change in time)* Dconstant output = P+I+D + 127 60 < Pconstant < 95 5 < Iconstant < 25 0 < Dconstant < 5 The time can be obtained from the FPGA Last edited by davidthefat : 27-08-2011 at 18:10. |
|
#12
|
|||
|
|||
|
Re: Swerve Gear Box
Quote:
Believe me when I say that this is the easy part of a PID. I'm sure Ether knows better than I but my experience has always been contrary to GI Joe's claim that knowing is half the battle. Knowing is maybe 10% of the battle. 10% is actually writing the code. and 80% is a mix of debugging and ripping your hair out. There may be some crying/cursing mixed into the last section depending on how you react. |
|
#13
|
|||||
|
|||||
|
Re: Swerve Gear Box
My first question to you is what machining capabilities do you and your team have? You'll need someone experienced in machining to thousandths of an inch accuracy. And preferably someone who has experience working with gears. I can tell you it will take an incredible amount of talent to make a working swerve module with a drill press and a hacksaw.
Second PID loops are great and all, but there's a lot more to it than that. To make an intuitive setup you'll need to figure out exactly what way you want to map user input to outputs. There are about 10 ways to do it that will work, but a lot fewer that are considered good. Again you'll need to scale these inputs usefully. My first time programming a omni directional drive it was very easy. It took only 3 lines of code(4 omni wheels at 90 degrees from one another). And yeah it worked first go kudos to me. Then one of the drivers said what happens when we turn, tapped the joystick full left for a second and the robot spun in place at 14 feet per second with its arm sticking out 4 feet almost hitting several people. Ok that's easy to fix, just tone down the spin modifier. That worked to keep it from being a death trap, but then thanks to slowing its turn, getting a smooth strafe/twist couldn't happen over a certain speed because the twist modifier couldn't twist enough. In the end my pretty little 3 lines of code which worked turned into a pretty large function to control the omni bot properly. And I didn't even use PID, not to mention there's a little bit more to keep track of in a swerve drive. I'm sure you're thinking pfft that's nothing, I got this. You probably will get it eventually, but keep in mind the sheer number of stumbling points waiting for you, and if you attack it with the same arrogance I read in your posts, you'll lose a lot of the people whose help you will need to complete the project. |
|
#14
|
|||
|
|||
|
Re: Swerve Gear Box
Quote:
Quote:
Well, I am saying that I am not scared of 30 file projects with thousands of lines of code. I actually like doing that; that is the whole fun of coding. It is those times that I feel like quitting and bashing my head on the wall that really satisfies me. It's because you really have to experience suffering before you know what joy really is like. I like tackling big projects head on. As far as machining capabilities go, I can probably call somebody up to help make it and teach the team. |
|
#15
|
|||||
|
|||||
|
Re: Swerve Gear Box
So in other words you don't have any. I think that you are attempting to take on a project that is beyond the scope of what you're setup to handle. Based on your other threads I also have to ask is this a personal project or a team project? If its a team project, have you unilaterally decided that this is what the team will be doing, or have you actually discussed the project with the team to decide if its something everyone else wants to work on as well?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|