This tutorial explains how to perform scanning tunneling microscopy simulation based on the Tersoff-Hamann theory.