JK Flipflop design for conveyor project
You are on the right track. You need a bistable circuit, which halvens the frequency of the photocell signal, and gives high output every other pulse.

Besides that, you may want to use a monostable multivibrator to adjust the duty cycle (i.e. the "high" time), in order to get pulses of the right length.