On your way to the Foundation, you'll need to solve another Cogwheel puzzle to open the locked door and enter the mines area. It's a little trickier than the generator one. Here's how you can ...
The first two Cogwheel puzzles are part of the main story, and take place in the same room. While it is possible to go around collecting the other Cogwheels and do the other challenges first ...