Avoiding grittiness with sichuan pepper
Grind your peppercorns in a spice grinder, then put them in a large, fine meshed sieve and tap them over a large bowl. The spice will fall through and the husks will stay in the sieve. Should take about 5 minutes max.

Alternatively, buy them pre-ground.