$ 0 0 How can I convert this circuit to digital using arduino ? It has two stage : the first generate triangular wave then generate pulses