This protocol demonstrates methods used to establish 2D and 3D environments in custom-designed electrotactic chambers, which can track cells in vivo/ex vivo using time-lapse recording at the single cell level, in order to investigate galvanotaxis/electrotaxis and other cellular responses to direct current (DC) electric fields (EFs).