How to use a transistor with arduino

is that ok?
How fast will the ARduino be? Just im looking at pulses about every 0.01 seconds so 100 pulses per second MAX.