With the following calculator, based on [1], you can create a cam profile to balance a mass at a certain arm. The calculator can be set in either inside or outside mode, corresponding to the location of the cam follower relative to the cam. The starting radius of the cam, cam follower, spring coefficient and pretension can be set to obtain a desirable cam profile. There is also an option to include an arbitrary moment into the equation. With this there is a lot of design freedom to create the desired response.
Sometimes the current configuration of load with (or without) arbitrary
moment will lead to an impossible cam surface. Increasing the spring
and/or radius parameters will usually fix this.
The export button saves the current profile as a csv file with the x and y as location of the cam surface, xfc and yfc as the location of the center/path of the cam follower and the spring compression.