I have a need to build a spring mounted table, 12" square solid top in red, springs in blue and bottom in green, as in the diagram
I need to place a solid ball on the top board so it rolls around under its own weight. The top board has a raised edge so the ball will not fall off.
The final intent is to place some form of actuator near each corner to raise or lower the corner as allowed by the springs connecting the bottom and top boards. As an experiment the actuators will be controlled by a Raspberry Pi 4 using reinforcement learning to 'learn' how to balance the ball in the middle of table.
I can handle the machine learning side of things fine, but I'm struggling a bit with the actuators. My current thought is to use four electromagnets, one near each corner which would pull the corner down when activated. By activating each magnet in very short time steps, possibly microseconds, the amount by which the corner would fall would be controlled. I can only find one suitable electromagnet which uses the Grove system. Before I splash out any £s is it viable to control four such magnets from a single Pi? Or would I need to use the likes of four Picos to control each magnet under the control of a central Pi. Latency is a concern, which might rule out wireless connection between the Picos and the Pi. So how would I wire the four Picos to a single Pi? Other non-magnetic suggestions are welcome as well.