Sort of simple. Like an engine, explosive gasses are ignited forcing gasses out of the barrel, but unfortunately for the potato, it's in the way and gets sent about 100-500 metres depending on cannon power etc. Basically, sealed system, you spray deodrant into the combustion chamber (white bit) and the propellant gas in the deodrant is ignited via a spark and boom.