\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{tikzpicture}
% hole in intrinsic Si
\node[atom] (a) at (0,0) {Si}; \node[atom] (b) at (1.4,0) {Si}; \node[atom] (c) at (2.8,0) {Si};
\node[atom] (ab) at (0,-1.2) {Si}; \node[atom] (bb) at (1.4,-1.2) {Si};
\draw[bondstyle] (a) -- ++(-0.6,0) (a) -- ++(0,0.6) (b) -- ++(0,0.6);
\bond{a}{ab} \bond{b}{bb} \bond{b}{c}
\draw[line width=0.6pt] ($(a.east)+(0,-0.05)$) -- ($(b.west)+(0,-0.05)$);
\node[hole] at ($(a)!0.5!(b)+(0,0.06)$) {};
\node[elec] at ($(a)!0.5!(b)+(0,0.55)$) {}; \node[note, right] at ($(a)!0.5!(b)+(0.05,0.62)$) {$e$};
\node[align=left, font=\small] at (5.2,-0.3) {\# of free electrons $= n_\mathrm{i}$\\\# of holes $= n_\mathrm{i}$};
% n-type
\begin{scope}[yshift=-3.2cm]
\foreach \i/\l in {0/Si,1/Si,2/P,3/Si} {\node[atom] (t\i) at (1.4*\i,0) {\l};
  \draw[bondstyle] (t\i) -- ++(0,0.6) (t\i) -- ++(0,-0.6);}
\bond{t0}{t1} \bond{t1}{t2} \bond{t2}{t3}
\node[elec] at ($(t2)+(-0.45,0.4)$) {}; \node[note] at ($(t2)+(-0.75,0.5)$) {$e$};
\draw[decorate, decoration={brace, amplitude=6pt, mirror}] (-0.2,-0.8) -- (4.4,-0.8) node[midway, below=7pt, font=\small]{n-type};
\end{scope}
\end{tikzpicture}
\end{document}
