A simple articulating mechanism
Other necessary components:
I recommend to print part arm.stl wiht 60% of printing speed.
Printing parameter: