Londoner Mohammed Mohamed was given a 28-day curfew and fined £70 after being found with cannabis.
Mohamed, 22, of Goldsmith Avenue, London, was stopped by police on the A607 slip-road of the A1.
Giles Tyas, defending, said the amount of cannabis found was only enough for one cigarette.
Mohamed also admitted breaching a suspended sentence order from last year which was imposed for possession of cocaine and heroin.
Mohamed admitted possession of a Class B drug. As well as the 7pm to 7am curfew and the fine, Muhamed must also pay £85 in costs and a £20 surcharge.