Im not aware of an off the shelf solution to this. It could be done with eg a stepper motor and an esp32, though you’d have to mount and power it, somethong along the lines of https://m.youtube.com/watch?v=jRZeUCpfuWY though the movement required would be much simpler. You may be able to use a servo motor, and that would be lighter and easier to mount, and the code could come from a modification of eg https://m.youtube.com/watch?v=fOS5JhFFCOQ
As I said, mounting and power are likely to be the main issues, it is diy doable though.
Im not aware of an off the shelf solution to this. It could be done with eg a stepper motor and an esp32, though you’d have to mount and power it, somethong along the lines of https://m.youtube.com/watch?v=jRZeUCpfuWY though the movement required would be much simpler. You may be able to use a servo motor, and that would be lighter and easier to mount, and the code could come from a modification of eg https://m.youtube.com/watch?v=fOS5JhFFCOQ
As I said, mounting and power are likely to be the main issues, it is diy doable though.