This is a handbrake design that I made for sim racing. This is a simple on/off device, it is not analog!
I printed everything at 50% infill and 4 walls. You'll probably want to use tree supports touching the build plate also. I printed mine in petg, but probably doable in other materials.
It requires the following not printed additional hardware:
2x M3X50 Bolts
2x M3 Nuts (I used nylocks)
4x M3 Flat washers
1x ½ in shoulder Bolt 2½ inches long
2x ½ flat washers
1x ½ in nylock
1x ½ in NPT steel pipe 12 inches long (or longer or shorter as you desire)
1x 3/8in spring 1-3/16 in long (could be longer if you want a longer throw on your handbrake) I got mine from this: https://www.homedepot.com/p/Everbilt-Spring-Assortment-Kit-84-Pack-13554/203133714
1x Limit Switch (SPDT V-155-1C25 Short Hinge Roller Lever Control Limit Micro)
You will need to drill a ½ in hole through the steel pipe for this to work. I didn't design a 3d printed lever because I have access to a drill press. The switch holder also holds the spring in place. It should be placed such that the pipe is up against the spring. The closer it is to the pipe the less travel to activate.
I soldered wire to the two relevant contacts on the switch and ran it to the usb controller that I have for these kinds of things. It would definitely be possible to wire this up to an arduino or something if you didn't already have an interface built.
The switch spacer is a heavily modified remix of the switch spacer part created by bbeavis found in this thingiverse build: https://www.thingiverse.com/thing:4557771.
The author hasn't provided the model origin yet.