Hi,
Some years ago I provided this information:
While the headline says "SMPS" the design note is true for many regulation loops.
Basically you can calculate with the two extremes: I_LED = 0mA when V_DC = 5V and ... I_LED = 100mA when V_DC = 0V.
In both cases the FB pin voltage needs to be 200mV.
Now there is one problem: V_DC is 0..5V, thus it's higher and lower than 200mV, means the R3 current is positive as well as negative.
This makes it difficult to work with R_shunt = 2Ohms.
Thus I recommend to first calculate R_shunt. Best when R2 = 0V and R3 = 0V, means V_DC = 200mV.
You want 0.. 5V to represent 100mA ... 0mA. I_LED = 100mA - (V_DC × 100mA / 5V). Thus 200mV represents 96mA
R_shunt = 200mV/96mA = 2.0833 Ohms
Now at 100mA you get 208.3mV V_shunt at 100mA
V_DC = 5V (range)
V_shunt =208.3mV (range)
R3 / R2 = 5V / 208.3 mV
If R2 = 100 Ohms, (me chosen)
R3 needs to be 100 Ohms * 5V / 0.2083V = 2k4
This simplified calculation ignores total shunt resistance thus causes about 0.102% error
*******
Pedantic:
You say "Driving DC Voltage on the Feedback Pin".
But indeed you don't drive, nor change the
voltage of the FB pin. The FB voltage does not change (significantly)
You rather introduce
current into the FB node. ...
You drive the voltage to one side of a resistor, while the other side of the resistor is fix.
Klaus