The process in which a relatively unspecialized mesodermal cell acquires the specialized features of a pericardial cell. In insects, pericardial cells are loosely arranged non-myogenic cells that flank the cardioblasts and probably act in the filtration of hemolymph.