When it comes to DIY’ing variable hi-hat controllers, the main component used is typically a standard slide pot. Though they are cheap, they tend to only last so long before needing replaced (results may very). That’s because they are not designed for the heavy cycle demands of a hi-hat controller.
Above are pictures of a FSR [...]
