@ Bernard, Thanks for the Wixey info. It confirms what I said earlier, a digital encoder on a pendulum. It uses capacitive sensing which I didn’t mention but how you measure the passing of the scale is not relevant to the basic operation.
I suspect some of the cheaper devices use MEMS accelerometers of the type used in smart phones. These work by sensing gravitational forces on tiny structures manufactured using semiconductor techniques. If the force is 1 with it “level” it will be zero at 90 degrees. In between the force, and thus the signal, is the cosine of the angle. Microprocessors make it easy to do the calculations to linearise this and provide a readout in degrees. Better units use two orthogonal sensors and perform statistics on the results to reduce errors and noise.
Robert.