Yes the sensor reads smoothly across 50 mm of movement of the magnet
Here are the steps for my current build:
1. Purchase terminal strip:
https://www.amazon.com/gp/product/B01CG ... UTF8&psc=1
2. Purchase A1302 Hall Effect Sensor:
https://www.amazon.com/gp/product/B07DW ... UTF8&psc=1
3. Purchase TRS cable
https://www.amazon.com/Hosa-MHE-310-Hea ... -3-catcorr
4. Pull magnet from dead hard drive
https://youtu.be/YKzPt18aE_0
5. Let magnet attach itself to the foot pedal (or build a mounting bracket for it)
6. Hold the sensor smaller side up with a needle nose pliers just above the little indents in the legs
7. Bend the outer legs at a 45 degree angle to the middle leg
7a. (Optional) - bend all three legs to 90 degree angle so the little square sensor is on same plane as the magnet
8. Unscrew the terminals enough to slide the legs in between the square metal washer and the terminal plate below it.
9. Tighten that side of the terminal strip
10. Cut off one end of TRS cable
11. Strip back the outer jacket
12. Untwist the copper shielding wires from each conductor and twist them together into one
13. Strip each conductor back enough to insert into terminal
14. The copper shielding (common) goes to the middle.
15. Figure out which conductor is Tip and which is Ring (red was ring and white was tip on the cable I used)
15. The Ring conductor goes to the left (looking down at terminal strip from side opposite where sensor is connected)
16. The Tip conductor goes to the right (looking down at terminal strip from side opposite where sensor is connected)
17. Position the terminal strip so when foot pedal is press all the way down the magnet is 1-2mm from sensor. For the hard drive magnet it worked best if the one tip of the flat side came down to be 1-2mm from the flat side of the sensor (I've been told it doesn't matter which side of the sensor)