Electronic advice needed to setup Arduino Uno for highspeed photography

Why have you removed the schematic from your post. That is not helpful. You are asking about a transistor and I don't remember one from your schematic so I go back to check and find you have removed it. Why?