there were several large , upright wheels connected to a shaft that , through a series of gears and a transfer box , took the power up through the ceiling and over to the huge wheel that drove the cable .