I'm in the process of designing a freight elevator to bring the groceries (water pacs, etc.) upstairs, without going up the stairs. I didn't put engines like that, no risk of being crushed if the kids play with them. I'm going to put a system to prevent them from turning the crank, but that's not the subject there.
I drew the sprockets that connect the different parts and it works, i.e. when I turn the flywheel all the sprockets turn. That's done.
On the other hand I don't know how to link the trolley to this trajectory.... because it doesn't seem to me that it moves with the rotation of the chainrings. You don't have an idea how to make this trolley follow the rotation of the chain?