A man has been charged with possessing a knife and dangerous driving after the bomb squad was called when he allegedly tried to drive into a disused Army barracks.