Nitrogen can be obtained by thermal decomposition of ammonium dichromate.
The volcano demonstration involves igniting a pile of the salt, which initiates the following exothermic conversion:
(NH4)2Cr2O7(s)→Cr2O3(s)+N2(g)+4H2O (g) (H=429.1 3 kcal/mol)