The mysterious circuit board is from a paintball gun that uses a solenoid to actuate the firing mechanism. The IR led and phototransistor will go in holes drilled into the breech. When a paintball is in the breech, the phototransistor will be blocked, and the mosfet will be on. When the breech is empty, the mosfet will be off. The supply and drain pins of the mosfet will be wired up to the board to intercept the signal that the board sends to fire the solenoid (this signal is small and I'm about 90% sure it's dc). This way, the gun won't try to fire unless there is a paintball in the breech. This keeps it from firing before a paintball is completely in the breech, which would cause the bolt to hit the ball and jam. I don't know a whole lot more about the "mysterious circuit board," but I do know it runs off of a 9v battery. If I were to run everything off of the same 9v battery the mystery board runs off of, could that avoid the problem with the 2 batteries all together?