Barium oxide is made by heating barium carbonate with carbon .
Barium oxide is made by heating barium carbonate with coke , carbon black or tar .