I was also working on trying to flip the bits in order. I noticed a Pyramid structure is perfect for the job and is easy to follow. The sticking point was the forcing the 4th bit to be red.
Then I discovered the chain of gear bits under bits 1-3 from TVC which is genius, (See [Puzzle 46 Solution - Flip bits in order) Thank you TVC!
The pyramid structure now works.