To drive Peltier in the second OPO, the PCB named TEC Drive v2 is used.
The schematic diagram is shown in the attached pdf file.
Specific important numbers are selected as
R1 (= R6) = 680 [kΩ]
R2 (= R7) = 200 [kΩ]
R3 (= R8) = 330 [kΩ]
Vin = 3.225V
The opamp used in this PCB (TPS63020DSJR. see the datasheet attached) sets V_FB = 0.5 [V]
For V_CTRL as the control signal,Vout is
Vout = {(R1R2+R2R3+R3R1)V_FB - R1R2V_CTRL}/R2R3
Red Pitaya output range is from -1 to 1 V.
Vout changes from 5.29[V] (V_CTRL = -1 [V]) to 1.16 [V] (V_CTRL = 1 [V])
The input voltage to the Peltier(The used Peltier (Laird Technologies, HOT20.31.F2A.0909. Data sheet should be attached.) V_TEC is
V_TEC = Vout - Vin (-2.065 to2.065 [V])