Do I have to pay royalties on units that are given away?

Yes. Royalties are owed based on gross manufacture and distribution, not sales.