Need Some help with a project that I am doing

Hi,

I am trying to make a pill dispenser, and I need a motion device that can go up and down and side to side, ( horizontal and vertical movement) I was thinking of using 2 linear actuators and somehow connecting them such that one brings the other up and down such that the horizontal one can push. Its a bit far fetched so I was wondering if there are any alternatives to this, and if this is the only way is it possible to program it.

thanks

May be have a look at "pan and tilt servo mounts"

Hello
take a view at:
https://www.instructables.com/howto/pill+dispenser/

In general, this is an easy project regarding the control logic.
The hard thing is making the mechanics working reliably.