R5 wanted to be a pull-down resistor for the pwm pin of Attiny I just posted an old image by mistake.

Rfltr=4.7k and Cfrtl=1uF are the low pass filter and the output of this filter is diveded by a 10k and 3,3k resistor that I also corrected and connected to Iadj.

Cfltr is connected between the pwm pin and the GND. I have 2 GND traces (high and low current) joined at battery minus.

The idea was to filter the 5v pwm and than divide it.

Isn't is correct? Did I misunderstand something?