A pinball insert (table roll over switch) Using cheap SS49E hall effect sensors and neodymium magnets.
Video about it here: https://youtu.be/tZuv5gnS2lc
STL's & Fusion360 project can be found here: https://www.thingiverse.com/thing:2640670
All parts printed in PLA.
The clear lens in PLA transparent.
For testing i printed a large apron around the sensor so i could roll the ball across the sensor.
I the final design i would only print the lens to fit within the sensor case.
The single LED will probably be replaced with 3xAPA102 LED's...more info on the why later :)
It's not the easiest way to make a switch but it won't alter the balls trajectory and it's completely reliable.
I may or may not include this in the final design.
3x SS49E Hall effect sensor
6x Neodymium magnet N35 5mmx2mm
I connected the 3 hall effect sensors in parallel so that any increase in voltage from either of the 3 sensors would trigger a ball present. In the video i am using a arduino (Wemos D1) but in the final design it will be a simple resistor and transistor pair that will provide a signal much like any switch would.