If you think about what is going on in a gearbox, it can help you with the model immensely.
With planetary and spur gears, the teeth of the gear are ment to roll relative to one another. The better the tooth, the lower the friction. This rolling will have some friction which will be proportional to load, and thus a simple efficiency factor works well espeically for moderate torques. Speeds are merely a function of the ratio.
Thus
output torque=effinput torquegear_ratio
Outputspeed=inputspeed/gear_ratio
While this model works pretty well, as other have pointed out, it falls apart towards “top speed”. IE, if my motor has a free speed of 15,000 rpm and my planetary gearbox has a ratio on 3:1, why doesn’t my gearbox freespeed = 5,000 rpm? Instead I get about 4,000 rpm!
So the other element tends to be drag. For example when riding a bicycle, you have to overcome the grade, rolling resistance, and wind resistance. On a still day, on flat ground, the initial torque is dependent on acceleration and rolling resistance, but as you speed up, wind resistance becomes a bigger factor.
For gearboxes, the “wind resistance” is often the oil or grease in the gearbox. These drag forces tend to have a torque to speed relationship of:
drag torque = C*speed^2 with C being a constant.
C is a combination of the thickness of the grease and bearings and…It is often temperature sensitive for many gearboxes.
A good way to get a value for this is to measure motor free speed, then motor gearbox free speed. Use the gear ratio and motor curve to find the torque for that speed, and then…
Set dragT=c*speed^2
For your model, you will then have:
Torque out=effratioinput_torqu-c*speed^2
If you use this method, and have the ability to measure stall torque, I think you can make a very accurate model, and you will likely see a much better efficiency number than using the other methods.
For instance in high power oiled gearboxes, we might use as little a 1%-1.5% efficiency loss per gear mesh and 0.1% to 0.15% for bearings. Of course, this is with gearboxes with really good gear geometry, properly weighted oils, and high quality bearings. Overloaded gears, bushings, bearings, and really thick greases tend to perform at lower efficiencies with higher “windage”, but they tend to work pretty good for FRC.