We describe a small molecule-based protocol for differentiation of mouse embryonic stem cells into oligodendrocyte precursor cells (OPCs). This protocol generates Olig2+NG2+ OPCs with high efficiency by 30 days of differentiation. We also describe a method to generate "spiking" OPCs that can fire action potentials.