They all are, working in collaboration.
ME's will design the physical components such that they have the required free motion, strength, and design life.
EE's will wire the components and design the subsystems that allow the system to respond to commands.
CE's will design the control system that gives the commands and allows the completed system to perform the desired function.