\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{circuitikz}
\coordinate (T) at (3.4,2.8); \coordinate (R) at (5.4,0.8); \coordinate (B) at (3.4,-1.2); \coordinate (L) at (1.4,0.8);
\draw[wave, domain=0:1.4, samples=80] plot ({-2.4+\x}, {0.8+0.7*sin(deg(2*pi*\x/0.7))});
\draw[->] (-2.4,0.8) -- (-0.9,0.8);
\draw (0,-0.2) to[american voltage source, l=$V_\mathrm{in}$, invert] (0,1.8);
\draw (0,1.8) -- (0,2.8) -- (T) (0,-0.2) -- (0,-1.2) -- (B);
\draw (T) to[empty diode] (R);
\draw (B) to[empty diode] (R);
\draw (L) to[empty diode] (B);
\draw (L) to[empty diode] (T);
\draw (L) node[circ]{} to[C, l_=$C_1$] (R) node[circ]{};
\node[font=\small] at (3.4,1.4) {$V_\mathrm{out}$}; \node[font=\small] at (2.15,1.15) {$-$}; \node[font=\small] at (4.65,1.15) {$+$};
% equivalent while charging
\begin{scope}[shift={(1.8,-5.4)}]
\draw (0,0) to[american voltage source, l=$V_\mathrm{in}$, invert] (0,2.4);
\draw (0,2.4) -- (2,2.4) to[battery1, l=$V_\mathrm{D,on}$] (2,1.7) to[C, l=$C_1$] (2,0.7) to[battery1, l=$V_\mathrm{D,on}$] (2,0) -- (0,0);
\node[font=\small] at (1.6,1.55) {$+$}; \node[font=\small] at (1.6,0.85) {$-$};
\end{scope}
% V_in = sin, 2 V_D,on = 0.3: V_out tracks V_in - 2V_D,on to the peak, then holds
\begin{axis}[sketch, at={(5.6cm,-4.6cm)}, width=7cm, height=5cm, xmin=0, xmax=1.4, ymin=-1.2, ymax=1.3, xlabel={$t$}, ytick={1}, yticklabels={$V_0$}]
  \addplot[black, line width=0.8pt, domain=0:1.3, samples=200] {sin(deg(2*pi*x))};
  \addplot[line width=1.4pt, domain=0:1.3, samples=300] {x<0.0485 ? 0 : (x<0.25 ? sin(deg(2*pi*x))-0.3 : 0.7)};
  \draw[<->, gaaccent] (axis cs:0.0485,0.01) -- (axis cs:0.0485,0.29);
  \node[font=\small, anchor=east, gaaccent] at (axis cs:0,0.15) {$2V_\mathrm{D,on}$};
  \node[font=\small, anchor=west] at (axis cs:0.45,0.3) {$V_\mathrm{in}$};
  \draw[note, <-] (axis cs:0.3,0.72) -- (axis cs:0.55,1.2) node[right]{$V_0 - 2V_\mathrm{D,on}$};
\end{axis}
\end{circuitikz}
\end{document}
