A novel Q-switched fiber laser made of OptoCeramic® electrooptic ceramics is reported. The ring laser is composed with an electrooptic ceramics modulator as Q-switch, highly Yb-doped fiber (peak absorption coefficient at 976 nm is 1200 dB/m) as the gain medium, and pumped by semiconductor laser of 976 nm wavelength. The adoption of highly doped gain fiber shortened the cavity, and meanwhile the output pulse width was compressed. Q-switch is realized from cavity loss modulation, the material refractive index control, which are dependent on the voltage of OptoCeramic element. The influences on output pulses from cavity length, pumping power and repetition rate are investigated. The laser system generates short pulses about 104 ns, with the repetition rate continuously adjusted from 3 kHz to more than 40 kHz.