Mackenzie Crook will star in the six-part series Detectorists, in which he uses his own experiences as a metal detector enthusiast.
Crook will "tap into the world of the male hobby which is very funny and touching", BBC controller of comedy commissioning Shane Allen said.
The BBC is looking to announce a "big name" star to appear opposite Crook in the series, according to Radio Times.
The pair will "embark on a journey of greed, betrayal, rejection and redemption as they hurtle towards Danbury Metal Detecting Club's greatest ever find".
Meanwhile, Miles Jupp will write and star as cookery writer Damien Trench in In and Out of the Kitchen, a three-part series based on the Radio 4 comedy.
Each episode follows Damien and his partner Anthony (Justin Edwards), their builders Mr Mullaney and Steven, and Damien's "terrifying" agent Ian.