Hi @Anonymous, here's how I would go about this:
- Size the rod diameter so it can withstand the maximum moment it could potentially undergo. Give it a reasonable safety factor (at least 1.2) against YIELD (not failure) at the maximum expected moment.
- Determine the thread engagement length necessary to avoid thread strip-out (i.e., such that the threads are not the weak link in the rod's strength)
Here's some additional details on those:
Step 1:
Assuming there is no axial force (i.e. pulling or "stretching") on the rod, and no torsional (i.e. twisting) force on the rod, your stress will simply be from the bending moment from someone applying force to the end of the rod. The bending moment is the greatest at the base (where the rod connects to what it's threaded to). Mathematically, the stress due to bending is:
s_b = M*c/I
where M is your moment, c is the distance from the neutral axis to the point in question, and I is the area moment of inertia of the rod's cross section. The safety factor at a given stress is calculated as:
N = S_y / s_b
where S_y is the yield stress for the material.
Doing some substitution and re-arranging, you can solve for the required diameter to achieve a specified safety factor. In Excel terms:
D = (N * (32 * F * L) / (PI() * S_y)) ^ (1/3)
where...
N = your safety factor
F = the expected applied force on the end of the rod
L = the length from the base of the rod (where it meets what it threads into) to the end
S_y = your material's yield strength (36,300 psi for steel)
Step 2:
I always use this reference for my thread strength calculations: Calculating Thread Strength
If you're using a thread size not listed on that page, you can find just about any thread's dimensions here: UNC Bolt Calculator. Down at the bottom you can also choose UNF or even non-standard UNS (special) threads.
With a little effort you could put together an Excel spreadsheet that will calculate the required thread engagement length for a given diameter, thread spec, and material. But it might be easier to just do it by hand each time.
=========================
That's just a quick look at how you might go about this. Like @graemev said, it would be a good idea to hire an engineer to do this for you to reduce the dangers of liability (speaking of which, everything in this post is for reference only, and I am in no way implying that following these recommendations will result in a safe design).
... But it's a good place to start and the theory is sound. The only oddity is the fact that you're not putting the threads in pure axial tension, you're subjecting the threaded length to a moment, which may require you to take some other stresses/calculations into account. But I would think that following the guideline I linked to for thread length would be sufficient, especially if the lever is only being operated by hand.
Hope that helps!