This model has 5 components; the Camgear, lever, motor pinion, housing, and a sensor.
The motor pinion drives the camgear which then moves the lever translationally via a curved pin slot joint. The curved pin slot joint is modeled using a lookup table. The curved slot also has hardstop defined using Simscape.
1. Removed local paths to STL files
Create scripts with code, output, and formatted text in a single executable document.